NetSurf
Typedefs | Functions
save_complete.h File Reference

Save HTML document with dependencies (interface). More...

#include <stdbool.h>
#include <libwapcaplet/libwapcaplet.h>
Include dependency graph for save_complete.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Save HTML document with dependencies (interface).

Definition in file save_complete.h.

Typedef Documentation

◆ save_complete_set_type_cb

typedef void(* save_complete_set_type_cb) (const char *path, lwc_string *mime_type)

Callback to set type of a file.

Parameters
pathNative path of file
mime_typeMIME type of file content

Definition at line 39 of file save_complete.h.

Function Documentation

◆ save_complete()

nserror save_complete ( struct hlcache_handle c,
const char *  path,
save_complete_set_type_cb  set_type 
)

Save an HTML page with all dependencies.

Parameters
cCONTENT_HTML to save
pathNative path to directory to save in to (must exist)
set_typeCallback to set type of a file, or NULL
Returns
NSERROR_OK on success else error code

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save_complete_finalise()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ save_complete_init()

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().

Here is the call graph for this function:
Here is the caller graph for this function: