summaryrefslogtreecommitdiff
path: root/pdf/mupdf.h
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-03-13 13:57:11 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-03-13 13:57:11 +0100
commit48652e529ed1c0ae23cfd45f14d9655ad2849c89 (patch)
treea34e7562a30f3a7e42070f1f5a8763f6d1d608cb /pdf/mupdf.h
parent9cbfb766564d0e80d259e3e0a919d72a75bbb6ee (diff)
downloadmupdf-48652e529ed1c0ae23cfd45f14d9655ad2849c89.tar.xz
Rename some functions and accessors to be more consistent.
Debug printing functions: debug -> print. Accessors: get noun attribute -> noun attribute. Find -> lookup when the returned value is not reference counted. pixmap_with_rect -> pixmap_with_bbox. We are reserving the word "find" to mean lookups that give ownership of objects to the caller. Lookup is used in other places where the ownership is not transferred, or simple values are returned. The rename is done by the sed script in scripts/rename3.sed
Diffstat (limited to 'pdf/mupdf.h')
-rw-r--r--pdf/mupdf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf/mupdf.h b/pdf/mupdf.h
index 7566bc36..b88f7423 100644
--- a/pdf/mupdf.h
+++ b/pdf/mupdf.h
@@ -79,8 +79,8 @@ void pdf_dict_dels(pdf_obj *dict, char *key);
void pdf_sort_dict(pdf_obj *dict);
int pdf_fprint_obj(FILE *fp, pdf_obj *obj, int tight);
-void pdf_debug_obj(pdf_obj *obj);
-void pdf_debug_ref(pdf_obj *obj);
+void pdf_print_obj(pdf_obj *obj);
+void pdf_print_ref(pdf_obj *obj);
char *pdf_to_utf8(fz_context *ctx, pdf_obj *src);
unsigned short *pdf_to_ucs2(fz_context *ctx, pdf_obj *src); /* sumatrapdf */
@@ -164,7 +164,7 @@ int pdf_has_permission(pdf_document *doc, int p);
typedef struct pdf_page_s pdf_page;
-int pdf_find_page_number(pdf_document *doc, pdf_obj *pageobj);
+int pdf_lookup_page_number(pdf_document *doc, pdf_obj *pageobj);
int pdf_count_pages(pdf_document *doc);
/*