summaryrefslogtreecommitdiff
path: root/platform/ios/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/common.h')
-rw-r--r--platform/ios/common.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/platform/ios/common.h b/platform/ios/common.h
new file mode 100644
index 00000000..9642f009
--- /dev/null
+++ b/platform/ios/common.h
@@ -0,0 +1,30 @@
+//
+// common.h
+// MuPDF
+//
+// Copyright (c) 2013 Artifex Software, Inc. All rights reserved.
+//
+
+#ifndef MuPDF_common_h
+#define MuPDF_common_h
+
+#include <UIKit/UIKit.h>
+
+#undef ABS
+#undef MIN
+#undef MAX
+
+#include "mupdf/fitz.h"
+#include "dispatch/dispatch.h"
+
+extern fz_context *ctx;
+extern dispatch_queue_t queue;
+extern float screenScale;
+
+CGSize fitPageToScreen(CGSize page, CGSize screen);
+
+int search_page(fz_document *doc, int number, char *needle, fz_cookie *cookie);
+
+fz_rect search_result_bbox(fz_document *doc, int i);
+
+#endif