summaryrefslogtreecommitdiff
path: root/content/fetch.c
diff options
context:
space:
mode:
Diffstat (limited to 'content/fetch.c')
-rw-r--r--content/fetch.c15
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
*/