Go to the source code of this file.
Functions | |
enum GNUNET_GenericReturnValue | REST_config_process_request (void *plugin, struct GNUNET_REST_RequestHandle *conndata_handle, GNUNET_REST_ResultProcessor proc, void *proc_cls) |
Function processing the REST call. More... | |
void * | REST_config_init (const struct GNUNET_CONFIGURATION_Handle *cfg) |
Entry point for the plugin. More... | |
void | REST_config_done (struct GNUNET_REST_Plugin *api) |
Exit point from the plugin. More... | |
enum GNUNET_GenericReturnValue REST_config_process_request | ( | void * | plugin, |
struct GNUNET_REST_RequestHandle * | conndata_handle, | ||
GNUNET_REST_ResultProcessor | proc, | ||
void * | proc_cls | ||
) |
Function processing the REST call.
method | HTTP method |
url | URL of the HTTP request |
data | body of the HTTP request (optional) |
data_size | length of the body |
proc | callback function for the result |
proc_cls | closure for proc |
Definition at line 371 of file config_plugin.c.
References cleanup_handle(), get_cont(), GNUNET_CONTAINER_DLL_insert, GNUNET_new, GNUNET_NO, GNUNET_REST_API_NS_CONFIG, GNUNET_REST_handle_request(), GNUNET_REST_HANDLER_END, GNUNET_strdup, GNUNET_YES, handle, handlers, options_cont(), plugin, GNUNET_REST_RequestHandler::proc, requests_head, requests_tail, set_cont(), and GNUNET_REST_RequestHandle::url.
Referenced by run().
void * REST_config_init | ( | const struct GNUNET_CONFIGURATION_Handle * | c | ) |
Entry point for the plugin.
cls | the "struct GNUNET_NAMESTORE_PluginEnvironment*" |
Definition at line 426 of file config_plugin.c.
References _, GNUNET_REST_Plugin::cls, config_cfg, GNUNET_ERROR_TYPE_INFO, GNUNET_log, GNUNET_new, GNUNET_REST_API_NS_CONFIG, GNUNET_REST_Plugin::name, and plugin.
Referenced by run().
void REST_config_done | ( | struct GNUNET_REST_Plugin * | api | ) |
Exit point from the plugin.
cls | the plugin context (as returned by "init") |
Definition at line 406 of file config_plugin.c.
References Plugin::api, cleanup_handle(), GNUNET_BLOCK_PluginFunctions::cls, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_log, plugin, and requests_head.
Referenced by do_shutdown().