aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_curl_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-05-02 00:23:27 +0000
committerChristian Grothoff <christian@grothoff.org>2016-05-02 00:23:27 +0000
commit450bdaeaf612aa7717c23390239804bb28b7870f (patch)
treea0c82385507f1e0dfab9b2bb6a6318cd8c780d08 /src/include/gnunet_curl_lib.h
parent95f9076a2139f5fb042b944a0658b6cda2fa35db (diff)
downloadgnunet-450bdaeaf612aa7717c23390239804bb28b7870f.tar.gz
gnunet-450bdaeaf612aa7717c23390239804bb28b7870f.zip
API update to fix #4479
Diffstat (limited to 'src/include/gnunet_curl_lib.h')
-rw-r--r--src/include/gnunet_curl_lib.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h
index faa7abbed..c57b9ed3b 100644
--- a/src/include/gnunet_curl_lib.h
+++ b/src/include/gnunet_curl_lib.h
@@ -38,13 +38,28 @@
38 38
39 39
40/** 40/**
41 * Function called by the context to ask for the event loop to be
42 * rescheduled, that is the application should call
43 * #GNUNET_CURL_get_select_info() as the set of sockets we care about
44 * just changed.
45 *
46 * @param cls closure
47 */
48typedef void
49(*GNUNET_CURL_RescheduleCallback)(void *cls);
50
51
52/**
41 * Initialise this library. This function should be called before using any of 53 * Initialise this library. This function should be called before using any of
42 * the following functions. 54 * the following functions.
43 * 55 *
56 * @param cb function to call when rescheduling is required
57 * @param cb_cls closure for @a cb
44 * @return library context 58 * @return library context
45 */ 59 */
46struct GNUNET_CURL_Context * 60struct GNUNET_CURL_Context *
47GNUNET_CURL_init (void); 61GNUNET_CURL_init (GNUNET_CURL_RescheduleCallback cb,
62 void *cb_cls);
48 63
49 64
50/** 65/**