diff options
author | Haruna <haru@dotalux.com> | 2014-11-15 17:04:09 +0100 |
---|---|---|
committer | Haruna <haru@dotalux.com> | 2014-11-15 17:04:09 +0100 |
commit | a6f077063eeff08ee27ae5170de1bb5cf4b2defb (patch) | |
tree | 9bb5ab158230301e604918883ce6d06c31890341 /src/char/geoip.h | |
parent | 77b88fe80b907122b24d698938538c22e029d25f (diff) | |
parent | 7f9fa7f59a82682fb139be4301e9a12a99644a19 (diff) | |
download | hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.gz hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.bz2 hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.tar.xz hercules-a6f077063eeff08ee27ae5170de1bb5cf4b2defb.zip |
Merge pull request #388 from 4144/charplugins
char server plugins
Diffstat (limited to 'src/char/geoip.h')
-rw-r--r-- | src/char/geoip.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/char/geoip.h b/src/char/geoip.h new file mode 100644 index 000000000..c83d886b5 --- /dev/null +++ b/src/char/geoip.h @@ -0,0 +1,32 @@ +// Copyright (c) Hercules Dev Team, licensed under GNU GPL. +// See the LICENSE file +// Portions Copyright (c) Athena Dev Teams + +#ifndef CHAR_GEOIP_H +#define CHAR_GEOIP_H + +#include "../common/cbasetypes.h" + +/** + * GeoIP information + **/ +struct s_geoip { + 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 geoip_interface *geoip; + +void geoip_defaults(void); + +#endif /* CHAR_GEOIP_H */ |