1
2getdns_dict_set(3)                  getdns                  getdns_dict_set(3)
3
4
5

NAME

7       getdns_dict_set,     getdns_dict_set_bindata,     getdns_dict_set_dict,
8       getdns_dict_set_int, getdns_dict_set_list, -- set a value by name in  a
9       getdns dict
10
11

LIBRARY

13       DNS Resolver library (libgetdns, -lgetdns)
14
15

SYNOPSIS

17       #include <getdns.h>
18
19       getdns_return_t
20       getdns_dict_set_bindata (getdns_dict *this_dict,
21          char *name,
22          getdns_bindata *child_bindata)
23
24       getdns_return_t
25       getdns_dict_set_dict (getdns_dict *this_dict,
26          char *name,
27          getdns_dict *child_dict)
28
29       getdns_return_t
30       getdns_dict_set_int (getdns_dict *this_dict,
31          char *name,
32          uint32_t child_uint32_t)
33
34       getdns_return_t
35       getdns_dict_set_list (getdns_dict *this_dict,
36          char *name,
37          getdns_list *child_list)
38
39

DESCRIPTION

41       The  getdns_dict  type  is used to manage name/value pairs in which the
42       names are strings and the data types of the  values  are  heterogeneous
43       and include
44          getdns_bindata
45          getdns_dict
46          getdns_list
47          uint32_t
48
49
50       this_dict the dictionary in which to add/update the name/value pair
51
52       name  the name whose associated value is to be set.  If the name exists
53       in the dictionary the value associated with that name is  replaced,  if
54       the  name  does  not exist in the dictionary a new item is added to the
55       dictionary.
56
57       child_bindata child_dict child_list child_uint32 value  to  assign  the
58       name
59
60

RETURN VALUES

62       Upon  successful  completion  the functions return GETDNS_RETURN_GOOD ,
63       otherwise the following error values are returned:
64
65       GETDNS_RETURN_GENERIC_ERROR if this_dict is not a valid dictionary
66
67

EXAMPLES

69       TBD
70
71

SEE ALSO

73       libgetdns(3),  getdns_address(3),  getdns_dict(3),  getdns_dict_get(3),
74       getdns_general(3), getdns_hostname(3), getdns_service(3)
75
76
77
78
79getdns 1.7.3                     December 2015              getdns_dict_set(3)
Impressum