diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-26 23:49:18 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-26 23:53:14 +0000 |
commit | d204d6d555ac8e79da330a93e96fb070c8ee8f8c (patch) | |
tree | 5422294976240b8f63d8255f5e47c8396ad88248 /desktop/gui_misc.h | |
parent | 29dfdd459dc4f835bc4dda5d67714b4aaa2c897a (diff) | |
download | netsurf-d204d6d555ac8e79da330a93e96fb070c8ee8f8c.tar.gz netsurf-d204d6d555ac8e79da330a93e96fb070c8ee8f8c.tar.bz2 |
Clean up saving as PDF
This removes the global PDF_Password interface that had completely
bitrotted and moves it into the standard misc operation table with a
sensible defualt implementation.
This also cleans up and fixes the gtk frontend implementation of the
pdf password callback so it compiles.
Finally this moves the implementation to a sensible place alongside
the other exporters reducing target makefile complexity futher.
Diffstat (limited to 'desktop/gui_misc.h')
-rw-r--r-- | desktop/gui_misc.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/gui_misc.h b/desktop/gui_misc.h index daad6ba2e..8005006c7 100644 --- a/desktop/gui_misc.h +++ b/desktop/gui_misc.h @@ -80,6 +80,16 @@ struct gui_browser_table { void (*login)(struct nsurl *url, const char *realm, nserror (*cb)(bool proceed, void *pw), void *cbpw); + /** + * Warn the user of an event. + */ + void (*warning)(const char *warning, const char *detail); + + /** + * Prompt the user for a password for a PDF. + */ + void (*pdf_password)(char **owner_pass, char **user_pass, char *path); + }; #endif |