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/file.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/file.h')
-rw-r--r-- | content/fetchers/file.h | 10 |
1 files changed, 8 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. */ -/** \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 |