Skip to content

Commit eed6d4b

Browse files
committed
fixup: getdns on unix
1 parent d876ce8 commit eed6d4b

File tree

2 files changed

+56
-1
lines changed

2 files changed

+56
-1
lines changed

deps/getdns/getdns/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ src/getdns/getdns.h
4848
*.log
4949
src/Doxyfile
5050
src/getdns/getdns_extra.h
51-
src/version.c
5251
aclocal.m4
5352
configure
5453
ltmain.sh

deps/getdns/getdns/src/version.c

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
/**
2+
*
3+
* /brief function for returning version info about the library and the API
4+
*
5+
*/
6+
7+
/*
8+
* Copyright (c) 2013, NLnet Labs, Verisign, Inc.
9+
* All rights reserved.
10+
*
11+
* Redistribution and use in source and binary forms, with or without
12+
* modification, are permitted provided that the following conditions are met:
13+
* * Redistributions of source code must retain the above copyright
14+
* notice, this list of conditions and the following disclaimer.
15+
* * Redistributions in binary form must reproduce the above copyright
16+
* notice, this list of conditions and the following disclaimer in the
17+
* documentation and/or other materials provided with the distribution.
18+
* * Neither the names of the copyright holders nor the
19+
* names of its contributors may be used to endorse or promote products
20+
* derived from this software without specific prior written permission.
21+
*
22+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
23+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
24+
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
25+
* DISCLAIMED. IN NO EVENT SHALL Verisign, Inc. BE LIABLE FOR ANY
26+
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
27+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
29+
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
31+
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32+
*/
33+
34+
#include <stdint.h>
35+
36+
const char *getdns_get_version(void)
37+
{
38+
return "1.6.0";
39+
}
40+
41+
uint32_t getdns_get_version_number(void)
42+
{
43+
return 0x01060000;
44+
}
45+
46+
const char *getdns_get_api_version(void)
47+
{
48+
return "December 2015";
49+
}
50+
51+
uint32_t getdns_get_api_version_number(void)
52+
{
53+
return 0x07df0c00;
54+
}
55+
56+
/* version.c */

0 commit comments

Comments
 (0)