GNUnet  0.11.x
Data Fields
GNUNET_JSON_Specification Struct Reference

Entry in parser specification for GNUNET_JSON_parse(). More...

#include <gnunet_json_lib.h>

Collaboration diagram for GNUNET_JSON_Specification:
[legend]

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...
 
size_t ptr_size
 Number of bytes available in ptr. More...
 
size_t * size_ptr
 Where should we store the final size of ptr. More...
 
int is_optional
 Set to GNUNET_YES if this component is optional. More...
 

Detailed Description

Entry in parser specification for GNUNET_JSON_parse().

Definition at line 70 of file gnunet_json_lib.h.

Field Documentation

◆ parser

GNUNET_JSON_Parser GNUNET_JSON_Specification::parser

◆ cleaner

GNUNET_JSON_Cleaner GNUNET_JSON_Specification::cleaner

Function for how to clean up this type of entry.

Definition at line 80 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_parse_free().

◆ cls

void* GNUNET_JSON_Specification::cls

Closure for parser and cleaner.

Definition at line 85 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_parse_free().

◆ field

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 91 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_parse().

◆ ptr

void* GNUNET_JSON_Specification::ptr

◆ ptr_size

size_t GNUNET_JSON_Specification::ptr_size

Number of bytes available in ptr.

Definition at line 101 of file gnunet_json_lib.h.

Referenced by parse_fixed_data().

◆ size_ptr

size_t* GNUNET_JSON_Specification::size_ptr

◆ is_optional

int GNUNET_JSON_Specification::is_optional

Set to GNUNET_YES if this component is optional.

Definition at line 111 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_spec_mark_optional().


The documentation for this struct was generated from the following file: