1.1 --- a/plugins/include/geoip.inc Fri Jan 19 02:23:04 2007 +0000
1.2 +++ b/plugins/include/geoip.inc Fri Jan 19 02:28:56 2007 +0000
1.3 @@ -7,6 +7,8 @@
1.4 #endif
1.5 #define _geoip_included
1.6
1.7 +#include <core>
1.8 +
1.9 /**
1.10 * @GLOBAL@
1.11 * IP address can contain ports, the ports will be stripped out.
1.12 @@ -19,7 +21,7 @@
1.13 * @param ccode Destination string buffer to store the code.
1.14 * @noreturn
1.15 */
1.16 -native Geoip_Code2(const String:ip[], String:ccode[3]);
1.17 +native GeoipCode2(const String:ip[], String:ccode[3]);
1.18
1.19 /**
1.20 * Gets the three character country code from an IP address. (USA, CAN, etc)
1.21 @@ -28,7 +30,7 @@
1.22 * @param ccode Destination string buffer to store the code.
1.23 * @noreturn
1.24 */
1.25 -native Geoip_Code3(const String:ip[], String:ccode[4]);
1.26 +native GeoipCode3(const String:ip[], String:ccode[4]);
1.27
1.28 /**
1.29 * Gets the full country name. (max length of output string is 45)
1.30 @@ -38,4 +40,24 @@
1.31 * @param len Maximum length of output string buffer.
1.32 * @noreturn
1.33 */
1.34 -native Geoip_Country(const String:ip[], String:name[], len=45);
1.35 +native GeoipCountry(const String:ip[], String:name[], len=45);
1.36 +
1.37 +/**
1.38 + * Do not edit below this line!
1.39 + */
1.40 +public Extension:__ext_geoip =
1.41 +{
1.42 + name = "GeoIP",
1.43 + file = "geoip.ext",
1.44 +#if defined AUTOLOAD_EXTENSIONS
1.45 + autoload = 1,
1.46 +#else
1.47 + autoload = 0,
1.48 +#endif
1.49 +#if defined REQUIRE_EXTENSIONS
1.50 + required = 1,
1.51 +#else
1.52 + required = 0,
1.53 +#endif
1.54 +};
1.55 +