1QB_HDB_HANDLE_GET_ALWAYS(3)libqb Programmer's ManualQB_HDB_HANDLE_GET_ALWAYS(3)
2
3
4
6 qb_hdb_handle_get_always - Get the instance associated with this handle
7 and increase it's refcount.
8
10 #include <qb/qbhdb.h>
11
12 int32_t qb_hdb_handle_get_always(
13 struct qb_hdb *hdb,
14 qb_handle_t handle_in,
15 void **instance
16 );
17
19 hdb the database instance
20
21 handle_in the handle
22
23 instance (out) pointer to the desired object.
24
27 struct qb_hdb {
28 uint32_t handle_count;
29 qb_array_t handles;
30 uint32_t iterator;
31 void (*destructor)(void *);
32 uint32_t first_run;
33 };
34
36 (0 == ok, -errno failure)
37
39 This is currently an alias to qb_hdb_handle_get.
40
42 qb_hdb_handle_get(3), qb_hdb_iterator_reset(3),
43 qb_hdb_handle_create(3), qb_hdb_handle_destroy(3),
44 qb_hdb_handle_refcount_get(3), qb_hdb_iterator_next(3),
45 qb_hdb_nocheck_convert(3), qb_hdb_create(3), qb_hdb_destroy(3),
46 qb_hdb_base_convert(3), qb_hdb_handle_put(3)
47
49 Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
50
51
52
53LIBQB 2020-07-30 QB_HDB_HANDLE_GET_ALWAYS(3)