From b4723c1d05819d4e47fc59254f5ad8c9d6d62db3 Mon Sep 17 00:00:00 2001 From: James Bursa Date: Mon, 21 Jun 2004 15:09:59 +0000 Subject: [project @ 2004-06-21 15:09:58 by bursa] Merge memory cache into content module. svn path=/import/netsurf/; revision=986 --- desktop/options.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'desktop/options.c') diff --git a/desktop/options.c b/desktop/options.c index 1748fc6b1..6b8975f5d 100644 --- a/desktop/options.c +++ b/desktop/options.c @@ -41,8 +41,10 @@ int option_font_size = 100; int option_font_min_size = 70; /** Accept-Language header. */ char *option_accept_language = 0; -/** Strict verification of SSL sertificates */ +/** Enable verification of SSL certificates. */ bool option_ssl_verify_certificates = true; +/** Preferred maximum size of memory cache / bytes. */ +int option_memory_cache_size = 2 * 1024 * 1024; EXTRA_OPTION_DEFINE @@ -59,6 +61,7 @@ struct { { "font_min_size", OPTION_INTEGER, &option_font_min_size }, { "accept_language", OPTION_STRING, &option_accept_language }, { "ssl_verify_certificates", OPTION_BOOL, &option_ssl_verify_certificates }, + { "memory_cache_size", OPTION_STRING, &option_memory_cache_size }, EXTRA_OPTION_TABLE }; @@ -133,6 +136,9 @@ void options_read(const char *path) option_font_min_size = 10; if (500 < option_font_min_size) option_font_min_size = 500; + + if (option_memory_cache_size < 0) + option_memory_cache_size = 0; } -- cgit v1.2.3