Information we pass to GNUNET_MY_extract_result() to initialize the arguments of the prepared statement. More...
#include <gnunet_my_lib.h>
Data Fields | |
GNUNET_MY_ResultConverter | pre_conv |
Function to call to initialize the MYSQL_BIND array. More... | |
GNUNET_MY_ResultConverter | post_conv |
Function to call for converting the result. More... | |
GNUNET_MY_ResultCleanup | cleaner |
Function to call for cleaning up the result. More... | |
void * | conv_cls |
Closure for conv. 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_fields |
How many fields does this result specification occupy in the result returned by MySQL. More... | |
unsigned long | mysql_bind_output_length |
Location where we temporarily store the output buffer length from MySQL. More... | |
MYSQL_BOOL | is_null |
Memory for MySQL to notify us about NULL values. More... | |
Information we pass to GNUNET_MY_extract_result() to initialize the arguments of the prepared statement.
Definition at line 203 of file gnunet_my_lib.h.
GNUNET_MY_ResultConverter GNUNET_MY_ResultSpec::pre_conv |
Function to call to initialize the MYSQL_BIND array.
Definition at line 208 of file gnunet_my_lib.h.
Referenced by GNUNET_MY_extract_result().
GNUNET_MY_ResultConverter GNUNET_MY_ResultSpec::post_conv |
Function to call for converting the result.
Can be NULL.
Definition at line 213 of file gnunet_my_lib.h.
Referenced by GNUNET_MY_cleanup_result(), and GNUNET_MY_extract_result().
GNUNET_MY_ResultCleanup GNUNET_MY_ResultSpec::cleaner |
Function to call for cleaning up the result.
Can be NULL.
Definition at line 218 of file gnunet_my_lib.h.
Referenced by GNUNET_MY_cleanup_result(), and GNUNET_MY_extract_result().
void* GNUNET_MY_ResultSpec::conv_cls |
Closure for conv.
Definition at line 223 of file gnunet_my_lib.h.
Referenced by GNUNET_MY_cleanup_result(), and GNUNET_MY_extract_result().
void* GNUNET_MY_ResultSpec::dst |
Destination for the data.
Definition at line 228 of file gnunet_my_lib.h.
Referenced by clean_rsa_public_key(), clean_rsa_signature(), cleanup_varsize_blob(), GNUNET_MY_extract_result(), GNUNET_MY_result_spec_absolute_time(), post_extract_rsa_public_key(), post_extract_rsa_signature(), post_extract_varsize_blob(), pre_extract_fixed_blob(), pre_extract_uint16(), pre_extract_uint32(), and pre_extract_uint64().
size_t GNUNET_MY_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 235 of file gnunet_my_lib.h.
Referenced by GNUNET_MY_result_spec_fixed_size(), GNUNET_MY_result_spec_uint16(), GNUNET_MY_result_spec_uint32(), GNUNET_MY_result_spec_uint64(), pre_extract_fixed_blob(), pre_extract_uint16(), pre_extract_uint32(), and pre_extract_uint64().
size_t* GNUNET_MY_ResultSpec::result_size |
Where to store actual size of the result.
Definition at line 240 of file gnunet_my_lib.h.
Referenced by post_extract_varsize_blob().
unsigned int GNUNET_MY_ResultSpec::num_fields |
How many fields does this result specification occupy in the result returned by MySQL.
Definition at line 246 of file gnunet_my_lib.h.
unsigned long GNUNET_MY_ResultSpec::mysql_bind_output_length |
Location where we temporarily store the output buffer length from MySQL.
Internal to libgnunetmy.
Definition at line 252 of file gnunet_my_lib.h.
Referenced by GNUNET_MY_result_spec_absolute_time(), GNUNET_MY_result_spec_fixed_size(), GNUNET_MY_result_spec_uint16(), GNUNET_MY_result_spec_uint32(), post_extract_rsa_public_key(), post_extract_rsa_signature(), post_extract_varsize_blob(), pre_extract_fixed_blob(), pre_extract_rsa_public_key(), pre_extract_rsa_signature(), pre_extract_string(), pre_extract_uint16(), pre_extract_uint32(), pre_extract_uint64(), and pre_extract_varsize_blob().
MYSQL_BOOL GNUNET_MY_ResultSpec::is_null |
Memory for MySQL to notify us about NULL values.
Definition at line 257 of file gnunet_my_lib.h.
Referenced by pre_extract_fixed_blob(), pre_extract_rsa_public_key(), pre_extract_rsa_signature(), pre_extract_string(), pre_extract_uint16(), pre_extract_uint32(), pre_extract_uint64(), and pre_extract_varsize_blob().