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 ⭐

the key, fn and events must 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 πŸ‘‹


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