diff options
Diffstat (limited to 'src/include/gnunet_rest_plugin.h')
-rw-r--r-- | src/include/gnunet_rest_plugin.h | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/include/gnunet_rest_plugin.h b/src/include/gnunet_rest_plugin.h index e085ccf32..e1eabd813 100644 --- a/src/include/gnunet_rest_plugin.h +++ b/src/include/gnunet_rest_plugin.h | |||
@@ -27,6 +27,7 @@ | |||
27 | #define GNUNET_REST_PLUGIN_H | 27 | #define GNUNET_REST_PLUGIN_H |
28 | 28 | ||
29 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
30 | #include "gnunet_rest_lib.h" | ||
30 | #include "microhttpd.h" | 31 | #include "microhttpd.h" |
31 | 32 | ||
32 | #ifdef __cplusplus | 33 | #ifdef __cplusplus |
@@ -39,27 +40,6 @@ extern "C" | |||
39 | 40 | ||
40 | 41 | ||
41 | /** | 42 | /** |
42 | * Iterator called on obtained result for a REST result. | ||
43 | * | ||
44 | * @param cls closure | ||
45 | * @param resp the response | ||
46 | * @param status status code (HTTP) | ||
47 | */ | ||
48 | typedef void (*GNUNET_REST_ResultProcessor) (void *cls, | ||
49 | struct MHD_Response *resp, | ||
50 | int status); | ||
51 | |||
52 | struct RestConnectionDataHandle | ||
53 | { | ||
54 | struct GNUNET_CONTAINER_MultiHashMap *url_param_map; | ||
55 | const char *method; | ||
56 | const char *url; | ||
57 | const char *data; | ||
58 | size_t data_size; | ||
59 | |||
60 | }; | ||
61 | |||
62 | /** | ||
63 | * @brief struct returned by the initialization function of the plugin | 43 | * @brief struct returned by the initialization function of the plugin |
64 | */ | 44 | */ |
65 | struct GNUNET_REST_Plugin | 45 | struct GNUNET_REST_Plugin |