summaryrefslogtreecommitdiff
path: root/content/other.c
blob: 638cedcd39eb126f3edcdef4b860cbad60936d6c (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*
 * 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>
 */

#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include "netsurf/content/other.h"
#include "netsurf/utils/utils.h"


void other_create(struct content *c)
{
	c->data.other.data = xcalloc(0, 1);
	c->data.other.length = 0;
}


void other_process_data(struct content *c, char *data, unsigned long size)
{
	c->data.other.data = xrealloc(c->data.other.data, c->data.other.length + size);
	memcpy(c->data.other.data + c->data.other.length, data, size);
	c->data.other.length += size;
	c->size += size;
}


int other_convert(struct content *c, unsigned int width, unsigned int height)
{
	c->status = CONTENT_STATUS_DONE;
	return 0;
}


void other_revive(struct content *c, unsigned int width, unsigned int height)
{
	assert(0);
}


void other_reformat(struct content *c, unsigned int width, unsigned int height)
{
	assert(0);
}


void other_destroy(struct content *c)
{
	assert(0);
}