GNUnet 0.21.1
GNUNET_SQ_ResultSpec Struct Reference

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

Detailed Description

Description of a DB result cell.

Definition at line 253 of file gnunet_sq_lib.h.

Field Documentation

◆ conv

◆ cleaner

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

◆ cls

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

◆ dst

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

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

◆ num_params

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


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