![]() |
GNUnet
0.11.x
|
Entry in parser specification for GNUNET_JSON_parse(). More...
#include <gnunet_json_lib.h>
Data Fields | |
GNUNET_JSON_Parser | parser |
Function for how to parse this type of entry. More... | |
GNUNET_JSON_Cleaner | cleaner |
Function for how to clean up this type of entry. More... | |
void * | cls |
Closure for parser and cleaner. More... | |
const char * | field |
Name of the field to parse, use NULL to get the JSON of the main object instead of the JSON of an individual field. More... | |
void * | ptr |
Pointer, details specific to the parser. More... | |
bool * | missing |
Pointer to set to true if this argument is indeed missing. More... | |
size_t * | size_ptr |
Where should we store the final size of ptr. More... | |
size_t | ptr_size |
Number of bytes available in ptr. More... | |
bool | is_optional |
Set to true if this component is optional. More... | |
Entry in parser specification for GNUNET_JSON_parse().
Definition at line 71 of file gnunet_json_lib.h.
GNUNET_JSON_Parser GNUNET_JSON_Specification::parser |
Function for how to parse this type of entry.
Definition at line 76 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_getopt(), and GNUNET_JSON_parse().
GNUNET_JSON_Cleaner GNUNET_JSON_Specification::cleaner |
Function for how to clean up this type of entry.
Definition at line 81 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_getopt().
void* GNUNET_JSON_Specification::cls |
Closure for parser and cleaner.
Definition at line 86 of file gnunet_json_lib.h.
Referenced by clean_variable_data(), GNUNET_JSON_getopt(), and GNUNET_JSON_spec_string().
const char* GNUNET_JSON_Specification::field |
Name of the field to parse, use NULL to get the JSON of the main object instead of the JSON of an individual field.
Definition at line 92 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_parse().
void* GNUNET_JSON_Specification::ptr |
Pointer, details specific to the parser.
Definition at line 97 of file gnunet_json_lib.h.
Referenced by clean_attr(), clean_credential(), clean_gnsrecordobject(), clean_object(), clean_rsa_public_key(), clean_rsa_signature(), clean_ticket(), clean_variable_data(), GNUNET_JSON_spec_bool(), GNUNET_JSON_spec_int64(), GNUNET_JSON_spec_string(), GNUNET_JSON_spec_uint16(), GNUNET_JSON_spec_uint32(), GNUNET_JSON_spec_uint64(), GNUNET_JSON_spec_uint8(), parse_attr(), parse_credential(), parse_gnsrecordobject(), parse_object(), parse_ticket(), and parse_variable_data().
bool* GNUNET_JSON_Specification::missing |
Pointer to set to true if this argument is indeed missing.
Can be NULL.
Definition at line 103 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_parse().
size_t* GNUNET_JSON_Specification::size_ptr |
Where should we store the final size of ptr.
Definition at line 108 of file gnunet_json_lib.h.
Referenced by clean_variable_data(), and parse_variable_data().
size_t GNUNET_JSON_Specification::ptr_size |
Number of bytes available in ptr.
Definition at line 113 of file gnunet_json_lib.h.
bool GNUNET_JSON_Specification::is_optional |
Set to true if this component is optional.
Definition at line 118 of file gnunet_json_lib.h.