diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-05-02 00:23:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-05-02 00:23:27 +0000 |
commit | 450bdaeaf612aa7717c23390239804bb28b7870f (patch) | |
tree | a0c82385507f1e0dfab9b2bb6a6318cd8c780d08 /src/include/gnunet_curl_lib.h | |
parent | 95f9076a2139f5fb042b944a0658b6cda2fa35db (diff) | |
download | gnunet-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.h | 17 |
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 | */ | ||
48 | typedef 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 | */ |
46 | struct GNUNET_CURL_Context * | 60 | struct GNUNET_CURL_Context * |
47 | GNUNET_CURL_init (void); | 61 | GNUNET_CURL_init (GNUNET_CURL_RescheduleCallback cb, |
62 | void *cb_cls); | ||
48 | 63 | ||
49 | 64 | ||
50 | /** | 65 | /** |