Skip to content

Commit

Permalink
Moved C++ extern and add missing version functions declare
Browse files Browse the repository at this point in the history
  • Loading branch information
jelu committed Feb 7, 2017
1 parent 50a6859 commit 2de2d37
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions omg_dns.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
#define omg_dns_assert(x)
#endif

#ifdef __cplusplus
extern "C" {
#endif

#define OMG_DNS_VERSION_STR "1.0.0"
#define OMG_DNS_VERSION_MAJOR 1
#define OMG_DNS_VERSION_MINOR 0
Expand All @@ -45,6 +41,15 @@ extern "C" {
#define OMG_DNS_ENOMEM 3
#define OMG_DNS_EOVERRUN 4

#ifdef __cplusplus
extern "C" {
#endif

const char* omg_dns_version_str(void);
int omg_dns_version_major(void);
int omg_dns_version_minor(void);
int omg_dns_version_patch(void);

#define OMG_DNS_LABEL_T_INIT { \
0, \
0, \
Expand Down

0 comments on commit 2de2d37

Please sign in to comment.