diff options
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/netsurf.c | 5 | ||||
-rw-r--r-- | desktop/netsurf.h | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/desktop/netsurf.c b/desktop/netsurf.c index 18ce1264f..e82233a01 100644 --- a/desktop/netsurf.c +++ b/desktop/netsurf.c @@ -128,7 +128,7 @@ nserror netsurf_register(struct netsurf_table *table) } /* exported interface documented in desktop/netsurf.h */ -nserror netsurf_init(const char *messages) +nserror netsurf_init(const char *messages, const char *store_path) { nserror ret; struct utsname utsname; @@ -197,8 +197,7 @@ nserror netsurf_init(const char *messages) hlcache_parameters.llcache.store.hysteresis = (hlcache_parameters.llcache.store.limit * 20) / 100;; /* set the path to the backing store */ - /** \todo set the backing store path properly */ - hlcache_parameters.llcache.store.path = "/tmp/ns"; + hlcache_parameters.llcache.store.path = store_path; /* image handler bitmap cache */ ret = image_cache_init(&image_cache_parameters); diff --git a/desktop/netsurf.h b/desktop/netsurf.h index 60ec57845..6c6a22a86 100644 --- a/desktop/netsurf.h +++ b/desktop/netsurf.h @@ -43,7 +43,7 @@ nserror netsurf_register(struct netsurf_table *table); * @param messages path to translation mesage file. * @return NSERROR_OK on success or error code on faliure. */ -nserror netsurf_init(const char *messages); +nserror netsurf_init(const char *messages, const char *store_path); /** * Run event loop. |