aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_curl_lib.h
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-10-17 20:02:35 +0200
committerMarcello Stanisci <stanisci.m@gmail.com>2018-10-17 20:02:35 +0200
commit418bf5953acdba2e325528d739fb115b51b7141f (patch)
tree7fea556ead0f84b870b382bec1577a76f15b9d00 /src/include/gnunet_curl_lib.h
parent25b9d3dfa6fb538627e6cd8ed4b5741e18b752d9 (diff)
downloadgnunet-418bf5953acdba2e325528d739fb115b51b7141f.tar.gz
gnunet-418bf5953acdba2e325528d739fb115b51b7141f.zip
curl: reschedule uses GNUNET_CURL_perform2.
Diffstat (limited to 'src/include/gnunet_curl_lib.h')
-rw-r--r--src/include/gnunet_curl_lib.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h
index 9bf798bca..0bad7e6c7 100644
--- a/src/include/gnunet_curl_lib.h
+++ b/src/include/gnunet_curl_lib.h
@@ -203,7 +203,7 @@ struct GNUNET_CURL_Job;
203typedef void 203typedef void
204(*GNUNET_CURL_JobCompletionCallback)(void *cls, 204(*GNUNET_CURL_JobCompletionCallback)(void *cls,
205 long response_code, 205 long response_code,
206 const json_t *json); 206 const void *response);
207 207
208 208
209/** 209/**
@@ -259,6 +259,18 @@ struct GNUNET_CURL_RescheduleContext *
259GNUNET_CURL_gnunet_rc_create (struct GNUNET_CURL_Context *ctx); 259GNUNET_CURL_gnunet_rc_create (struct GNUNET_CURL_Context *ctx);
260 260
261/** 261/**
262 * Initialize reschedule context; with custom response parser
263 *
264 * @param ctx context to manage
265 * @return closure for #GNUNET_CURL_gnunet_scheduler_reschedule().
266 */
267struct GNUNET_CURL_RescheduleContext *
268GNUNET_CURL_gnunet_rc_create_with_parser (struct GNUNET_CURL_Context *ctx,
269 GNUNET_CURL_RawParser rp,
270 GNUNET_CURL_ResponseCleaner rc);
271
272
273/**
262 * Destroy reschedule context. 274 * Destroy reschedule context.
263 * 275 *
264 * @param rc context to destroy 276 * @param rc context to destroy