From ab75b89da24d3a3b0e56d4f47adbb7b18774d710 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Tue, 3 Dec 2013 16:09:26 +0100 Subject: [PATCH] Remove/add missing prototypes --- src/dict.c | 1 + src/example/example_all_functions.c | 2 -- src/example/example_synchronous.c | 1 - src/test/tests_dict.c | 6 ++++++ src/test/tests_list.c | 6 ++++++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/dict.c b/src/dict.c index 60d17b8d..7809703b 100644 --- a/src/dict.c +++ b/src/dict.c @@ -38,6 +38,7 @@ #include #include #include "types-internal.h" +#include "util-internal.h" #include "dict.h" /*---------------------------------------- getdns_dict_find */ diff --git a/src/example/example_all_functions.c b/src/example/example_all_functions.c index c8706acb..55a90f02 100644 --- a/src/example/example_all_functions.c +++ b/src/example/example_all_functions.c @@ -100,8 +100,6 @@ main() retregular = getdns_service_sync(contextarg, charstararg, dictarg, &dictarg); - getdns_free_sync_request_memory(dictarg); - retregular = getdns_list_get_length(listarg, sizetptrarg); retregular = getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg); diff --git a/src/example/example_synchronous.c b/src/example/example_synchronous.c index 4d070ad2..5c306f33 100644 --- a/src/example/example_synchronous.c +++ b/src/example/example_synchronous.c @@ -111,7 +111,6 @@ main() /* Clean up */ getdns_context_destroy(this_context); - getdns_free_sync_request_memory(this_response); exit(EXIT_SUCCESS); } /* main */ diff --git a/src/test/tests_dict.c b/src/test/tests_dict.c index 76e6838b..65330aab 100644 --- a/src/test/tests_dict.c +++ b/src/test/tests_dict.c @@ -34,6 +34,12 @@ #define TSTMSGBUF 80 +/* Prototypes for functions not part of the API + * TODO: remove these + */ +getdns_return_t getdns_list_add_item(struct getdns_list *list, size_t * index); +getdns_return_t getdns_dict_copy(struct getdns_dict *srcdict, struct getdns_dict **dstdict); + /*---------------------------------------- tst_bindatasetget */ /** * test the bindata get and set routines diff --git a/src/test/tests_list.c b/src/test/tests_list.c index 3a0d367b..d2103350 100644 --- a/src/test/tests_list.c +++ b/src/test/tests_list.c @@ -35,6 +35,12 @@ #define TSTMSGBUF 80 #define GETDNS_LIST_BLOCKSZ 10 + +/* Prototypes for functions not part of the API + * TODO: remove these + */ +getdns_return_t getdns_list_add_item(struct getdns_list *list, size_t * index); + /* TODO: might want a separate unit test for getdns_list_copy() - right now the code gets covered as a result of other tests */