QB_MAP_NOTIFY_DEL_2(3)
π QB_MAP_NOTIFY_DEL_2 π
okay so bestie, this is a page from the libqb Programmer's Manual, and the star of the show is qb_map_notify_del_2 β manual section 3, the library-call section, iykyk. π«Ά
β¨ NAME β¨
qb_map_notify_del_2 β Delete a notifier from the map (including the userdata).
like... it's giving "unsubscribe but make it thorough" π
πΈ SYNOPSIS πΈ
#include <qb/qbmap.h>
int32_t qb_map_notify_del_2(
qb_map_t *m, /* the map instance */
/*
* the key (or prefix) to attach the notification to.
*/
const char *key,
qb_map_notify_fn fn, /* the callback */
int32_t events, /* the type of events to register for. */
void *user_data /* a pointer to be passed into the callback*/
);
not me including the header every single time, it's literally the law π
π¦ PARAMS π¦
mβ the map instance πkeyβ the key (or prefix) to attach the notification to.fnβ the callbackeventsβ the type of events to register for.user_dataβ a pointer to be passed into the callback
π DESCRIPTION π
fr fr the original page leaves this one blank β no cap, there's just a heading sitting there with nothing under it. so the whole personality of this function lives in PARAMS, RETURN VALUE and NOTE, and we are NOT inventing lore that isn't there. π
β RETURN VALUE β
0β success π-errnoβ failure π
so basically zero is the slay, negative errno is the not-slay.
π NOTE π
thekey,fn,eventsanduserdatamust match those you added.
read that again bestie. it has to MATCH. all four of them. no "close enough", no "I'll just eyeball it" β match them exactly or the universe (and this function) will simply not cooperate. π₯
π SEE ALSO π
qb_trie_dump(3)qb_map_iter_create(3)qb_skiplist_create(3)qb_map_notify_del(3)qb_map_put(3)qb_map_count_get(3)qb_map_foreach(3)qb_map_pref_iter_create(3)qb_map_iter_next(3)qb_map_get(3)qb_map_destroy(3)qb_hashtable_create(3)qb_map_iter_free(3)qb_map_notify_add(3)qb_trie_create(3)qb_map_rm(3)
a whole little friend group, go read them too π§
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's the whole page, bestie!! this icon of a manpage is from LIBQB, dated 2025-09-16, and it goes by the full name QB_MAP_NOTIFY_DEL_2(3) β go forth and delete those notifiers, but only the ones that match. mwah πβ¨
π¦ 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