1 /* Copyright © 2014 Brandon L Black <blblack@gmail.com>
2  *
3  * This file is part of gdnsd.
4  *
5  * gdnsd-plugin-geoip is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * gdnsd-plugin-geoip is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with gdnsd.  If not, see <http://www.gnu.org/licenses/>.
17  *
18  */
19 
20 #ifndef GDGEOIP2_H
21 #define GDGEOIP2_H
22 
23 #include <gdnsd/compiler.h>
24 
25 #include "dclists.h"
26 #include "dcmap.h"
27 #include "nlist.h"
28 
29 #include <stdbool.h>
30 
31 void gdgeoip2_init(void);
32 
33 F_NONNULLX(1,2,3)
34 nlist_t* gdgeoip2_make_list(const char* pathname, const char* map_name, dclists_t* dclists, const dcmap_t* dcmap, const bool city_auto_mode, const bool city_no_region);
35 
36 #endif // GDGEOIP2_H
37