GNUnet 0.22.2
GNUNET_PQ_QueryParam Struct Reference

Description of a DB query parameter. More...

#include <gnunet_pq_lib.h>

Data Fields

GNUNET_PQ_QueryConverter conv
 Function for how to handle this type of entry. More...
 
void * conv_cls
 Closure for conv. More...
 
GNUNET_PQ_QueryConverter_Cleanup conv_cls_cleanup
 Function to cleanup the closure conv_cls, may be NULL. More...
 
const void * data
 Data or NULL. More...
 
size_t size
 Size of data. More...
 
unsigned int num_params
 Number of parameters eaten by this operation. More...
 

Detailed Description

Description of a DB query parameter.

Definition at line 82 of file gnunet_pq_lib.h.

Field Documentation

◆ conv

GNUNET_PQ_QueryConverter GNUNET_PQ_QueryParam::conv

Function for how to handle this type of entry.

Definition at line 87 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_exec_prepared().

◆ conv_cls

void* GNUNET_PQ_QueryParam::conv_cls

Closure for conv.

The function @conv_cls_cleanup can be set to cleanup the closure. The cleanup of the closure MUST be triggered manually by a call to GNUNET_PQ_query_params_cleanup.

Definition at line 95 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_cleanup_query_params_closures(), and GNUNET_PQ_exec_prepared().

◆ conv_cls_cleanup

GNUNET_PQ_QueryConverter_Cleanup GNUNET_PQ_QueryParam::conv_cls_cleanup

Function to cleanup the closure conv_cls, may be NULL.

The cleanup of the closure MUST be triggered manually by a call to GNUNET_PQ_query_params_cleanup.

Definition at line 102 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_cleanup_query_params_closures().

◆ data

const void* GNUNET_PQ_QueryParam::data

Data or NULL.

Definition at line 107 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_exec_prepared().

◆ size

size_t GNUNET_PQ_QueryParam::size

◆ num_params

unsigned int GNUNET_PQ_QueryParam::num_params

Number of parameters eaten by this operation.

Definition at line 117 of file gnunet_pq_lib.h.

Referenced by GNUNET_PQ_cleanup_query_params_closures(), and GNUNET_PQ_exec_prepared().


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