2014-08-05 09:14:29 +00:00
|
|
|
// vim: set ts=4 sw=4 tw=99 noet:
|
|
|
|
//
|
|
|
|
// AMX Mod X, based on AMX Mod by Aleksander Naszko ("OLO").
|
|
|
|
// Copyright (C) The AMX Mod X Development Team.
|
|
|
|
//
|
|
|
|
// This software is licensed under the GNU General Public License, version 3 or higher.
|
|
|
|
// Additional exceptions apply. For full license details, see LICENSE.txt or visit:
|
|
|
|
// https://alliedmods.net/amxmodx-license
|
|
|
|
|
|
|
|
//
|
|
|
|
// GeoIP Module
|
|
|
|
//
|
|
|
|
|
2014-07-31 21:08:58 +00:00
|
|
|
#ifndef _INCLUDE_GEOIPUTIL_H
|
|
|
|
#define _INCLUDE_GEOIPUTIL_H
|
|
|
|
|
|
|
|
#include "geoip_main.h"
|
|
|
|
|
|
|
|
#if defined(WIN32)
|
|
|
|
#define snprintf _snprintf
|
|
|
|
#endif
|
|
|
|
|
|
|
|
char *stripPort(char *ip);
|
|
|
|
|
|
|
|
bool lookupByIp(const char *ip, const char **path, MMDB_entry_data_s *result);
|
|
|
|
double lookupDouble(const char *ip, const char **path);
|
|
|
|
const char *lookupString(const char *ip, const char **path, int *length = NULL);
|
|
|
|
|
|
|
|
int getContinentId(const char *code);
|
|
|
|
const char *getLang(int playerIndex);
|
|
|
|
|
|
|
|
const char* stristr(const char* str, const char* substr);
|
|
|
|
|
|
|
|
#endif // _INCLUDE_GEOIPUTIL_H
|