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

NAME

6       qb_hdb_iterator_next  -  Get  the  next object and increament it's ref‐
7       count.
8
9

SYNOPSIS

11       #include <qb/qbhdb.h>
12
13       int32_t qb_hdb_iterator_next(
14           struct qb_hdb   *hdb,  /* the database instance */
15           void           **instance,       /* (out) pointer to the desired object. */
16           qb_handle_t     *handle     /* (out) the handle */
17       );
18

PARAMS

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

DESCRIPTION

27       Remember to call qb_hdb_handle_put()
28

STRUCTURES

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

RETURN VALUE

39       (0 == ok, -errno failure)
40

SEE ALSO

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_nocheck_convert(3),
45       qb_hdb_create(3), qb_hdb_destroy(3), qb_hdb_base_convert(3),
46       qb_hdb_handle_get_always(3), qb_hdb_handle_put(3)
47
49       Copyright (C) 2010-2020 Red Hat, Inc.
50
51
52
53LIBQB                             2022-03-23           QB_HDB_ITERATOR_NEXT(3)
Impressum