amxmodx/dlls/geoip/geoip_util.h
Arkshine adde73123f Geoip: Update license headers.
Hope this won't break merging.
2014-08-05 20:14:22 +02:00

35 lines
943 B
C

// 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
//
#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