Geoip: Add geoip_continent_name() native.

This commit is contained in:
Arkshine
2014-07-31 15:29:57 +02:00
parent fc19f53ea9
commit abaee9f4a3
2 changed files with 25 additions and 1 deletions

View File

@ -190,4 +190,15 @@ enum Continent
CONTINENT_OCEANIA,
CONTINENT_SOUTH_AMERICA
};
native Continent:geoip_continent_code(const ip[], result[3]);
native Continent:geoip_continent_code(const ip[], result[3]);
/**
* Look up the full continent name for the given IP address.
*
* @param ip The IP address to look up.
* @param result The result of the geoip look up.
* @param len The maximum length of the result buffer.
*
* @return The result length on successful lookup, 0 otherwise.
*/
native geoip_continent_name(const ip[], result[], len);