NetSurf
resource.h
Go to the documentation of this file.
1/*
2 * Copyright 2011 Vincent Sanders <vince@netsurf-browser.org>
3 *
4 * This file is part of NetSurf.
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19/**
20 * \file
21 * resource URL scheme handler interface.
22 *
23 * The resource fetcher is intended to provide a flat uniform URL
24 * space for browser local resources referenced by URL. Using this
25 * scheme each frontend is only required to provide a single entry
26 * point to locate resources which can be accessed by the standard URL
27 * type scheme.
28 *
29 */
30
31#ifndef NETSURF_CONTENT_FETCHERS_FETCH_RESOURCE_H
32#define NETSURF_CONTENT_FETCHERS_FETCH_RESOURCE_H
33
34/**
35 * Register the resource scheme.
36 *
37 * should only be called from the fetch initialise
38 *
39 * \return NSERROR_OK on successful registration or error code on failure.
40 */
42
43#endif
nserror
Enumeration of error codes.
Definition: errors.h:29
nserror fetch_resource_register(void)
Register the resource scheme.
Definition: resource.c:479