diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-08-17 15:03:43 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-08-24 14:09:06 +0200 |
commit | d88fc90e806a72f90667ec780f3370794cbc0c42 (patch) | |
tree | 4197758cf043c96a427dffb90895e4dbd6281044 /include | |
parent | 7bb57105fad01e11c251f3b464d2719df2632c08 (diff) | |
download | mupdf-d88fc90e806a72f90667ec780f3370794cbc0c42.tar.xz |
Add pdf_array_find to look up the index of an object in an array.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/pdf/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mupdf/pdf/object.h b/include/mupdf/pdf/object.h index cfae8645..5bc3dcaf 100644 --- a/include/mupdf/pdf/object.h +++ b/include/mupdf/pdf/object.h @@ -95,6 +95,7 @@ void pdf_array_push_drop(fz_context *ctx, pdf_obj *array, pdf_obj *obj); void pdf_array_insert(fz_context *ctx, pdf_obj *array, pdf_obj *obj, int index); void pdf_array_insert_drop(fz_context *ctx, pdf_obj *array, pdf_obj *obj, int index); void pdf_array_delete(fz_context *ctx, pdf_obj *array, int index); +int pdf_array_find(fz_context *ctx, pdf_obj *array, pdf_obj *obj); int pdf_array_contains(fz_context *ctx, pdf_obj *array, pdf_obj *obj); int pdf_dict_len(fz_context *ctx, pdf_obj *dict); |