2003-06-30 12:44:03 +00:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
|
|
|
* Copyright 2003 Phil Mellor <monkeyson@users.sourceforge.net>
|
2004-02-13 16:09:12 +00:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
2003-06-06 02:14:28 +00:00
|
|
|
*/
|
|
|
|
|
2004-02-13 16:09:12 +00:00
|
|
|
/** \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)
|
|
|
|
*/
|
2003-06-01 23:02:56 +00:00
|
|
|
|
|
|
|
#ifndef _NETSURF_DESKTOP_OPTIONS_H_
|
|
|
|
#define _NETSURF_DESKTOP_OPTIONS_H_
|
|
|
|
|
2004-12-09 10:30:44 +00:00
|
|
|
#include "netsurf/desktop/tree.h"
|
|
|
|
|
2004-07-27 15:49:28 +00:00
|
|
|
enum { OPTION_HTTP_PROXY_AUTH_NONE = 0, OPTION_HTTP_PROXY_AUTH_BASIC = 1,
|
|
|
|
OPTION_HTTP_PROXY_AUTH_NTLM = 2 };
|
|
|
|
|
2004-02-13 16:09:12 +00:00
|
|
|
extern bool option_http_proxy;
|
|
|
|
extern char *option_http_proxy_host;
|
|
|
|
extern int option_http_proxy_port;
|
2004-07-27 15:49:28 +00:00
|
|
|
extern int option_http_proxy_auth;
|
|
|
|
extern char *option_http_proxy_auth_user;
|
|
|
|
extern char *option_http_proxy_auth_pass;
|
2004-02-13 23:07:42 +00:00
|
|
|
extern int option_font_size;
|
|
|
|
extern int option_font_min_size;
|
2004-03-08 00:03:58 +00:00
|
|
|
extern char *option_accept_language;
|
2004-06-10 22:40:56 +00:00
|
|
|
extern bool option_ssl_verify_certificates;
|
2004-06-21 15:09:59 +00:00
|
|
|
extern int option_memory_cache_size;
|
2004-07-30 23:40:01 +00:00
|
|
|
extern bool option_block_ads;
|
2004-10-04 23:54:42 +00:00
|
|
|
extern int option_minimum_gif_delay;
|
2004-10-01 21:31:55 +00:00
|
|
|
extern bool option_send_referer;
|
2004-12-09 10:30:44 +00:00
|
|
|
extern bool option_animate_images;
|
2003-06-06 02:14:28 +00:00
|
|
|
|
2004-02-13 16:09:12 +00:00
|
|
|
void options_read(const char *path);
|
|
|
|
void options_write(const char *path);
|
2003-06-01 23:02:56 +00:00
|
|
|
|
2004-12-09 10:30:44 +00:00
|
|
|
struct tree *options_load_hotlist(const char *filename);
|
|
|
|
bool options_save_hotlist(struct tree *tree, const char *filename);
|
|
|
|
|
2003-06-01 23:02:56 +00:00
|
|
|
#endif
|