qb_hdb_iterator_next - Get the next object and increament it's refcount.
Contents
Copyright
Copyright (C) 2010-2020 Red Hat, Inc.
LIBQB 2023-07-21 QB_HDB_ITERATOR_NEXT(3)
Description
Remember to call qb_hdb_handle_put()Name
qb_hdb_iterator_next - Get the next object and increament it's refcount.
Params
hdbthedatabaseinstanceinstance(out)pointertothedesiredobject.handle(out)thehandle
Return Value
(0 == ok, -errno failure)
See Also
qb_hdb_handle_get(3), qb_hdb_iterator_reset(3), qb_hdb_handle_create(3), qb_hdb_handle_destroy(3), qb_hdb_handle_refcount_get(3), qb_hdb_nocheck_convert(3), qb_hdb_create(3), qb_hdb_destroy(3), qb_hdb_base_convert(3), qb_hdb_handle_get_always(3), qb_hdb_handle_put(3)
Structures
structqb_hdb{uint32_thandle_count;qb_array_thandles;uint32_titerator;void(*destructor)(void*);uint32_tfirst_run;};Synopsis
#include<qb/qbhdb.h>int32_tqb_hdb_iterator_next(
structqb_hdb*hdb, /* the database instance */
void**instance, /* (out) pointer to the desired object. */
qb_handle_t*handle /* (out) the handle */
);
