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 callback
  • events β€” 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 πŸŽ€

the key, fn, events and userdata must 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 🌈

a whole little friend group, go read them too 🧚


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