summaryrefslogtreecommitdiff
path: root/content/fetchers/resource.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-10-25 17:10:08 +0100
committerVincent Sanders <vince@kyllikki.org>2014-10-25 17:15:23 +0100
commit53f0f432dd2aa915765e3b2869928a18f09adad8 (patch)
treeed7fbb13adb6ea293f15c870490df20b71865521 /content/fetchers/resource.h
parent7cf5cf7cb7797d7f39bb101504822da44ccc3355 (diff)
downloadnetsurf-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/resource.h')
-rw-r--r--content/fetchers/resource.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/content/fetchers/resource.h b/content/fetchers/resource.h
index cf4d6edac..8c7b2d10c 100644
--- a/content/fetchers/resource.h
+++ b/content/fetchers/resource.h
@@ -16,8 +16,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-/** \file
- * resource: URL method handler.
+/**
+ * \file
+ * resource URL scheme handler interface.
*
* The resource fetcher is intended to provide a flat uniform URL
* space for browser local resources referenced by URL. Using this
@@ -34,6 +35,8 @@
* Register the resource scheme.
*
* should only be called from the fetch initialise
+ *
+ * \return NSERROR_OK on successful registration or error code on failure.
*/
nserror fetch_resource_register(void);