summaryrefslogtreecommitdiff
path: root/src/char/geoip.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-11-16 00:55:41 +0100
committerHaru <haru@dotalux.com>2014-11-16 07:16:21 +0100
commit98809d97bebc734be769318ad374c37b65dfd1e1 (patch)
tree09524df6296f1bd5d1d4ec5fa71ee51c36638fc9 /src/char/geoip.h
parent27cd926dd2f41e008da738e8d9259cd0c33a2f77 (diff)
downloadhercules-98809d97bebc734be769318ad374c37b65dfd1e1.tar.gz
hercules-98809d97bebc734be769318ad374c37b65dfd1e1.tar.bz2
hercules-98809d97bebc734be769318ad374c37b65dfd1e1.tar.xz
hercules-98809d97bebc734be769318ad374c37b65dfd1e1.zip
Moved geoip-related functions to geoip.c
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/char/geoip.h')
-rw-r--r--src/char/geoip.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/char/geoip.h b/src/char/geoip.h
index c83d886b5..8cad2f73b 100644
--- a/src/char/geoip.h
+++ b/src/char/geoip.h
@@ -11,19 +11,19 @@
* GeoIP information
**/
struct s_geoip {
- unsigned char *cache; // GeoIP.dat information see geoip->init()
- bool active;
+ unsigned char *cache; // GeoIP.dat information see geoip->init()
+ bool active;
};
/**
* geoip interface
**/
struct geoip_interface {
- struct s_geoip *data;
- const char* (*getcountry) (uint32 ipnum);
- void (*final) (bool shutdown);
- void (*init) (void);
-} geoip_s;
+ struct s_geoip *data;
+ const char* (*getcountry) (uint32 ipnum);
+ void (*final) (bool shutdown);
+ void (*init) (void);
+};
struct geoip_interface *geoip;