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 πŸ”₯

the whole friend group honestly. go read them all. 🫢


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