NetSurf
fetch.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 Vincent Sanders <vince@netsurf-browser.org>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
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#ifndef _NETSURF_WINDOWS_FILETYPE_H_
20#define _NETSURF_WINDOWS_FILETYPE_H_
21
22/**
23 * win32 API fetch operation table
24 */
26
27/**
28 * Translate resource to win32 resource data.
29 *
30 * Obtains the data for a resource directly
31 *
32 * \param path The path of the resource to locate.
33 * \param data Pointer to recive data into
34 * \param data_len Pointer to length of returned data
35 * \return NSERROR_OK and the data and length values updated
36 * else appropriate error code.
37 */
38nserror nsw32_get_resource_data(const char *path, const uint8_t **data_out, size_t *data_len_out);
39
40#endif
nserror
Enumeration of error codes.
Definition: errors.h:29
nserror nsw32_get_resource_data(const char *path, const uint8_t **data_out, size_t *data_len_out)
Translate resource to win32 resource data.
Definition: fetch.c:90
struct gui_fetch_table * win32_fetch_table
win32 API fetch operation table
Definition: fetch.c:133
function table for fetcher operations.
Definition: fetch.h:33
static nserror path(const struct redraw_context *ctx, const plot_style_t *pstyle, const float *p, unsigned int n, const float transform[6])
Plots a path.
Definition: plot.c:821