shared definitions for transactional databases More...
#include "gnunet_common.h"
Go to the source code of this file.
Data Structures | |
struct | GNUNET_DB_EventHeaderP |
Header of a structure that describes an event channel we may subscribe to or notify on. More... | |
Typedefs | |
typedef void(* | GNUNET_DB_EventCallback) (void *cls, const void *extra, size_t extra_size) |
Function called on events received from Postgres. More... | |
Enumerations | |
enum | GNUNET_DB_QueryStatus { GNUNET_DB_STATUS_HARD_ERROR = -2 , GNUNET_DB_STATUS_SOFT_ERROR = -1 , GNUNET_DB_STATUS_SUCCESS_NO_RESULTS = 0 , GNUNET_DB_STATUS_SUCCESS_ONE_RESULT = 1 } |
Status code returned from functions running database commands. More... | |
shared definitions for transactional databases
Definition in file gnunet_db_lib.h.
typedef void(* GNUNET_DB_EventCallback) (void *cls, const void *extra, size_t extra_size) |
Function called on events received from Postgres.
cls | closure |
extra | additional event data provided |
extra_size | number of bytes in extra |
Definition at line 79 of file gnunet_db_lib.h.
Status code returned from functions running database commands.
Can be combined with a function that returns the number of results, so all non-negative values indicate success.
Definition at line 36 of file gnunet_db_lib.h.