37#ifndef GNUNET_GNSRECORD_PLUGIN_H
38#define GNUNET_GNSRECORD_PLUGIN_H
60(*GNUNET_GNSRECORD_ValueToStringFunction) (
void *cls,
96 const char *dns_typename);
108(*GNUNET_GNSRECORD_NumberToTypenameFunction) (
void *cls,
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.
int(* GNUNET_GNSRECORD_StringToValueFunction)(void *cls, uint32_t type, const char *s, void **data, size_t *data_size)
Function called to convert human-readable version of the value s of a record of type type to the resp...
const char *(* GNUNET_GNSRECORD_NumberToTypenameFunction)(void *cls, uint32_t type)
Function called to convert a type number to the corresponding type string (e.g.
uint32_t(* GNUNET_GNSRECORD_TypenameToNumberFunction)(void *cls, const char *dns_typename)
Function called to convert a type name (e.g.
enum GNUNET_GenericReturnValue(* GNUNET_GNSRECORD_IsCriticalFunction)(void *cls, uint32_t type)
Function called to check for critical records.
char *(* GNUNET_GNSRECORD_ValueToStringFunction)(void *cls, uint32_t type, const void *data, size_t data_size)
Function called to convert the binary value data of a record of type type to a human-readable string.
GNUNET_GenericReturnValue
Named constants for return values.
Each plugin is required to return a pointer to a struct of this type as the return value from its ent...
GNUNET_GNSRECORD_IsCriticalFunction is_critical
Is critical.
GNUNET_GNSRECORD_TypenameToNumberFunction typename_to_number
Typename to number.
GNUNET_GNSRECORD_NumberToTypenameFunction number_to_typename
Number to typename.
GNUNET_GNSRECORD_ValueToStringFunction value_to_string
Conversion to string.
void * cls
Closure for all of the callbacks.
GNUNET_GNSRECORD_StringToValueFunction string_to_value
Conversion to binary.