diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2010-07-01 21:54:20 +0000 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2010-07-01 21:54:20 +0000 |
commit | efc6ef1419c770f7d104bba5f432f349f6bf0b6f (patch) | |
tree | 6aa648d0e3a974764e46b8021a341aa29f80c1a4 /xps/ghostxps.h | |
parent | e84883085f9d3fd70eafd167515ad3e1e5394841 (diff) |
Return error code separately from NULL so we can handle empty resource dictionaries.
git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@11478 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'xps/ghostxps.h')
-rw-r--r-- | xps/ghostxps.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/xps/ghostxps.h b/xps/ghostxps.h index c5a4fae37..ef095e28a 100644 --- a/xps/ghostxps.h +++ b/xps/ghostxps.h @@ -303,8 +303,7 @@ struct xps_resource_s xps_resource_t *parent; /* up to the previous dict in the stack */ }; -xps_resource_t *xps_parse_remote_resource_dictionary(xps_context_t *ctx, char *base_uri, char *name); -xps_resource_t *xps_parse_resource_dictionary(xps_context_t *ctx, char *base_uri, xps_item_t *root); +int xps_parse_resource_dictionary(xps_context_t *ctx, xps_resource_t **dictp, char *base_uri, xps_item_t *root); void xps_free_resource_dictionary(xps_context_t *ctx, xps_resource_t *dict); void xps_resolve_resource_reference(xps_context_t *ctx, xps_resource_t *dict, char **attp, xps_item_t **tagp, char **urip); |