getdns_dict_set functions

Functions

getdns_return_t getdns_dict_set_dict (getdns_dict *dict, const char *name, const getdns_dict *child_dict)
 
getdns_return_t getdns_dict_set_list (getdns_dict *dict, const char *name, const getdns_list *child_list)
 
getdns_return_t getdns_dict_set_bindata (getdns_dict *dict, const char *name, const getdns_bindata *child_bindata)
 
getdns_return_t getdns_dict_set_int (getdns_dict *dict, const char *name, uint32_t child_uint32)
 

Detailed Description

Function Documentation

getdns_return_t getdns_dict_set_dict ( getdns_dict dict,
const char *  name,
const getdns_dict child_dict 
)
getdns_return_t getdns_dict_set_list ( getdns_dict dict,
const char *  name,
const getdns_list child_list 
)

create a new entry in the dictionary, or replace the value of an existing entry this routine makes a copy of the child_list

Parameters
dictdictionary in which to add or change the value
namekey that identifies which item in the dictionary to add/change
child_listvalue to assign to the node identified by name
Returns
GETDNS_RETURN_GOOD on success
getdns_return_t getdns_dict_set_bindata ( getdns_dict dict,
const char *  name,
const getdns_bindata child_bindata 
)

create a new entry in the dictionary, or replace the value of an existing entry this routine makes a copy of the child_bindata

Parameters
dictdictionary in which to add or change the value
namekey that identifies which item in the dictionary to add/change
child_bindatavalue to assign to the node identified by name
Returns
GETDNS_RETURN_GOOD on success
getdns_return_t getdns_dict_set_int ( getdns_dict dict,
const char *  name,
uint32_t  child_uint32 
)

create a new entry in the dictionary, or replace the value of an existing entry

Parameters
dictdictionary in which to add or change the value
namekey that identifies which item in the dictionary to add/change
child_uint32value to assign to the node identified by name
Returns
GETDNS_RETURN_GOOD on success