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 72 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 77 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_parse(), GNUNET_JSON_parse_free(), and parse_timestamp_nbo().
GNUNET_JSON_Cleaner GNUNET_JSON_Specification::cleaner |
Function for how to clean up this type of entry.
Definition at line 82 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_parse_free().
void* GNUNET_JSON_Specification::cls |
Closure for parser and cleaner.
Definition at line 87 of file gnunet_json_lib.h.
Referenced by clean_variable_data(), GNUNET_JSON_parse_free(), parse_blinded_message(), parse_blinded_sig(), parse_string(), and parse_unblinded_sig().
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 93 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_parse(), GNUNET_JSON_spec_blinded_signature(), GNUNET_JSON_spec_unblinded_signature(), parse_fixed64_data(), and parse_fixed_data().
void* GNUNET_JSON_Specification::ptr |
Pointer, details specific to the parser.
Definition at line 98 of file gnunet_json_lib.h.
Referenced by clean_attr(), clean_blinded_message(), clean_blinded_sig(), clean_credential(), clean_gnsrecordobject(), clean_json(), clean_rsa_public_key(), clean_rsa_signature(), clean_ticket(), clean_unblinded_sig(), clean_variable_data(), parse_array_const(), parse_attr(), parse_blinded_message(), parse_blinded_sig(), parse_bool(), parse_boolean(), parse_credential(), parse_double(), parse_fixed64_data(), parse_fixed_data(), parse_gnsrecordobject(), parse_i64(), parse_json(), parse_object_const(), parse_rel_time(), parse_rsa_public_key(), parse_rsa_signature(), parse_string(), parse_ticket(), parse_timestamp(), parse_timestamp_nbo(), parse_u16(), parse_u32(), parse_u64(), parse_u8(), parse_unblinded_sig(), 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 104 of file gnunet_json_lib.h.
Referenced by GNUNET_JSON_parse(), and GNUNET_JSON_spec_mark_optional().
size_t* GNUNET_JSON_Specification::size_ptr |
Where should we store the final size of ptr.
Definition at line 109 of file gnunet_json_lib.h.
Referenced by clean_variable_data(), GNUNET_JSON_spec_bool(), GNUNET_JSON_spec_boolean(), GNUNET_JSON_spec_double(), GNUNET_JSON_spec_int64(), GNUNET_JSON_spec_uint16(), GNUNET_JSON_spec_uint32(), GNUNET_JSON_spec_uint64(), GNUNET_JSON_spec_uint8(), and parse_variable_data().
size_t GNUNET_JSON_Specification::ptr_size |
Number of bytes available in ptr.
Definition at line 114 of file gnunet_json_lib.h.
Referenced by parse_fixed64_data(), and parse_fixed_data().
bool GNUNET_JSON_Specification::is_optional |
Set to true if this component is optional.
Definition at line 119 of file gnunet_json_lib.h.