From 53f0f432dd2aa915765e3b2869928a18f09adad8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 25 Oct 2014 17:10:08 +0100 Subject: 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. --- content/fetchers/file.h | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'content/fetchers/file.h') diff --git a/content/fetchers/file.h b/content/fetchers/file.h index b3c39db9f..5a5cfe89b 100644 --- a/content/fetchers/file.h +++ b/content/fetchers/file.h @@ -16,13 +16,19 @@ * along with this program. If not, see . */ -/** \file - * file: URL method handler +/** + * \file + * file scheme fetcher handler interface. */ #ifndef NETSURF_CONTENT_FETCHERS_FETCH_FILE_H #define NETSURF_CONTENT_FETCHERS_FETCH_FILE_H +/** + * Register file scheme handler. + * + * \return NSERROR_OK on successful registration or error code on failure. + */ nserror fetch_file_register(void); #endif -- cgit v1.2.3