diff options
author | James Bursa <james@netsurf-browser.org> | 2004-06-27 23:24:11 +0000 |
---|---|---|
committer | James Bursa <james@netsurf-browser.org> | 2004-06-27 23:24:11 +0000 |
commit | a1d73ecd110f6cc252f6146672802f87cc45723d (patch) | |
tree | b7cf1aaa3ca066b9d4281fed890e82c470733fc2 /content/fetch.c | |
parent | 79a10e41a4be1a718df36e54036cd1666f967fef (diff) | |
download | netsurf-a1d73ecd110f6cc252f6146672802f87cc45723d.tar.gz netsurf-a1d73ecd110f6cc252f6146672802f87cc45723d.tar.bz2 |
[project @ 2004-06-27 23:24:11 by bursa]
Rewritten download window. Now downloads direct to file. New download window gui.
svn path=/import/netsurf/; revision=1020
Diffstat (limited to 'content/fetch.c')
-rw-r--r-- | content/fetch.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/content/fetch.c b/content/fetch.c index 5e27add95..184d78bcb 100644 --- a/content/fetch.c +++ b/content/fetch.c @@ -825,6 +825,21 @@ bool fetch_can_fetch(const char *url) /** + * Change the callback function for a fetch. + */ + +void fetch_change_callback(struct fetch *fetch, + void (*callback)(fetch_msg msg, void *p, const char *data, + unsigned long size), + void *p) +{ + assert(fetch); + fetch->callback = callback; + fetch->p = p; +} + + +/** * testing framework */ |