diff options
author | James Bursa <james@netsurf-browser.org> | 2004-02-13 16:09:12 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-02-13 16:09:12 +0000 |
commit | 1319ff78c89fd0c34feea187ca3d67058875fbe6 (patch) | |
tree | b3a1bb74c14305e38991db53e9119c72084daa87 /desktop/options.h | |
parent | add94ad0381bae4889dcd46620b8bfe4e4f443ce (diff) | |
download | netsurf-1319ff78c89fd0c34feea187ca3d67058875fbe6.tar.gz netsurf-1319ff78c89fd0c34feea187ca3d67058875fbe6.tar.bz2 |
[project @ 2004-02-13 16:09:12 by bursa]
Clean up and rewrite options code.
svn path=/import/netsurf/; revision=536
Diffstat (limited to 'desktop/options.h')
-rw-r--r-- | desktop/options.h | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/desktop/options.h b/desktop/options.h index 415279b36..3c2acced9 100644 --- a/desktop/options.h +++ b/desktop/options.h @@ -3,32 +3,32 @@ * Licensed under the GNU General Public License, * http://www.opensource.org/licenses/gpl-license * Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net> + * Copyright 2004 James Bursa <bursa@users.sourceforge.net> */ +/** \file + * Option reading and saving (interface). + * + * Non-platform specific options can be added by editing this file and + * netsurf/desktop/options.c + * + * Platform specific options should be added in the platform options.h. + * + * The following types of options are supported: + * - bool (OPTION_BOOL) + * - int (OPTION_INTEGER) + * - char* (OPTION_STRING) (must be allocated on heap, may be 0, free before + * assigning a new value) + */ #ifndef _NETSURF_DESKTOP_OPTIONS_H_ #define _NETSURF_DESKTOP_OPTIONS_H_ -struct options; - -#include "netsurf/riscos/options.h" - -struct options -{ - /* global options */ - int http; - char* http_proxy; - int http_port; +extern bool option_http_proxy; +extern char *option_http_proxy_host; +extern int option_http_proxy_port; - /* platform specific options */ - PLATFORM_OPTIONS -}; - -extern struct options OPTIONS; - -void options_init(struct options* opt); -void options_write(struct options*, char* filename); -void options_read(struct options*, char* filename); +void options_read(const char *path); +void options_write(const char *path); #endif - |