1QB_HDB_HANDLE_CREATE(3)    libqb Programmer's Manual   QB_HDB_HANDLE_CREATE(3)
2
3
4

NAME

6       qb_hdb_handle_create - Create a new handle.
7
8

SYNOPSIS

10       #include <qb/qbhdb.h>
11
12       int32_t qb_hdb_handle_create(
13           struct qb_hdb   *hdb,            /* the database instance */
14           int32_t          instance_size,  /* size of the object to malloc */
15           qb_handle_t     *handle_id_out   /* new handle */
16       );
17

PARAMS

19       hdb           the database instance
20
21       instance_size size of the object to malloc
22
23       handle_id_out new handle
24

DESCRIPTION

STRUCTURES

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

RETURN VALUE

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

SEE ALSO

39       qb_hdb_handle_get(3), qb_hdb_iterator_reset(3),
40       qb_hdb_handle_destroy(3), qb_hdb_handle_refcount_get(3),
41       qb_hdb_iterator_next(3), qb_hdb_nocheck_convert(3), qb_hdb_create(3),
42       qb_hdb_destroy(3), qb_hdb_base_convert(3), qb_hdb_handle_get_always(3),
43       qb_hdb_handle_put(3)
44
46       Copyright (C) 2010-2020 Red Hat, Inc.
47
48
49
50LIBQB                             2023-07-21           QB_HDB_HANDLE_CREATE(3)
Impressum