Description of a DB result cell. More...
#include <gnunet_pq_lib.h>
Data Fields | |
GNUNET_PQ_ResultConverter | conv |
What is the format of the result? More... | |
GNUNET_PQ_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... | |
const char * | fname |
Field name of the desired result. More... | |
size_t * | result_size |
Where to store actual size of the result. More... | |
bool | is_nullable |
True if NULL is allowed for a value in the database. More... | |
bool * | is_null |
Points to a location where we should store "true" if the result found is NULL, and otherwise "false". More... | |
Description of a DB result cell.
Definition at line 699 of file gnunet_pq_lib.h.
GNUNET_PQ_ResultConverter GNUNET_PQ_ResultSpec::conv |
What is the format of the result?
Definition at line 704 of file gnunet_pq_lib.h.
Referenced by GNUNET_PQ_cleanup_result(), and GNUNET_PQ_extract_result().
GNUNET_PQ_ResultCleanup GNUNET_PQ_ResultSpec::cleaner |
Function to clean up result data, NULL if cleanup is not necessary.
Definition at line 709 of file gnunet_pq_lib.h.
Referenced by GNUNET_PQ_cleanup_result(), and GNUNET_PQ_extract_result().
void* GNUNET_PQ_ResultSpec::cls |
Closure for conv and cleaner.
Definition at line 714 of file gnunet_pq_lib.h.
Referenced by clean_string(), clean_varsize_blob(), extract_bool(), extract_fixed_blob(), extract_int64(), extract_string(), extract_uint16(), extract_uint32(), extract_uint64(), extract_varsize_blob(), GNUNET_PQ_extract_result(), GNUNET_PQ_result_spec_array_abs_time(), GNUNET_PQ_result_spec_array_bool(), GNUNET_PQ_result_spec_array_fixed_size(), GNUNET_PQ_result_spec_array_rel_time(), GNUNET_PQ_result_spec_array_string(), GNUNET_PQ_result_spec_array_timestamp(), GNUNET_PQ_result_spec_array_uint16(), GNUNET_PQ_result_spec_array_uint32(), GNUNET_PQ_result_spec_array_uint64(), and GNUNET_PQ_result_spec_array_variable_size().
void* GNUNET_PQ_ResultSpec::dst |
Destination for the data.
Definition at line 719 of file gnunet_pq_lib.h.
Referenced by clean_varsize_blob(), extract_bool(), extract_fixed_blob(), extract_int64(), extract_string(), extract_uint16(), extract_uint32(), extract_uint64(), extract_varsize_blob(), GNUNET_PQ_extract_result(), GNUNET_PQ_result_spec_array_abs_time(), GNUNET_PQ_result_spec_array_bool(), GNUNET_PQ_result_spec_array_fixed_size(), GNUNET_PQ_result_spec_array_rel_time(), GNUNET_PQ_result_spec_array_string(), GNUNET_PQ_result_spec_array_timestamp(), GNUNET_PQ_result_spec_array_uint16(), GNUNET_PQ_result_spec_array_uint32(), GNUNET_PQ_result_spec_array_uint64(), GNUNET_PQ_result_spec_array_variable_size(), GNUNET_PQ_result_spec_bool(), GNUNET_PQ_result_spec_fixed_size(), GNUNET_PQ_result_spec_string(), and GNUNET_PQ_result_spec_variable_size().
size_t GNUNET_PQ_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 726 of file gnunet_pq_lib.h.
Referenced by extract_fixed_blob(), extract_int64(), extract_uint16(), extract_uint32(), extract_uint64(), extract_varsize_blob(), GNUNET_PQ_extract_result(), GNUNET_PQ_result_spec_absolute_time(), GNUNET_PQ_result_spec_fixed_size(), GNUNET_PQ_result_spec_int64(), GNUNET_PQ_result_spec_relative_time(), GNUNET_PQ_result_spec_timestamp(), GNUNET_PQ_result_spec_timestamp_nbo(), GNUNET_PQ_result_spec_uint16(), GNUNET_PQ_result_spec_uint32(), and GNUNET_PQ_result_spec_uint64().
const char* GNUNET_PQ_ResultSpec::fname |
Field name of the desired result.
Definition at line 731 of file gnunet_pq_lib.h.
Referenced by extract_bool(), extract_fixed_blob(), extract_int64(), extract_string(), extract_uint16(), extract_uint32(), extract_uint64(), extract_varsize_blob(), GNUNET_PQ_extract_result(), GNUNET_PQ_result_spec_array_abs_time(), GNUNET_PQ_result_spec_array_bool(), GNUNET_PQ_result_spec_array_fixed_size(), GNUNET_PQ_result_spec_array_rel_time(), GNUNET_PQ_result_spec_array_string(), GNUNET_PQ_result_spec_array_timestamp(), GNUNET_PQ_result_spec_array_uint16(), GNUNET_PQ_result_spec_array_uint32(), GNUNET_PQ_result_spec_array_uint64(), GNUNET_PQ_result_spec_array_variable_size(), GNUNET_PQ_result_spec_blind_sign_priv(), GNUNET_PQ_result_spec_blind_sign_pub(), GNUNET_PQ_result_spec_bool(), GNUNET_PQ_result_spec_fixed_size(), GNUNET_PQ_result_spec_rsa_public_key(), GNUNET_PQ_result_spec_rsa_signature(), and GNUNET_PQ_result_spec_string().
size_t* GNUNET_PQ_ResultSpec::result_size |
Where to store actual size of the result.
Definition at line 736 of file gnunet_pq_lib.h.
Referenced by GNUNET_PQ_extract_result().
bool GNUNET_PQ_ResultSpec::is_nullable |
True if NULL is allowed for a value in the database.
Definition at line 741 of file gnunet_pq_lib.h.
Referenced by GNUNET_PQ_extract_result(), and GNUNET_PQ_result_spec_allow_null().
bool* GNUNET_PQ_ResultSpec::is_null |
Points to a location where we should store "true" if the result found is NULL, and otherwise "false".
Only used if is_nullable is true.
Definition at line 747 of file gnunet_pq_lib.h.
Referenced by GNUNET_PQ_extract_result(), and GNUNET_PQ_result_spec_allow_null().