summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Bursa <james@netsurf-browser.org>2004-03-27 18:47:21 +0000
committerJames Bursa <james@netsurf-browser.org>2004-03-27 18:47:21 +0000
commit3fb3866dfbc39ef54decd291d9300838f58b56d7 (patch)
treef88bf0a5ff5af4b762d8953996f205d763a468fa
parent16423f30fc63b6088a896768775ae49ab19258b8 (diff)
downloadnetsurf-3fb3866dfbc39ef54decd291d9300838f58b56d7.tar.gz
netsurf-3fb3866dfbc39ef54decd291d9300838f58b56d7.tar.bz2
[project @ 2004-03-27 18:47:21 by bursa]
Add save_complete to the debug build. svn path=/import/netsurf/; revision=679
-rw-r--r--debug/netsurfd.c27
-rw-r--r--makefile4
2 files changed, 29 insertions, 2 deletions
diff --git a/debug/netsurfd.c b/debug/netsurfd.c
index f45625dc5..42e09dd1d 100644
--- a/debug/netsurfd.c
+++ b/debug/netsurfd.c
@@ -46,6 +46,7 @@ int main(int argc, char *argv[])
cache_init();
fetchcache_init();
url_init();
+ save_complete_init();
options_read("options");
messages_load("messages");
@@ -75,6 +76,7 @@ int main(int argc, char *argv[])
cache_dump();
if (!destroyed) {
/* content_reformat(c, 1, 1000); */
+ save_complete(c, "save_complete");
content_remove_user(c, callback, 0, 0);
}
}
@@ -227,3 +229,28 @@ void die(const char *error)
printf("die: %s\n", error);
exit(1);
}
+
+int ro_content_filetype(int x)
+{
+ return 0;
+}
+
+extern os_error *xosfile_save_stamped (char const *file_name,
+ bits file_type,
+ byte const *data,
+ byte const *end)
+{
+ return 0;
+}
+
+extern os_error *xosfile_set_type (char const *file_name,
+ bits file_type)
+{
+ return 0;
+}
+
+void warn_user(const char *warn)
+{
+ printf("WARNING: %s\n", warn);
+}
+
diff --git a/makefile b/makefile
index 3808a1dd3..b405efea3 100644
--- a/makefile
+++ b/makefile
@@ -10,7 +10,7 @@ OBJECTS_COMMON = cache.o content.o fetch.o fetchcache.o \
css.o css_enum.o parser.o ruleset.o scanner.o \
box.o form.o html.o layout.o textplain.o \
messages.o utils.o translit.o pool.o url.o imagemap.o \
- jpeg.o
+ jpeg.o save_complete.o
OBJECTS = $(OBJECTS_COMMON) \
browser.o loginlist.o netsurf.o options.o \
htmlinstance.o htmlredraw.o \
@@ -20,7 +20,7 @@ OBJECTS = $(OBJECTS_COMMON) \
draw.o gif.o plugin.o png.o sprite.o \
about.o filetype.o font.o uri.o url_protocol.o history.o \
version.o thumbnail.o \
- save.o save_complete.o save_draw.o save_text.o schedule.o
+ save.o save_draw.o save_text.o schedule.o
OBJECTS_DEBUG = $(OBJECTS_COMMON) \
netsurfd.o \
options.o filetyped.o fontd.o