- unbound.h has extern "C" statement for easier include in c++.

git-svn-id: file:///svn/unbound/trunk@2169 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2010-06-25 13:23:03 +00:00
parent 14f178e486
commit 595eab57de
2 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,7 @@
- Fix handling of corner case reply from lame server, follows rfc2308.
It could lead to a nodata reply getting into the cache if the search
for a non-lame server turned up other misconfigured servers.
- unbound.h has extern "C" statement for easier include in c++.
23 June 2010: Wouter
- iana portlist updated.

View file

@ -93,6 +93,10 @@
#ifndef _UB_UNBOUND_H
#define _UB_UNBOUND_H
#ifdef __cplusplus
extern "C" {
#endif
/**
* The validation context is created to hold the resolver status,
* validation keys and a small cache (containing messages, rrsets,
@ -539,4 +543,8 @@ int ub_ctx_data_add(struct ub_ctx* ctx, char *data);
*/
int ub_ctx_data_remove(struct ub_ctx* ctx, char *data);
#ifdef __cplusplus
}
#endif
#endif /* _UB_UNBOUND_H */