#include "gnunet_rest_plugin.h"Go to the source code of this file.
Functions | |
| enum GNUNET_GenericReturnValue | REST_identity_process_request (void *plugin, struct GNUNET_REST_RequestHandle *conndata_handle, GNUNET_REST_ResultProcessor proc, void *proc_cls) |
| Function processing the REST call. | |
| void * | REST_identity_init (const struct GNUNET_CONFIGURATION_Handle *c) |
| Entry point for the plugin. | |
| void | REST_identity_done (struct GNUNET_REST_Plugin *api) |
| Exit point from the plugin. | |
| enum GNUNET_GenericReturnValue REST_identity_process_request | ( | void * | plugin, |
| struct GNUNET_REST_RequestHandle * | rest_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 |
| 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 callback function |
Definition at line 1186 of file identity_plugin.c.
References cleanup_handle(), GNUNET_REST_RequestHandle::data, GNUNET_REST_RequestHandle::data_size, do_error(), ego_create(), ego_delete_name(), ego_delete_pubkey(), ego_edit_name(), ego_edit_pubkey(), ego_get_all(), ego_get_name(), ego_get_pubkey(), ego_sign_data(), GNUNET_CONTAINER_DLL_insert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_log, GNUNET_new, GNUNET_NO, GNUNET_REST_API_NS_IDENTITY, GNUNET_REST_API_NS_IDENTITY_NAME, GNUNET_REST_API_NS_IDENTITY_PUBKEY, GNUNET_REST_API_NS_SIGN, GNUNET_REST_handle_request(), GNUNET_REST_HANDLER_END, GNUNET_SCHEDULER_add_delayed(), GNUNET_strdup, GNUNET_TIME_UNIT_FOREVER_REL, GNUNET_YES, handle, handlers, options_cont(), GNUNET_REST_RequestHandler::proc, requests_head, requests_tail, and GNUNET_REST_RequestHandle::url.
Referenced by run().
| void * REST_identity_init | ( | const struct GNUNET_CONFIGURATION_Handle * | c | ) |
Entry point for the plugin.
| cls | the "struct GNUNET_NAMESTORE_PluginEnvironment*" |
| cls | Config info |
Definition at line 1249 of file identity_plugin.c.
References _, allow_methods, GNUNET_REST_Plugin::cls, GNUNET_asprintf(), GNUNET_ERROR_TYPE_DEBUG, GNUNET_IDENTITY_connect(), GNUNET_log, GNUNET_new, GNUNET_REST_API_NS_IDENTITY, id_cfg, ID_REST_STATE_INIT, identity_handle, list_ego(), GNUNET_REST_Plugin::name, plugin, and state.
Referenced by run().
| void REST_identity_done | ( | struct GNUNET_REST_Plugin * | api | ) |
Exit point from the plugin.
| cls | the plugin context (as returned by "init") |
Definition at line 1284 of file identity_plugin.c.
References allow_methods, Plugin::api, cleanup_handle(), GNUNET_BLOCK_PluginFunctions::cls, ego_head, GNUNET_ERROR_TYPE_DEBUG, GNUNET_free, GNUNET_IDENTITY_disconnect(), GNUNET_log, EgoEntry::identifier, identity_handle, EgoEntry::keystring, EgoEntry::next, plugin, and requests_head.
Referenced by do_shutdown().