1CONFDB_DISPATCH(3)Corosync Cluster Engine Programmer's ManualCONFDB_DISPATCH(3)
2
3
4
6 confdb_dispatch - Dispatches callbacks from the CONFDB service
7
9 #include <corosync/confdb.h>
10
11 int confdb_dispatch(confdb_handle_t handle, confdb_dispatch_t *dis‐
12 patch_types);
13
15 The confdb_dispatch function is used to dispatch configuration changes.
16
17 Each application may have several connections to the CONFDB API. Each
18 application uses the handle argument to uniquely identify the connec‐
19 tion.
20
21 The dispatch_types argument is used to identify the type of dispatch to
22 execute. The possible types are defined by the structure:
23
24
25 typedef enum {
26 CONFDB_DISPATCH_ONE,
27 CONFDB_DISPATCH_ALL,
28 CONFDB_DISPATCH_BLOCKING
29 } confdb_dispatch_t;
30
31 The dispatch values have the following meanings:
32
33 CONFDB_DISPATCH_ONE
34 Dispatch at least one callback, blocking until the callback is
35 dispatched.
36
37 CONFDB_DISPATCH_ALL
38 Dispatch all waiting callbacks without blocking to wait for any
39 callbacks.
40
41 CONFDB_DISPATCH_BLOCKING
42 Dispatch all callbacks blocking indefinitely. This is used in a
43 threaded program where a thread is created, and then confdb_dis‐
44 patch() is called immediately from the created thread to execute
45 callbacks.
46
47
49 This call returns the CONFDB_OK value if successful, otherwise an error
50 is returned.
51
53 The errors are undocumented.
54
56 confdb_overview(8), confdb_initialize(3), confdb_finalize(3),
57 confdb_fd_get(3), confdb_object_create(3), confdb_object_destroy(3),
58 confdb_object_parent_get(3), confdb_key_create(3),
59 confdb_key_delete(3), confdb_key_get(3), confdb_key_replace(3),
60 confdb_object_find_start(3), confdb_object_find(3),
61 confdb_object_iter_start(3), confdb_object_iter(3),
62 confdb_key_iter_start(3), confdb_key_iter(3),
63
64
65corosync Man Page 2004-08-31 CONFDB_DISPATCH(3)