diff options
Diffstat (limited to 'pdf/mupdf-internal.h')
-rw-r--r-- | pdf/mupdf-internal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pdf/mupdf-internal.h b/pdf/mupdf-internal.h index 1d1fd4e7..7fd287dd 100644 --- a/pdf/mupdf-internal.h +++ b/pdf/mupdf-internal.h @@ -228,6 +228,9 @@ struct pdf_document_s pdf_js *js; int recalculating; int dirty; + + fz_doc_event_cb *event_cb; + void *event_cb_data; }; pdf_document *pdf_open_document_no_run(fz_context *ctx, const char *filename); @@ -627,6 +630,9 @@ int pdf_choice_widget_options(pdf_document *doc, fz_widget *tw, char *opts[]); int pdf_choice_widget_is_multiselect(pdf_document *doc, fz_widget *tw); int pdf_choice_widget_value(pdf_document *doc, fz_widget *tw, char *opts[]); void pdf_choice_widget_set_value(pdf_document *doc, fz_widget *tw, int n, char *opts[]); +void pdf_set_doc_event_callback(pdf_document *doc, fz_doc_event_cb *event_cb, void *data); + +void pdf_event_issue_alert(pdf_document *doc, fz_alert_event *event); /* * Javascript handler |