plugins/include/geoip.inc
changeset 319 cf5e2b46fa9f
child 320 8b0fb0a54ce4
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/plugins/include/geoip.inc	Fri Jan 19 02:23:04 2007 +0000
     1.3 @@ -0,0 +1,41 @@
     1.4 +/**
     1.5 + * :TODO: license info
     1.6 + */
     1.7 +
     1.8 +#if defined _geoip_included
     1.9 +  #endinput
    1.10 +#endif
    1.11 +#define _geoip_included
    1.12 +
    1.13 +/**
    1.14 + * @GLOBAL@
    1.15 + *   IP address can contain ports, the ports will be stripped out.
    1.16 + */
    1.17 +
    1.18 +/**
    1.19 + * Gets the two character country code from an IP address. (US, CA, etc)
    1.20 + *
    1.21 + * @param ip			Ip to determine the country code.
    1.22 + * @param ccode			Destination string buffer to store the code.
    1.23 + * @noreturn
    1.24 + */
    1.25 +native Geoip_Code2(const String:ip[], String:ccode[3]);
    1.26 +
    1.27 +/**
    1.28 + * Gets the three character country code from an IP address. (USA, CAN, etc)
    1.29 + *
    1.30 + * @param ip			Ip to determine the country code.
    1.31 + * @param ccode			Destination string buffer to store the code.
    1.32 + * @noreturn
    1.33 + */
    1.34 +native Geoip_Code3(const String:ip[], String:ccode[4]);
    1.35 +
    1.36 +/**
    1.37 + * Gets the full country name. (max length of output string is 45)
    1.38 + *
    1.39 + * @param ip			Ip to determine the country code.
    1.40 + * @param ccode			Destination string buffer to store the country name.
    1.41 + * @param len			Maximum length of output string buffer.
    1.42 + * @noreturn
    1.43 + */
    1.44 +native Geoip_Country(const String:ip[], String:name[], len=45);