Haka
Main Page
Modules
Data Structures
Files
File List
Globals
modules
misc
geoip
haka
geoip.h
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
* License, v. 2.0. If a copy of the MPL was not distributed with this
3
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5
#ifndef GEOIP_H_
6
#define GEOIP_H_
7
8
#include <
haka/types.h
>
9
#include <
haka/ipv4-addr.h
>
10
11
#include <GeoIP.h>
12
13
struct
geoip_handle;
14
15
struct
geoip_handle *geoip_initialize(
const
char
*database);
16
void
geoip_destroy(
struct
geoip_handle *geoip);
17
18
bool
geoip_lookup_country(
struct
geoip_handle *geoip,
ipv4addr
addr,
19
char
country_code[3]);
20
21
#endif
/* GEOIP_H_ */
types.h
ipv4addr
uint32 ipv4addr
Definition:
ipv4-addr.h:25
ipv4-addr.h
Generated on Thu Jun 9 2016 08:47:29 for Haka by
1.8.11