1QB_HDB_HANDLE_GET_ALWAYS(3)libqb Programmer's ManualQB_HDB_HANDLE_GET_ALWAYS(3)
2
3
4

NAME

6       qb_hdb_handle_get_always - Get the instance associated with this handle
7       and increase it's refcount.
8
9

SYNOPSIS

11       #include <qb/qbhdb.h>
12
13       int32_t qb_hdb_handle_get_always(
14           struct qb_hdb   *hdb,
15           qb_handle_t      handle_in,
16           void           **instance
17       );
18

PARAMS

20       hdb       the database instance
21
22       handle_in the handle
23
24       instance  (out) pointer to the desired object.
25

DESCRIPTION

STRUCTURES

28       struct qb_hdb {
29           uint32_t    handle_count;
30           qb_array_t  handles;
31           uint32_t    iterator;
32           void      (*destructor)(void *);
33           uint32_t    first_run;
34       };
35

RETURN VALUE

37       (0 == ok, -errno failure)
38

NOTE

40       This is currently an alias to qb_hdb_handle_get.
41

SEE ALSO

43       qb_hdb_handle_get(3), qb_hdb_iterator_reset(3),
44       qb_hdb_handle_create(3), qb_hdb_handle_destroy(3),
45       qb_hdb_handle_refcount_get(3), qb_hdb_iterator_next(3),
46       qb_hdb_nocheck_convert(3), qb_hdb_create(3), qb_hdb_destroy(3),
47       qb_hdb_base_convert(3), qb_hdb_handle_put(3)
48
50       Copyright (C) 2010-2020 Red Hat, Inc.
51
52
53
54LIBQB                             2021-03-03       QB_HDB_HANDLE_GET_ALWAYS(3)
Impressum