diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-26 21:07:19 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-09-26 21:07:19 +0000 |
commit | c94271edf591226f9a5de88ac59719c4b5290a1b (patch) | |
tree | 176856c99c8a1a6eb859df6509df0b44376b6041 /content/fetchers/about.c | |
parent | 393b1afd4f09db7205c5e232c0c477ad3bb1ea32 (diff) | |
download | netsurf-c94271edf591226f9a5de88ac59719c4b5290a1b.tar.gz netsurf-c94271edf591226f9a5de88ac59719c4b5290a1b.tar.bz2 |
Fetchers register with an lwc_string, rather than a string.
svn path=/trunk/netsurf/; revision=12891
Diffstat (limited to 'content/fetchers/about.c')
-rw-r--r-- | content/fetchers/about.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/content/fetchers/about.c b/content/fetchers/about.c index 59461ee9f..2a5475d97 100644 --- a/content/fetchers/about.c +++ b/content/fetchers/about.c @@ -39,6 +39,8 @@ #include <limits.h> #include <stdarg.h> +#include <libwapcaplet/libwapcaplet.h> + #include "utils/config.h" #include "content/dirlist.h" #include "content/fetch.h" @@ -486,13 +488,13 @@ fetch_about_config_handler_aborted: /** callback to initialise the about fetcher. */ -static bool fetch_about_initialise(const char *scheme) +static bool fetch_about_initialise(lwc_string *scheme) { return true; } /** callback to initialise the about fetcher. */ -static void fetch_about_finalise(const char *scheme) +static void fetch_about_finalise(lwc_string *scheme) { } @@ -561,7 +563,7 @@ static void fetch_about_abort(void *ctx) /** callback to poll for additional about fetch contents */ -static void fetch_about_poll(const char *scheme) +static void fetch_about_poll(lwc_string *scheme) { struct fetch_about_context *c, *next; @@ -603,7 +605,15 @@ static void fetch_about_poll(const char *scheme) void fetch_about_register(void) { - fetch_add_fetcher("about", + lwc_string *scheme; + + if (lwc_intern_string("about", SLEN("about"), + &scheme) != lwc_error_ok) { + die("Failed to initialise the fetch module " + "(couldn't intern \"about\")."); + } + + fetch_add_fetcher(scheme, fetch_about_initialise, fetch_about_setup, fetch_about_start, |