summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
Diffstat (limited to 'fitz')
-rw-r--r--fitz/doc_interactive.c5
-rw-r--r--fitz/fitz.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/fitz/doc_interactive.c b/fitz/doc_interactive.c
index b5d54549..f0a4f2ba 100644
--- a/fitz/doc_interactive.c
+++ b/fitz/doc_interactive.c
@@ -75,3 +75,8 @@ void fz_choice_widget_set_value(fz_interactive *idoc, fz_widget *tw, int n, char
{
pdf_choice_widget_set_value((pdf_document *)idoc, tw, n, opts);
}
+
+void fz_set_doc_event_callback(fz_interactive *idoc, fz_doc_event_cb *event_cb, void *data)
+{
+ pdf_set_doc_event_callback((pdf_document *)idoc, event_cb, data);
+}
diff --git a/fitz/fitz.h b/fitz/fitz.h
index cfd2db9f..4e5607f3 100644
--- a/fitz/fitz.h
+++ b/fitz/fitz.h
@@ -2602,6 +2602,7 @@ void fz_set_doc_event_callback(fz_interactive *idoc, fz_doc_event_cb *fn, void *
*/
typedef struct
{
+ char *message;
int icon_type;
int button_group_type;
char *title;
@@ -2645,7 +2646,7 @@ enum
structire are owned by mupdf and need not be freed by the
caller.
*/
-fz_alert_event *fz_access_alert_event(fz_interactive *idoc);
+fz_alert_event *fz_access_alert_event(fz_doc_event *event);
/*
fz_submit_event: details of a submit event. The app should submit