1QB_HDB_HANDLE_CREATE(3) libqb Programmer's Manual QB_HDB_HANDLE_CREATE(3)
2
3
4
6 qb_hdb_handle_create - Create a new handle.
7
9 #include <qb/qbhdb.h>
10
11 int32_t qb_hdb_handle_create(
12 struct qb_hdb *hdb,
13 int32_t instance_size,
14 qb_handle_t *handle_id_out
15 );
16
18 hdb the database instance
19
20 instance_size size of the object to malloc
21
22 handle_id_out new handle
23
26 struct qb_hdb {
27 uint32_t handle_count;
28 qb_array_t handles;
29 uint32_t iterator;
30 void (*destructor)(void *);
31 uint32_t first_run;
32 };
33
35 (0 == ok, -errno failure)
36
38 qb_hdb_handle_get(3), qb_hdb_iterator_reset(3),
39 qb_hdb_handle_destroy(3), qb_hdb_handle_refcount_get(3),
40 qb_hdb_iterator_next(3), qb_hdb_nocheck_convert(3), qb_hdb_create(3),
41 qb_hdb_destroy(3), qb_hdb_base_convert(3), qb_hdb_handle_get_always(3),
42 qb_hdb_handle_put(3)
43
45 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
46
47
48
49LIBQB 2020-07-30 QB_HDB_HANDLE_CREATE(3)