103 { NULL, UINT32_MAX } };
static char * data
The data to insert into the dht.
static uint32_t type
Type string converted to DNS type value.
static size_t data_size
Number of bytes in data.
Plugin API for reclaim attribute types.
#define GNUNET_strdup(a)
Wrapper around GNUNET_xstrdup_.
#define GNUNET_strndup(a, length)
Wrapper around GNUNET_xstrndup_.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
#define GNUNET_free(ptr)
Wrapper around free.
@ GNUNET_RECLAIM_ATTRIBUTE_TYPE_STRING
String attribute.
static int basic_string_to_value(void *cls, uint32_t type, const char *s, void **data, size_t *data_size)
Convert human-readable version of a 'value' of an attribute to the binary representation.
static char * basic_value_to_string(void *cls, uint32_t type, const void *data, size_t data_size)
Convert the 'value' of an attribute to a string.
void * libgnunet_plugin_reclaim_attribute_basic_init(void *cls)
Entry point for the plugin.
static uint32_t basic_typename_to_number(void *cls, const char *basic_typename)
Convert a type name to the corresponding number.
void * libgnunet_plugin_reclaim_attribute_basic_done(void *cls)
Exit point from the plugin.
static const char * basic_number_to_typename(void *cls, uint32_t type)
Convert a type number to the corresponding type string (e.g.
static struct @41 basic_name_map[]
Mapping of attribute type numbers to human-readable attribute type names.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
GNUNET_RECLAIM_AttributeValueToStringFunction value_to_string
Conversion to string.
GNUNET_RECLAIM_AttributeTypenameToNumberFunction typename_to_number
Typename to number.
void * cls
Closure for all of the callbacks.
GNUNET_RECLAIM_AttributeStringToValueFunction string_to_value
Conversion to binary.
GNUNET_RECLAIM_AttributeNumberToTypenameFunction number_to_typename
Number to typename.