QB_HDB_HANDLE_PUT(3)

πŸ’– QB_HDB_HANDLE_PUT(3) πŸ’–

okay bestie, so this is a page straight out of the libqb Programmer's Manual, and it's all about qb_hdb_handle_put β€” yes, the one from section 3, the library-call section. sit down, hydrate, let's get into it 🫢


✨ NAME ✨

qb_hdb_handle_put β€” put the instance associated with this handle and decrease it's refcount.

like literally that's the whole job. you hand back the thing you borrowed, and the refcount goes down by one. no cap. πŸ’…


🌸 SYNOPSIS 🌸

#include <qb/qbhdb.h>

int32_t qb_hdb_handle_put(
    struct qb_hdb   *hdb,        /* the database instance */
    qb_handle_t      handle_in   /* the handle */
);

it's giving "two arguments, one return value, zero drama" ✨


πŸŽ€ PARAMS πŸŽ€

  • hdb β€” the database instance. your hdb. the whole vibe container.
  • handle_in β€” the handle. the lil ticket you're handing back.

πŸ’œ DESCRIPTION πŸ’œ

okay so. the description section on this page is genuinely just… the struct. that's it. that's the description. minimalism is a lifestyle i guess 😭


πŸ¦‹ STRUCTURES πŸ¦‹

here's the shape of the thing, verbatim, do not touch:

struct qb_hdb {
    uint32_t    handle_count;
    qb_array_t  handles;
    uint32_t    iterator;
    void      (*destructor)(void *);
    uint32_t    first_run;
};

five fields. handle_count, handles, iterator, destructor, first_run. memorise them, love them, respect them πŸ’–


πŸ‘‘ RETURN VALUE πŸ‘‘

  • 0 == ok βœ…
  • -errno == failure 😭

that's it, that's the whole emotional spectrum.


🌈 SEE ALSO 🌈

the whole friend group, fr fr:

go read them all, i'll wait πŸ“


Copyright (C) 2010-2020 Red Hat, Inc.


and that's the whole page, bestie!! this icon was brought to you by the LIBQB girlies, dated 2025-09-16, and it goes by QB_HDB_HANDLE_PUT(3) in the group chat. now go put that handle back, your refcount is waiting πŸŽ€βœ¨πŸ’œ

πŸ“¦ where this page comes from