QB_MAP_NOTIFY_DEL(3)
β¨ qb_map_notify_del β¨
okay bestie, welcome to libqb's programmer's manual π today we're doing qb_map_notify_del, and yes, the whole name is the vibe. it's a libqb thing, section 3 of the manual, so it's a library function. let's get into it π«Ά
πΈ NAME πΈ
qb_map_notify_del β delete a notifier from the map. that's it. that's the job. breaking up with a notifier, no cap π
β¨ SYNOPSIS β¨
#include <qb/qbmap.h>
int32_t qb_map_notify_del(
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.*/
);
okay so first thing, you gotta pull in the header:
#include <qb/qbmap.h>
and then the function itself takes four things. four. count them. π
π PARAMS π
mβ the map instance. your map. the main character πΊοΈkeyβ the key (or prefix) to attach the notification to.fnβ the callback.eventsβ the type of events to register for.
π¦ DESCRIPTION π¦
ngl, the original page justβ¦ leaves this one blank. not a single word. so there's literally nothing else the manpage says here, and i'm not about to make stuff up, bestie β that's not the move π
π RETURN VALUE π
0β success. slay. it worked β¨-errnoβ failure. it's giving negative errno energy π
β NOTE β
thekey,fnandeventsmust match those you added. fr fr. like, they have to be the exact same ones. no substitutions, no "close enough" β the notifier you're deleting has to line up with the one you put in there. remember that π
π SEE ALSO π
the whole little friend group, go say hi π
qb_trie_dump(3)qb_map_iter_create(3)qb_skiplist_create(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_notify_del_2(3)qb_map_rm(3)
π COPYRIGHT π
Copyright (C) 2010-2020 Red Hat, Inc.
and that's a wrap π¬ LIBQB, dated 2025-09-16, and you just read QB_MAP_NOTIFY_DEL(3). go delete a notifier, bestie, you got this πβ¨ππ¦
π¦ 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