qb_hdb_handle_create3
Create a new handle.
Usage
#include <qb/qbhdb.h>
int32_t qb_hdb_handle_create(
struct qb_hdb *hdb, /* the database instance */
int32_t instance_size, /* size of the object to malloc */
qb_handle_t *handle_id_out /* new handle */
);
Params
hdb the database instance
instance_size size of the object to malloc
handle_id_out new handle
Overview
Structures
struct qb_hdb {
uint32_t handle_count;
qb_array_t handles;
uint32_t iterator;
void (*destructor)(void *);
uint32_t first_run;
};
Return value
(0 == ok, -errno failure)
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.