diff --git a/spec/example-all-functions.c b/spec/example-all-functions.c index 36ca24fa..5f41e516 100644 --- a/spec/example-all-functions.c +++ b/spec/example-all-functions.c @@ -127,10 +127,6 @@ retregular = getdns_service_sync( &dictarg ); -getdns_free_sync_request_memory( - dictarg -); - retregular = getdns_list_get_length(listarg, sizetptrarg); retregular = getdns_list_get_data_type(listarg, sizetarg, datatypeptrarg); retregular = getdns_list_get_dict(listarg, sizetarg, dictptrarg); diff --git a/spec/example-synchronous.c b/spec/example-synchronous.c index f83dcbf2..a6ec1ef3 100644 --- a/spec/example-synchronous.c +++ b/spec/example-synchronous.c @@ -64,7 +64,7 @@ int main() } /* Clean up */ getdns_context_destroy(this_context); - getdns_free_sync_request_memory(this_response); + getdns_dict_destroy(this_response); /* Assuming we get here, leave gracefully */ exit(EXIT_SUCCESS); } diff --git a/spec/getdns_core_only.h b/spec/getdns_core_only.h index 0e4bf551..879aa355 100644 --- a/spec/getdns_core_only.h +++ b/spec/getdns_core_only.h @@ -1,4 +1,4 @@ -/* Created at 2013-11-13-15-04-07*/ +/* Created at 2013-11-13-15-10-57*/ #ifndef GETDNS_H #define GETDNS_H @@ -388,11 +388,6 @@ getdns_service_sync( struct getdns_dict **response ); -void -getdns_free_sync_request_memory( - struct getdns_dict *response -); - char * getdns_convert_dns_name_to_fqdn( char *name_from_dns_response diff --git a/spec/index.html b/spec/index.html index 72c2a041..c3811f83 100644 --- a/spec/index.html +++ b/spec/index.html @@ -473,11 +473,11 @@ getdns_service_sync(

When you are done with the data in the response, use the following function so that the API can free the memory from its internal pool.

-
void -getdns_free_sync_request_memory( +
void
+getdns_dict_destroy(
   struct getdns_dict     *response
 );
-
+

2. Data structures in the API

@@ -1680,7 +1680,7 @@ as it is for the synchronous example, it is just done in main().

} /* Clean up */ getdns_context_destroy(this_context); - getdns_free_sync_request_memory(this_response); + getdns_dict_destroy(this_response); /* Assuming we get here, leave gracefully */ exit(EXIT_SUCCESS); } @@ -2112,7 +2112,7 @@ default is the realloc function.

9. The Generated Files

-

There is a tarball that includes the .h files, +

There is a tarball that includes the .h files, the examples, and so on. The examples all make, even though there is no API implementation, based on a pseudo-implementation in the tarball; see make-examples-PLATFORM.sh. Note that this currently builds fine on the Macintosh and Ubuntu; help is definitely appreciated on making the build process