QB_HDB_ITERATOR_NEXT(3)
π qb_hdb_iterator_next β bestie edition π
okay so this is a page from the libqb Programmer's Manual, and it's about grabbing the next object out of your hdb iterator and bumping its refcount. that's it. that's the vibe. β¨
πΈ NAME πΈ
qb_hdb_iterator_next β get the next object and increament it's refcount.
yes bestie the manpage really spells it "increament" and yes i'm leaving it exactly as-is. not my typo, not my problem. π
π¦ SYNOPSIS π¦
#include <qb/qbhdb.h>
int32_t qb_hdb_iterator_next(
struct qb_hdb *hdb, /* the database instance */
void **instance, /* (out) pointer to the desired object. */
qb_handle_t *handle /* (out) the handle */
);
π PARAMS π
hdbβ the database instance, the main character of this whole operation πinstanceβ (out) pointer to the desired object. it hands you the goodies. πhandleβ (out) the handle. you get one of these too, lucky you. π
π DESCRIPTION π
Remember to call qb_hdb_handle_put()
fr fr. do NOT forget. that's the whole warning. that's it. that's the description. π
π§ STRUCTURES π§
struct qb_hdb {
uint32_t handle_count;
qb_array_t handles;
uint32_t iterator;
void (*destructor)(void *);
uint32_t first_run;
};
look at her. iconic. no notes. β¨
β RETURN VALUE β
(0 == ok, -errno failure)
so like β 0 is the slay, anything -errno shaped is the not-slay. π
π₯ 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)
the whole friend group honestly. go read them all. π«Ά
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
that's the page bestie, hope it ate π and hey β this was LIBQB, dated 2025-09-16, and the man page name is QB_HDB_ITERATOR_NEXT(3). mwah. πΈπ¦β¨
π¦ where this page comes from
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- fedora 44: libqb-devel 2.0.9-2.fc44 Β· LGPL-2.1-or-later
- ubuntu resolute: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- ubuntu stonking: libqb-dev 2.0.9-1ubuntu1 Β· LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms