diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-22 09:34:34 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-22 09:34:34 +0000 |
commit | 1490b52a6b96b6a69a0c4fe9e0515dc717425128 (patch) | |
tree | 8caba44a9da98e6cebf4f188e3232534b1596a4d /beos/options.h | |
parent | 0797bf5a5731b2c8d55105b453530584ea4e1f5b (diff) | |
download | netsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.gz netsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.bz2 |
NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
Diffstat (limited to 'beos/options.h')
-rw-r--r-- | beos/options.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/beos/options.h b/beos/options.h index 9ea69ac92..9b8a3d109 100644 --- a/beos/options.h +++ b/beos/options.h @@ -17,19 +17,23 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. */ +#ifndef _NETSURF_DESKTOP_OPTIONS_INCLUDING_ +#error "Frontend options header cannot be included directly" +#endif + #ifndef _NETSURF_BEOS_OPTIONS_H_ #define _NETSURF_BEOS_OPTIONS_H_ -#include "desktop/options.h" +#define NSOPTION_EXTRA_DEFINE \ + bool render_resample; \ + char *url_file -extern bool option_render_resample; -extern char *option_url_file; +#define NSOPTION_EXTRA_DEFAULTS \ + .render_resample = false, \ + .url_file = 0 -#define EXTRA_OPTION_DEFINE \ -bool option_render_resample = false; \ -char *option_url_file = 0; +#define NSOPTION_EXTRA_TABLE \ + { "render_resample", OPTION_BOOL, &nsoptions.render_resample }, \ + { "url_file", OPTION_STRING, &nsoptions.url_file } -#define EXTRA_OPTION_TABLE \ -{ "render_resample", OPTION_BOOL, &option_render_resample }, \ -{ "url_file", OPTION_STRING, &option_url_file }, #endif |