2003-06-30 16:44:03 +04:00
|
|
|
/*
|
2014-10-13 18:08:16 +04:00
|
|
|
* Copyright 2014 Vincent Sanders <vince@netsurf-browser.org>
|
2007-08-08 20:16:03 +04:00
|
|
|
*
|
|
|
|
* This file is part of NetSurf, http://www.netsurf-browser.org/
|
|
|
|
*
|
|
|
|
* NetSurf is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; version 2 of the License.
|
|
|
|
*
|
|
|
|
* NetSurf is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
2002-09-11 18:24:02 +04:00
|
|
|
*/
|
|
|
|
|
2014-10-16 12:41:50 +04:00
|
|
|
/**
|
|
|
|
* \file
|
|
|
|
*
|
|
|
|
* NetSurf core interface registration, construction and destruction.
|
|
|
|
*/
|
|
|
|
|
2002-09-11 18:24:02 +04:00
|
|
|
#ifndef _NETSURF_DESKTOP_NETSURF_H_
|
|
|
|
#define _NETSURF_DESKTOP_NETSURF_H_
|
|
|
|
|
2010-03-30 00:03:44 +04:00
|
|
|
#include "utils/errors.h"
|
2014-10-16 12:41:50 +04:00
|
|
|
#include "desktop/gui_table.h"
|
2014-01-11 18:20:30 +04:00
|
|
|
|
2014-05-10 13:22:10 +04:00
|
|
|
/**
|
|
|
|
* Register operation table.
|
|
|
|
*
|
|
|
|
* @param table NetSurf operations table.
|
2014-10-16 12:41:50 +04:00
|
|
|
* @return NSERROR_OK on success or error code on faliure. On faliure
|
|
|
|
* global table will not be initialised.
|
2014-05-10 13:22:10 +04:00
|
|
|
*/
|
|
|
|
nserror netsurf_register(struct netsurf_table *table);
|
2014-01-10 18:32:29 +04:00
|
|
|
|
2014-05-10 13:22:10 +04:00
|
|
|
/**
|
|
|
|
* Initialise netsurf core.
|
|
|
|
*
|
|
|
|
* @param messages path to translation mesage file.
|
|
|
|
* @return NSERROR_OK on success or error code on faliure.
|
|
|
|
*/
|
2014-03-23 15:33:32 +04:00
|
|
|
nserror netsurf_init(const char *messages, const char *store_path);
|
2014-05-10 13:22:10 +04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Finalise NetSurf core
|
|
|
|
*/
|
2014-01-10 18:32:29 +04:00
|
|
|
extern void netsurf_exit(void);
|
|
|
|
|
2002-09-11 18:24:02 +04:00
|
|
|
#endif
|