To be implemented by applications defining new record types. More...
Data Structures | |
struct | GNUNET_GNSRECORD_PluginFunctions |
Each plugin is required to return a pointer to a struct of this type as the return value from its entry point. More... | |
Typedefs | |
typedef 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. More... | |
typedef 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 respective binary representation. More... | |
typedef uint32_t(* | GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, const char *dns_typename) |
Function called to convert a type name (e.g. More... | |
typedef const char *(* | GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, uint32_t type) |
Function called to convert a type number to the corresponding type string (e.g. More... | |
typedef enum GNUNET_GenericReturnValue(* | GNUNET_GNSRECORD_IsCriticalFunction) (void *cls, uint32_t type) |
Function called to check for critical records. More... | |
To be implemented by applications defining new record types.
typedef 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.
cls | closure |
type | type of the record |
data | value in binary encoding |
data_size | number of bytes in data |
Definition at line 59 of file gnunet_gnsrecord_plugin.h.
typedef 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 respective binary representation.
cls | closure |
type | type of the record |
s | human-readable string |
data | set to value in binary encoding (will be allocated) |
data_size | set to number of bytes in data |
Definition at line 78 of file gnunet_gnsrecord_plugin.h.
typedef uint32_t(* GNUNET_GNSRECORD_TypenameToNumberFunction) (void *cls, const char *dns_typename) |
Function called to convert a type name (e.g.
"AAAA") to the corresponding number.
cls | closure |
dns_typename | name to convert |
Definition at line 94 of file gnunet_gnsrecord_plugin.h.
typedef const char *(* GNUNET_GNSRECORD_NumberToTypenameFunction) (void *cls, uint32_t type) |
Function called to convert a type number to the corresponding type string (e.g.
1 to "A")
cls | closure |
type | number of a type to convert |
Definition at line 107 of file gnunet_gnsrecord_plugin.h.
typedef enum GNUNET_GenericReturnValue(* GNUNET_GNSRECORD_IsCriticalFunction) (void *cls, uint32_t type) |
Function called to check for critical records.
cls | closure |
type | number of a type to check |
Definition at line 107 of file gnunet_gnsrecord_plugin.h.