Description of a DB result cell. More...
#include <gnunet_sq_lib.h>
Data Fields | |
GNUNET_SQ_ResultConverter | conv |
What is the format of the result? More... | |
GNUNET_SQ_ResultCleanup | cleaner |
Function to clean up result data, NULL if cleanup is not necessary. More... | |
void * | cls |
Closure for conv and cleaner. More... | |
void * | dst |
Destination for the data. More... | |
size_t | dst_size |
Allowed size for the data, 0 for variable-size (in this case, the type of dst is a void ** and we need to allocate a buffer of the right size). More... | |
size_t * | result_size |
Where to store actual size of the result. More... | |
unsigned int | num_params |
Number of parameters (columns) eaten by this operation. More... | |
Description of a DB result cell.
Definition at line 253 of file gnunet_sq_lib.h.
GNUNET_SQ_ResultConverter GNUNET_SQ_ResultSpec::conv |
What is the format of the result?
Definition at line 258 of file gnunet_sq_lib.h.
Referenced by GNUNET_SQ_cleanup_result(), GNUNET_SQ_extract_result(), GNUNET_SQ_result_spec_absolute_time(), GNUNET_SQ_result_spec_absolute_time_nbo(), GNUNET_SQ_result_spec_fixed_size(), GNUNET_SQ_result_spec_rsa_public_key(), GNUNET_SQ_result_spec_rsa_signature(), GNUNET_SQ_result_spec_string(), GNUNET_SQ_result_spec_uint16(), GNUNET_SQ_result_spec_uint32(), GNUNET_SQ_result_spec_uint64(), and GNUNET_SQ_result_spec_variable_size().
GNUNET_SQ_ResultCleanup GNUNET_SQ_ResultSpec::cleaner |
Function to clean up result data, NULL if cleanup is not necessary.
Definition at line 264 of file gnunet_sq_lib.h.
Referenced by GNUNET_SQ_cleanup_result(), and GNUNET_SQ_extract_result().
void* GNUNET_SQ_ResultSpec::cls |
Closure for conv and cleaner.
Definition at line 269 of file gnunet_sq_lib.h.
Referenced by clean_utf8_string().
void* GNUNET_SQ_ResultSpec::dst |
Destination for the data.
Definition at line 274 of file gnunet_sq_lib.h.
Referenced by extract_fixed_blob(), extract_uint32(), extract_uint64(), extract_utf8_string(), GNUNET_SQ_result_spec_fixed_size(), GNUNET_SQ_result_spec_string(), and GNUNET_SQ_result_spec_variable_size().
size_t GNUNET_SQ_ResultSpec::dst_size |
Allowed size for the data, 0 for variable-size (in this case, the type of dst is a void **
and we need to allocate a buffer of the right size).
Definition at line 281 of file gnunet_sq_lib.h.
Referenced by extract_fixed_blob(), extract_uint32(), extract_uint64(), extract_utf8_string(), GNUNET_SQ_extract_result(), and GNUNET_SQ_result_spec_fixed_size().
size_t* GNUNET_SQ_ResultSpec::result_size |
Where to store actual size of the result.
If left at NULL, will be made to point to dst_size before conv is called.
Definition at line 288 of file gnunet_sq_lib.h.
Referenced by GNUNET_SQ_extract_result().
unsigned int GNUNET_SQ_ResultSpec::num_params |
Number of parameters (columns) eaten by this operation.
Definition at line 293 of file gnunet_sq_lib.h.
Referenced by GNUNET_SQ_extract_result(), GNUNET_SQ_result_spec_uint16(), GNUNET_SQ_result_spec_uint32(), and GNUNET_SQ_result_spec_uint64().