diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-03-15 22:06:28 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-03-15 22:06:28 +0100 |
commit | 7de26292b744122b20e9cd6ecea95a2273311587 (patch) | |
tree | 5df302bac6761c8645e18948870ded04a05862ea /src/include/gnunet_curl_lib.h | |
parent | eb903e5bfc4b979967cfe27c98a994264befb155 (diff) | |
download | gnunet-7de26292b744122b20e9cd6ecea95a2273311587.tar.gz gnunet-7de26292b744122b20e9cd6ecea95a2273311587.zip |
add function that logically belongs to libgnunetcurl instead of in multiple Taler binaries
Diffstat (limited to 'src/include/gnunet_curl_lib.h')
-rw-r--r-- | src/include/gnunet_curl_lib.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/include/gnunet_curl_lib.h b/src/include/gnunet_curl_lib.h index 8e981e91e..875cfa3bd 100644 --- a/src/include/gnunet_curl_lib.h +++ b/src/include/gnunet_curl_lib.h | |||
@@ -360,8 +360,21 @@ GNUNET_CURL_gnunet_scheduler_reschedule (void *cls); | |||
360 | * @param header_name name of the header to send. | 360 | * @param header_name name of the header to send. |
361 | */ | 361 | */ |
362 | void | 362 | void |
363 | GNUNET_CURL_enable_async_scope_header (struct GNUNET_CURL_Context *ctx, const | 363 | GNUNET_CURL_enable_async_scope_header (struct GNUNET_CURL_Context *ctx, |
364 | char *header_name); | 364 | const char *header_name); |
365 | |||
366 | |||
367 | /** | ||
368 | * Return #GNUNET_YES if given a valid scope ID and | ||
369 | * #GNUNET_NO otherwise. See | ||
370 | * #GNUNET_CURL_enable_async_scope_header() for the | ||
371 | * code that generates such a @a scope_id in an HTTP | ||
372 | * header. | ||
373 | * | ||
374 | * @returns #GNUNET_YES iff given a valid scope ID | ||
375 | */ | ||
376 | int | ||
377 | GNUNET_CURL_is_valid_scope_id (const char *scope_id); | ||
365 | 378 | ||
366 | 379 | ||
367 | #endif | 380 | #endif |