NetSurf
Functions
netsurf.h File Reference

NetSurf core interface registration, construction and destruction. More...

#include "utils/errors.h"
#include "desktop/gui_table.h"
Include dependency graph for netsurf.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

nserror netsurf_register (struct netsurf_table *table)
 Register operation table. More...
 
nserror netsurf_init (const char *store_path)
 Initialise netsurf core. More...
 
void netsurf_exit (void)
 Finalise NetSurf core. More...
 

Detailed Description

NetSurf core interface registration, construction and destruction.

Definition in file netsurf.h.

Function Documentation

◆ netsurf_exit()

void netsurf_exit ( void  )

Finalise NetSurf core.

Finalise NetSurf core.

Definition at line 232 of file netsurf.c.

References content_factory_fini(), corestrings_fini(), fetcher_quit(), free_user_agent_string(), guit, hlcache_finalise(), hlcache_stop(), image_cache_fini(), js_finalise(), messages_destroy(), netsurf_table::misc, netsurf_lwc_iterator(), ns_system_colour_finalize(), NSLOG, page_info_fini(), gui_misc_table::quit, search_web_finalise(), urldb_destroy(), and utf8_finalise().

Referenced by main(), nsbeos_replicant_main_thread(), nsgtk_finalise(), and WinMain().

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

◆ netsurf_init()

nserror netsurf_init ( const char *  store_path)

Initialise netsurf core.

Parameters
store_pathpath to persistant storage.
Returns
NSERROR_OK on success or error code on faliure.

Definition at line 107 of file netsurf.c.

References image_cache_parameters::bg_clean_time, hlcache_parameters::bg_clean_time, corestrings_init(), llcache_parameters::fetch_attempts, fetcher_init(), HL_CACHE_CLEAN_TIME, hlcache_initialise(), html_init(), image_cache_parameters::hysteresis, llcache_store_parameters::hysteresis, IMAGE_CACHE_CLEAN_TIME, image_cache_init(), image_init(), js_initialise(), image_cache_parameters::limit, llcache_store_parameters::limit, llcache_parameters::limit, hlcache_parameters::llcache, LLCACHE_STORE_MAX_BANDWIDTH, LLCACHE_STORE_MIN_BANDWIDTH, LLCACHE_STORE_MIN_LIFETIME, LLCACHE_STORE_TIME_QUANTUM, MINIMUM_MEMORY_CACHE_SIZE, ns_system_colour_init(), nscolour_update(), nscss_init(), NSERROR_OK, NSLOG, nsoption_charp, nsoption_int, nsoption_uint, page_info_init(), llcache_store_parameters::path, PRIsizet, SPECULATE_SMALL, llcache_parameters::store, and textplain_init().

Referenced by gui_init_replicant(), main(), and WinMain().

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

◆ netsurf_register()

nserror netsurf_register ( struct netsurf_table table)

Register operation table.

Parameters
tableNetSurf operations table.
Returns
NSERROR_OK on success or error code on faliure. On faliure global table will not be initialised.

Definition at line 777 of file gui_factory.c.

References netsurf_table::bitmap, netsurf_table::clipboard, netsurf_table::corewindow, default_clipboard_table, default_corewindow_table, default_download_table, default_file_table, default_search_table, default_search_web_table, default_utf8_table, netsurf_table::download, netsurf_table::fetch, netsurf_table::file, guit, netsurf_table::layout, netsurf_table::llcache, netsurf_table::misc, NSERROR_BAD_PARAMETER, NSERROR_INIT_FAILED, NSERROR_OK, null_llcache_table, netsurf_table::search, netsurf_table::search_web, netsurf_table::utf8, verify_bitmap_register(), verify_clipboard_register(), verify_corewindow_register(), verify_download_register(), verify_fetch_register(), verify_file_register(), verify_layout_register(), verify_llcache_register(), verify_misc_register(), verify_search_register(), verify_search_web_register(), verify_utf8_register(), verify_window_register(), and netsurf_table::window.

Referenced by gui_init_replicant(), main(), and WinMain().

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