mirror of https://github.com/getdnsapi/getdns.git
Merge remote branch 'origin/develop' into feature/check_examples
This commit is contained in:
commit
0f1e27d0ba
|
@ -57,7 +57,7 @@ void this_callbackfn(struct getdns_context *this_context,
|
||||||
|
|
||||||
struct getdns_bindata * this_dname;
|
struct getdns_bindata * this_dname;
|
||||||
this_ret = getdns_dict_get_bindata(this_rdata, "rdata_raw", &this_dname);
|
this_ret = getdns_dict_get_bindata(this_rdata, "rdata_raw", &this_dname);
|
||||||
char *this_dname_str = getdns_convert_dns_name_to_fqdn(this_dname->data);
|
char *this_dname_str = getdns_convert_dns_name_to_fqdn((char *)this_dname->data);
|
||||||
printf("The dname is %s\n", this_dname_str);
|
printf("The dname is %s\n", this_dname_str);
|
||||||
free(this_dname_str);
|
free(this_dname_str);
|
||||||
|
|
||||||
|
|
|
@ -499,6 +499,15 @@ getdns_return_t getdns_dict_get_bindata(struct getdns_dict *this_dict,
|
||||||
getdns_return_t getdns_dict_get_int(struct getdns_dict *this_dict, char *name,
|
getdns_return_t getdns_dict_get_int(struct getdns_dict *this_dict, char *name,
|
||||||
uint32_t * answer);
|
uint32_t * answer);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* remove the value associated with the specified name
|
||||||
|
* @param this_dict dictionary from which to fetch the integer
|
||||||
|
* @param name a name/key value to look up in the dictionary
|
||||||
|
* @return GETDNS_RETURN_GOOD on success
|
||||||
|
* @return GETDNS_RETURN_NO_SUCH_DICT_NAME if dict is invalid or name does not exist
|
||||||
|
*/
|
||||||
|
getdns_return_t getdns_dict_remove_name(struct getdns_dict *this_dict, char *name);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* create a new list with no items
|
* create a new list with no items
|
||||||
* @return pointer to an allocated list, NULL if insufficient memory
|
* @return pointer to an allocated list, NULL if insufficient memory
|
||||||
|
|
Loading…
Reference in New Issue