From 3248d223cdcb3c3ec6beef2c19f58a384afec6d7 Mon Sep 17 00:00:00 2001 From: Glen Wiley Date: Fri, 27 Dec 2013 09:35:47 -0500 Subject: [PATCH] added prototype for remove_name --- src/getdns/getdns.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/getdns/getdns.h b/src/getdns/getdns.h index 7c98c14f..2ce5ba54 100644 --- a/src/getdns/getdns.h +++ b/src/getdns/getdns.h @@ -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, 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 * @return pointer to an allocated list, NULL if insufficient memory