GNUnet  0.11.x
Data Fields
GNUNET_REST_Plugin Struct Reference

struct returned by the initialization function of the plugin More...

#include <gnunet_rest_plugin.h>

Data Fields

void * cls
 The closure of the plugin. More...
char * name
 Plugin name. More...
enum GNUNET_GenericReturnValue(* process_request )(struct GNUNET_REST_RequestHandle *handle, GNUNET_REST_ResultProcessor proc, void *proc_cls)
 Function to process a REST call. More...

Detailed Description

struct returned by the initialization function of the plugin

Definition at line 48 of file gnunet_rest_plugin.h.

Field Documentation

◆ cls

void* GNUNET_REST_Plugin::cls

◆ name

char* GNUNET_REST_Plugin::name

◆ process_request

enum GNUNET_GenericReturnValue(* GNUNET_REST_Plugin::process_request) (struct GNUNET_REST_RequestHandle *handle, GNUNET_REST_ResultProcessor proc, void *proc_cls)

Function to process a REST call.

methodthe HTTP method called
urlthe relative url accessed
datathe REST data (can be NULL)
data_sizethe length of the data
procthe callback for result
proc_clsclosure for callback
GNUNET_YES if the request was processed

Definition at line 74 of file gnunet_rest_plugin.h.

Referenced by create_response(), libgnunet_plugin_rest_config_init(), libgnunet_plugin_rest_copying_init(), libgnunet_plugin_rest_gns_init(), libgnunet_plugin_rest_identity_init(), libgnunet_plugin_rest_namestore_init(), libgnunet_plugin_rest_openid_connect_init(), libgnunet_plugin_rest_peerinfo_init(), and libgnunet_plugin_rest_reclaim_init().

The documentation for this struct was generated from the following file: