QB_HDB_HAN...FCOUNT_GET(3)

πŸ’– qb_hdb_handle_refcount_get β€” libqb Programmer's Manual ✨

okay so bestie, welcome to the libqb programmer's manual, and today's main character is qb_hdb_handle_refcount_get β€” she gets the current refcount. that's it. that's her whole job and she does it flawlessly. πŸ’…


🌸 NAME 🌸

qb_hdb_handle_refcount_get β€” Get the current refcount.


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <qb/qbhdb.h>

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

πŸŽ€ PARAMS πŸŽ€

  • hdb β€” the database instance πŸ—‚οΈ like, the whole vibe container
  • handle_in β€” the handle 🫢 the specific lil guy you're asking about

πŸ’œ DESCRIPTION πŸ’œ

ngl, the original page leaves this section completely empty β€” no lore, no tea, nothing. so we're just gonna keep it moving, no cap. πŸ™ˆ


🌈 STRUCTURES 🌈

here's the struct, verbatim, character for character, because we do not mess with the facts around here:

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

⭐ RETURN VALUE ⭐

(>= 0 is the refcount, -errno failure)

so yeah β€” if you get >= 0, that's your refcount, slay. if you get -errno, something went sideways and it's giving failure. 😭


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr:


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


okay that's the whole page bestie, we ate and left no crumbs πŸ“βœ¨ this was LIBQB, dated 2025-09-16, and the page you just read is QB_HDB_HAN...FCOUNT_GET(3) β€” mwah, bye! πŸŽ€πŸ’…πŸ¦‹

πŸ“¦ where this page comes from