QB_MAP_NOTIFY_ADD(3)
π qb_map_notify_add β from the libqb Programmer's Manual (section 3) π
okay so bestie, welcome to qb_map_notify_add(3) πΈ this is the libqb girly whose whole job is adding a notifier to the map. that's it. that's the gig. and honestly? she ate. π
β¨ NAME β¨
qb_map_notify_add β Add a notifier to the map.
β¨ SYNOPSIS β¨
#include <qb/qbmap.h>
int32_t qb_map_notify_add(
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*/
);
like look at her. five params. no notes. π
β¨ PARAMS β¨
mβ the map instance πΊοΈ the actual map you're attaching this whole situation to.keyβ the key (or prefix) to attach the notification to. yes, or prefix, we'll get to that, hold on πfnβ the callback. the little function that gets to hear about everything πeventsβ the type of events to register for. you're picking which drama you want notifications about πuser_dataβ a pointer to be passed into the callback. your lil emotional support pointer, hand-delivered straight tofnπ«Ά
β¨ DESCRIPTION β¨
so um. the description section in the original is literally empty. nothing. void. a whole blank space π not me pointing it out but here we are β the vibes are immaculate and the prose is nonexistent. the NAME and PARAMS are doing all the heavy lifting, periodt.
β¨ RETURN VALUE β¨
0β success π we love to see it-errnoβ failure π it's giving "something went wrong" and the error code is negative, iykyk
β¨ NOTE β¨
you can use key prefixes with trie maps. π so like β trie maps only, bestie. don't try that on the others, they're not built for it.
β¨ SEE ALSO β¨
the whole friend group showed up, no cap:
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_trie_create(3)qb_map_notify_del_2(3)qb_map_rm(3)
β¨ COPYRIGHT β¨
Copyright (C) 2010-2020 Red Hat, Inc. π«Ά protecting the girlies since 2010.
okay that's the whole page, you're so welcome π this was libqb's Programmer's Manual, page QB_MAP_NOTIFY_ADD(3), dated 2025-09-16 β and that's the sign-off, mwah, go add a notifier to your map bestie π¦β¨
π¦ 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