#define DI_PARSER_FIELDINFO | ( | name, | |||
read, | |||||
write, | |||||
integer | ) | { { name, sizeof (name) - 1 }, read, write, integer } |
generates a di_parser_fieldinfo
typedef void di_parser_fields_function_read(void **data, const di_parser_fieldinfo *fip, di_rstring *field_modifier, di_rstring *value, void *user_data) |
Read a single field
data | the actual data | |
fip | info of the actual field | |
value | the actual value | |
value_size | size of the actual value | |
user_data | data supplied to the parser |
typedef void di_parser_fields_function_write(void **data, const di_parser_fieldinfo *fip, di_parser_fields_function_write_callback callback, void *callback_data, void *user_data) |
Write a single field
data | the actual data | |
fip | info of the actual field | |
output | static buffer for output | |
user_data | data supplied to the parser |
typedef void di_parser_fields_function_write_callback(const di_rstring *field, const di_rstring *value, void *data) |
Write a single field - callback
field | the field | |
value | the value of the field | |
data | the callback_data |
typedef int di_parser_read_entry_finish(void *data, void *user_data) |
data | the actual data | |
user_data | data supplied to di_parse |
typedef void* di_parser_read_entry_new(void *user_data) |
user_data | data supplied to di_parse |
typedef void* di_parser_write_entry_next(void **state_data, void *user_data) |
data | the actual data | |
user_data | data supplied to di_parse |
Read function for a boolean (true == "Yes")
Read function for an int
Read function for a di_rstring
Read function for a string
Write function for a boolean ("Yes" == true)
Write function for an int
Write function for a di_string
Write function for a string