[API 0.378] C++ Compilation support

This commit is contained in:
Willem Toorop 2014-01-22 10:42:01 +01:00
parent 9a1f739840
commit 0fe04964c3
5 changed files with 16 additions and 2 deletions

Binary file not shown.

BIN
spec/getdns-0.378.tgz Normal file

Binary file not shown.

View File

@ -1,10 +1,14 @@
/* Created at 2014-01-22-09-54-56*/
/* Created at 2014-01-22-10-02-56*/
#ifndef GETDNS_H
#define GETDNS_H
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
#define GETDNS_COMPILATION_COMMENT The API implementation should fill in something here, such as a compilation version string and date, and change it each time the API is compiled.
/* Return values */
@ -594,4 +598,7 @@ getdns_context_set_extended_memory_functions(
void (*free)(void *userarg, void *ptr)
);
#ifdef __cplusplus
}
#endif
#endif /* GETDNS_H */

View File

@ -2210,7 +2210,7 @@ The response dicts inherit the custom memory management functions and the value
<h1>9. The Generated Files</h1>
<p>There is <a href="getdns-0.377.tgz">a tarball</a> that includes the .h files,
<p>There is <a href="getdns-0.378.tgz">a tarball</a> 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

View File

@ -39,6 +39,10 @@
#include <stdint.h>
#include <stdlib.h>
#ifdef __cplusplus
extern "C" {
#endif
struct event_base;
#define GETDNS_COMPILATION_COMMENT The API implementation should fill in something here, such as a compilation version string and date, and change it each time the API is compiled.
@ -883,4 +887,7 @@ getdns_return_t
getdns_extension_set_libevent_base(struct getdns_context *context,
struct event_base *this_event_base);
#ifdef __cplusplus
}
#endif
#endif /* GETDNS_H */