From 64699fb3f05c7169dcca414f52a2502698b25666 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Sat, 6 Mar 2004 12:34:47 +0000 Subject: [project @ 2004-03-06 12:34:47 by jmb] Save Source support. svn path=/import/netsurf/; revision=588 --- riscos/save_html.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 riscos/save_html.c (limited to 'riscos/save_html.c') diff --git a/riscos/save_html.c b/riscos/save_html.c new file mode 100644 index 000000000..13c594db2 --- /dev/null +++ b/riscos/save_html.c @@ -0,0 +1,25 @@ +/* + * 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 2004 John M Bell + */ + +#include +#include + +#include "oslib/osfile.h" + +#include "netsurf/utils/config.h" +#include "netsurf/content/content.h" +#include "netsurf/riscos/save_html.h" + +void save_as_html(struct content *c, char *path) { + + if (c->type != CONTENT_HTML) { + return; + } + + xosfile_save_stamped(path, 0xfaf, (byte*)c->data.html.source, + (byte*)c->data.html.source+c->data.html.length); +} -- cgit v1.2.3