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:
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_iterator_next(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)
go read them all, i'll wait π
π COPYRIGHT π
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
- 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