blob: 96326a1590b72a2465ef6eb36c1d1acdb0cd3a0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* Licensed under the GNU General Public License,
* http://www.opensource.org/licenses/gpl-license
* Copyright 2003 James Bursa <bursa@users.sourceforge.net>
*/
/** \file
* Content for unknown types (interface).
*
* This handles ::content structures of type CONTENT_OTHER. It is used as a
* fallback when the MIME type of a URL is not recognised. The data is simply
* stored as it is received.
*/
#ifndef _NETSURF_RISCOS_OTHER_H_
#define _NETSURF_RISCOS_OTHER_H_
struct content;
/** Data specific to CONTENT_OTHER. */
struct content_other_data {
char *data; /**< Stored data. */
unsigned long length; /**< Current length of stored data. */
};
void other_create(struct content *c);
void other_process_data(struct content *c, char *data, unsigned long size);
int other_convert(struct content *c, unsigned int width, unsigned int height);
void other_revive(struct content *c, unsigned int width, unsigned int height);
void other_reformat(struct content *c, unsigned int width, unsigned int height);
void other_destroy(struct content *c);
#endif
|