1
2getdns_context_set_context_update_gceatlgdlenbtsad_cnckso(n3t)ext_set_context_update_callback(3)
3
4
5
7 getdns_context_set_context_update_callback -- get informed on getdns
8 context updates
9
10
12 DNS Resolver library (libgetdns, -lgetdns)
13
14
16 #include <getdns.h>
17
18 getdns_return_t
19 getdns_context_set_context_update_callback (getdns_context ** context,
20 void (*cbfun)(getdns_context *context, getdns_context_code_t
21 changed_item)
22
23
25 Changes to the context such as in response to system files that affect
26 the contet (/etc/resolv.conf etc.) trigger a call to the callback func‐
27 tion specified as cbfun
28
29
30 context a previously initialized context
31
32
33 cbfun callback function to invoked when the specified context changes.
34 If this argument is NULL then updates to the context will not invoke
35 a callback.
36
37
38
39
41 Upon successful completion each of these functions return GETDNS_RE‐
42 TURN_GOOD , otherwise the following error values are returned:
43
44
45 GETDNS_RETURN_GENERIC_ERROR memory allocation failed or some other un‐
46 toward thing happened
47
48
49 GETDNS_RETURN_BAD_CONTEXT if the context pointer is invalid
50
51
53 TBD
54
55
57 libgetdns(3), getdns_context_create(3), getdns_context_set(3),
58 getdns_context_set_context_update_callback(3),
59
60
61
62
63getdns 1.7.3 Dgeectedmnbse_rco2n0t1e5xt_set_context_update_callback(3)