logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

qb_hdb_iterator_next - Get the next object and increament it's refcount.

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 */
       );

See Also