qb_map_notify_add(3)

qb_map_notify_add3

Add a notifier to the map.

Usage

#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*/
);

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

Overview

Return value

0 success

-errno failure

Note

you can use key prefixes with trie maps.

Releases

4 releases since Debian 11 (Bullseye); the text changed 3 times.

  1. 11
  2. 12
  3. 13
  4. Arch

From libqb 2.0.10-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.