mirror of https://github.com/getdnsapi/getdns.git
Remove/add missing prototypes
This commit is contained in:
parent
cb26dd1a45
commit
ab75b89da2
|
@ -38,6 +38,7 @@
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <ldns/buffer.h>
|
#include <ldns/buffer.h>
|
||||||
#include "types-internal.h"
|
#include "types-internal.h"
|
||||||
|
#include "util-internal.h"
|
||||||
#include "dict.h"
|
#include "dict.h"
|
||||||
|
|
||||||
/*---------------------------------------- getdns_dict_find */
|
/*---------------------------------------- getdns_dict_find */
|
||||||
|
|
|
@ -100,8 +100,6 @@ main()
|
||||||
retregular = getdns_service_sync(contextarg,
|
retregular = getdns_service_sync(contextarg,
|
||||||
charstararg, dictarg, &dictarg);
|
charstararg, dictarg, &dictarg);
|
||||||
|
|
||||||
getdns_free_sync_request_memory(dictarg);
|
|
||||||
|
|
||||||
retregular = getdns_list_get_length(listarg, sizetptrarg);
|
retregular = getdns_list_get_length(listarg, sizetptrarg);
|
||||||
retregular =
|
retregular =
|
||||||
getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg);
|
getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg);
|
||||||
|
|
|
@ -111,7 +111,6 @@ main()
|
||||||
|
|
||||||
/* Clean up */
|
/* Clean up */
|
||||||
getdns_context_destroy(this_context);
|
getdns_context_destroy(this_context);
|
||||||
getdns_free_sync_request_memory(this_response);
|
|
||||||
|
|
||||||
exit(EXIT_SUCCESS);
|
exit(EXIT_SUCCESS);
|
||||||
} /* main */
|
} /* main */
|
||||||
|
|
|
@ -34,6 +34,12 @@
|
||||||
|
|
||||||
#define TSTMSGBUF 80
|
#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 */
|
/*---------------------------------------- tst_bindatasetget */
|
||||||
/**
|
/**
|
||||||
* test the bindata get and set routines
|
* test the bindata get and set routines
|
||||||
|
|
|
@ -35,6 +35,12 @@
|
||||||
#define TSTMSGBUF 80
|
#define TSTMSGBUF 80
|
||||||
#define GETDNS_LIST_BLOCKSZ 10
|
#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
|
/* TODO: might want a separate unit test for getdns_list_copy() - right now the code gets
|
||||||
covered as a result of other tests */
|
covered as a result of other tests */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue