NetSurf
netsurf.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 Vincent Sanders <vince@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 *
22 * NetSurf core interface registration, construction and destruction.
23 */
24
25#ifndef _NETSURF_NETSURF_H_
26#define _NETSURF_NETSURF_H_
27
28#include "utils/errors.h"
29#include "desktop/gui_table.h"
30
31/**
32 * Register operation table.
33 *
34 * @param table NetSurf operations table.
35 * @return NSERROR_OK on success or error code on faliure. On faliure
36 * global table will not be initialised.
37 */
39
40/**
41 * Initialise netsurf core.
42 *
43 * @param store_path path to persistant storage.
44 * @return NSERROR_OK on success or error code on faliure.
45 */
46nserror netsurf_init(const char *store_path);
47
48/**
49 * Finalise NetSurf core
50 */
51extern void netsurf_exit(void);
52
53#endif
Error codes.
nserror
Enumeration of error codes.
Definition: errors.h:29
top level interface table.
void netsurf_exit(void)
Finalise NetSurf core.
Definition: netsurf.c:232
nserror netsurf_init(const char *store_path)
Initialise netsurf core.
Definition: netsurf.c:107
nserror netsurf_register(struct netsurf_table *table)
Register operation table.
Definition: gui_factory.c:707
NetSurf operation function table.
Definition: gui_table.h:48