diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-25 17:10:08 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-25 17:15:23 +0100 |
commit | 53f0f432dd2aa915765e3b2869928a18f09adad8 (patch) | |
tree | ed7fbb13adb6ea293f15c870490df20b71865521 /content/fetchers/curl.h | |
parent | 7cf5cf7cb7797d7f39bb101504822da44ccc3355 (diff) | |
download | netsurf-53f0f432dd2aa915765e3b2869928a18f09adad8.tar.gz netsurf-53f0f432dd2aa915765e3b2869928a18f09adad8.tar.bz2 |
update fetcher registration API to return an error code.
By using an error code return we can gracefully handle fetcher
registration faliures instead of just immediately aborting.
The curl handler was also cleaned up and documentation improved
as a side effect.
Diffstat (limited to 'content/fetchers/curl.h')
-rw-r--r-- | content/fetchers/curl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/content/fetchers/curl.h b/content/fetchers/curl.h index 7ee096349..5f2446a91 100644 --- a/content/fetchers/curl.h +++ b/content/fetchers/curl.h @@ -25,7 +25,12 @@ #include <curl/curl.h> -void fetch_curl_register(void); +/** + * Register curl scheme handler. + * + * \return NSERROR_OK on successful registration or error code on failure. + */ +nserror fetch_curl_register(void); /** Global cURL multi handle. */ extern CURLM *fetch_curl_multi; |