mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 23:09:43 +03:00
ce0d5294d5
Use charset from Content-Type header. svn path=/import/netsurf/; revision=460
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/*
|
|
* 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, char *params[]);
|
|
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
|