GNUnet  0.11.x
Data Fields
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...
 
my_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 195 of file gnunet_my_lib.h.

Field Documentation

◆ pre_conv

GNUNET_MY_ResultConverter GNUNET_MY_ResultSpec::pre_conv

◆ post_conv

GNUNET_MY_ResultConverter GNUNET_MY_ResultSpec::post_conv

Function to call for converting the result.

Can be NULL.

Definition at line 205 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 210 of file gnunet_my_lib.h.

Referenced by GNUNET_MY_cleanup_result().

◆ conv_cls

void* GNUNET_MY_ResultSpec::conv_cls

Closure for conv.

Definition at line 215 of file gnunet_my_lib.h.

Referenced by GNUNET_MY_cleanup_result(), and GNUNET_MY_extract_result().

◆ dst

void* GNUNET_MY_ResultSpec::dst

◆ dst_size

size_t GNUNET_MY_ResultSpec::dst_size

◆ result_size

size_t* GNUNET_MY_ResultSpec::result_size

Where to store actual size of the result.

Definition at line 232 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 238 of file gnunet_my_lib.h.

Referenced by GNUNET_MY_extract_result(), GNUNET_MY_result_spec_rsa_public_key(), GNUNET_MY_result_spec_rsa_signature(), and GNUNET_MY_result_spec_string().

◆ mysql_bind_output_length

unsigned long GNUNET_MY_ResultSpec::mysql_bind_output_length

◆ is_null

my_bool GNUNET_MY_ResultSpec::is_null

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