GNUnet  0.19.3
GNUNET_MY_ResultSpec Struct Reference

Information we pass to GNUNET_MY_extract_result() to initialize the arguments of the prepared statement. More...

#include <gnunet_my_lib.h>

Collaboration diagram for GNUNET_MY_ResultSpec:
[legend]

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...
 

Detailed Description

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.

Field Documentation

◆ pre_conv

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().

◆ post_conv

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().

◆ cleaner

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().

◆ conv_cls

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().

◆ dst

◆ dst_size

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().

◆ result_size

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().

◆ num_fields

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.

◆ mysql_bind_output_length

◆ is_null

MYSQL_BOOL GNUNET_MY_ResultSpec::is_null

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