QB_ARRAY_NEW_BIN_CB_SET(3)
π QB_ARRAY_NEW_BIN_CB_SET π
okay bestie, this one lives in the libqb Programmer's Manual (section 3, the library-calls girlies) and it's literally called qb_array_new_bin_cb_set β get a callback when a new bin is allocated. no cap. π«Ά
β¨ NAME β¨
qb_array_new_bin_cb_set β get a callback when a new bin is allocated. π
πΈ SYNOPSIS πΈ
#include <qb/qbarray.h>
int32_t qb_array_new_bin_cb_set(
qb_array_t *a,
qb_array_new_bin_cb_fn fn
);
so you pass in a pointer to your qb_array_t as *a, and your callback function as *fn, and it hands you back an int32_t. that's the whole vibe. π
π¦ DESCRIPTION π¦
bestie. i'm gonna be so fr fr with you right now. the DESCRIPTION section on this page is empty. like, not "short", not "implied", not "read between the lines" β genuinely nothing there. π
which is honestly iconic of it, but it does mean i'm not about to sit here and make stuff up about what this function does, because that would be a fake technical claim and we do not do those in this group chat. what the NAME line tells you is exactly what's on the tin: you set a callback, and that callback gets called when a new bin is allocated. everything past that? the source code is right there, queen. go look. π
π SEE ALSO π
the little family of related calls, all of them bangers:
qb_array_elems_per_bin_get(3)qb_array_create(3)qb_array_grow(3)qb_array_num_bins_get(3)qb_array_index(3)qb_array_create_2(3)qb_array_free(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
heads up bestie: this is the libqb manual, dated 2025-09-16, and it's a section 3 page β library functions, iykyk. π
okay that's the whole page, mwah, go write some C, you ate. π§β¨
π¦ 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