2003-06-30 16:44:03 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
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
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_DESKTOP_NETSURF_H_
|
|
|
|
#define _NETSURF_DESKTOP_NETSURF_H_
|
|
|
|
|
2003-11-06 22:41:41 +03:00
|
|
|
#include <stdbool.h>
|
2010-03-30 00:03:44 +04:00
|
|
|
#include "utils/errors.h"
|
2002-09-11 18:24:02 +04:00
|
|
|
|
2003-11-06 22:41:41 +03:00
|
|
|
extern bool netsurf_quit;
|
2003-12-19 20:11:07 +03:00
|
|
|
extern const char * const netsurf_version;
|
2007-01-30 22:51:54 +03:00
|
|
|
extern const int netsurf_version_major;
|
|
|
|
extern const int netsurf_version_minor;
|
2002-09-11 18:24:02 +04:00
|
|
|
|
2014-05-10 13:22:10 +04:00
|
|
|
struct netsurf_table;
|
2014-01-11 18:20:30 +04:00
|
|
|
|
2014-05-10 13:22:10 +04:00
|
|
|
/**
|
|
|
|
* Register operation table.
|
|
|
|
*
|
|
|
|
* @param table NetSurf operations table.
|
|
|
|
* @return NSERROR_OK on success or error code on faliure.
|
|
|
|
*/
|
|
|
|
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
|
|
|
|
|
|
|
/**
|
|
|
|
* Run event loop.
|
|
|
|
*/
|
2008-10-17 00:49:12 +04:00
|
|
|
extern int netsurf_main_loop(void);
|
2008-10-16 15:10:43 +04:00
|
|
|
|
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
|