NetSurf
|
Save HTML document with dependencies (interface). More...
#include <stdbool.h>
#include <libwapcaplet/libwapcaplet.h>
Go to the source code of this file.
Typedefs | |
typedef void(* | save_complete_set_type_cb) (const char *path, lwc_string *mime_type) |
Callback to set type of a file. More... | |
Functions | |
void | save_complete_init (void) |
Initialise save complete module. More... | |
nserror | save_complete_finalise (void) |
Finalise save complete module. More... | |
nserror | save_complete (struct hlcache_handle *c, const char *path, save_complete_set_type_cb set_type) |
Save an HTML page with all dependencies. More... | |
Save HTML document with dependencies (interface).
Definition in file save_complete.h.
typedef void(* save_complete_set_type_cb) (const char *path, lwc_string *mime_type) |
Callback to set type of a file.
path | Native path of file |
mime_type | MIME type of file content |
Definition at line 39 of file save_complete.h.
nserror save_complete | ( | struct hlcache_handle * | c, |
const char * | path, | ||
save_complete_set_type_cb | set_type | ||
) |
Save an HTML page with all dependencies.
c | CONTENT_HTML to save |
path | Native path to directory to save in to (must exist) |
set_type | Callback to set type of a file, or NULL |
Definition at line 1330 of file save_complete.c.
References NSERROR_OK, path(), result, save_complete_ctx_finalise(), save_complete_ctx_initialise(), save_complete_inventory(), and save_complete_save_html().
Referenced by ami_file_save(), menu_save_page(), ro_gui_save_complete(), and savepage_button_clicked_cb().
nserror save_complete_finalise | ( | void | ) |
Finalise save complete module.
Definition at line 1322 of file save_complete.c.
References NSERROR_OK, regfree(), and save_complete_import_re.
Referenced by nsgtk_finalise().
void save_complete_init | ( | void | ) |
Initialise save complete module.
Definition at line 1289 of file save_complete.c.
References REG_EXTENDED, REG_ICASE, regcomp_wrapper(), and save_complete_import_re.
Referenced by gui_init(), main(), menu_save_page(), and nsgtk_setup().