summaryrefslogtreecommitdiff
path: root/content/other.c
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2003-06-17 19:24:21 +0000
committerJames Bursa <james@netsurf-browser.org>2003-06-17 19:24:21 +0000
commit0c0ff3c59631d0968c888279195ea40d4a7fd824 (patch)
treef94b64c20bc361664de61ef8993be7693ad2a08d /content/other.c
parentce6dbbb5db1d4ffe77ca99411ddb2d19694eff9c (diff)
downloadnetsurf-0c0ff3c59631d0968c888279195ea40d4a7fd824.tar.gz
netsurf-0c0ff3c59631d0968c888279195ea40d4a7fd824.tar.bz2
[project @ 2003-06-17 19:24:20 by bursa]
Change fetchcache system to store loading contents in cache. svn path=/import/netsurf/; revision=180
Diffstat (limited to 'content/other.c')
-rw-r--r--content/other.c50
1 files changed, 50 insertions, 0 deletions
diff --git a/content/other.c b/content/other.c
new file mode 100644
index 000000000..2374aa679
--- /dev/null
+++ b/content/other.c
@@ -0,0 +1,50 @@
+/**
+ * $Id: other.c,v 1.1 2003/06/17 19:24:20 bursa Exp $
+ */
+
+#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);
+}