1QB_MAP_NOTIFY_ADD(3)       libqb Programmer's Manual      QB_MAP_NOTIFY_ADD(3)
2
3
4

NAME

6       qb_map_notify_add - Add a notifier to the map.
7

SYNOPSIS

9       #include <qb/qbmap.h>
10
11       int32_t qb_map_notify_add(
12           qb_map_t         *m,
13           const char       *key,
14           qb_map_notify_fn  fn,
15           int32_t           events,
16           void             *user_data
17       );
18

PARAMS

20       m         the map instance
21
22       key       the key (or prefix) to attach the notification to.
23
24       fn        the callback
25
26       events    the type of events to register for.
27
28       user_data a pointer to be passed into the callback
29

DESCRIPTION

31       0          success
32
33       -errno     failure
34

NOTE

36       you can use key prefixes with trie maps.
37

SEE ALSO

39       qb_trie_dump(3), qb_map_iter_create(3), qb_skiplist_create(3),
40       qb_map_notify_del(3), qb_map_put(3), qb_map_count_get(3),
41       qb_map_foreach(3), qb_map_pref_iter_create(3), qb_map_iter_next(3),
42       qb_map_get(3), qb_map_destroy(3), qb_hashtable_create(3),
43       qb_map_iter_free(3), qb_trie_create(3), qb_map_notify_del_2(3),
44       qb_map_rm(3)
45
47       Copyright (C) 2010-2020 Red Hat, Inc. All rights reserved.
48
49
50
51LIBQB                             2020-07-30              QB_MAP_NOTIFY_ADD(3)
Impressum