ip2country.inc is a set of procedural functions for managing the ip2country database:
function ip2country_update_database($registry = 'arin')
function ip2country_empty_database()
function _ip2country_fetch_page($url)
Additional procedural functions are found in ip2country.module - these are intended to be part of the module's API:
function ip2country_get_country($ip_address)
function ip2country_get_count()
The purpose of this issue is to put this functionality into services and mark the procedural functions as deprecated.
The services I propose are the ip2country.lookup service, to handle the ip2country_get_country() API function, and the ip2country.manager service to handle the other four functions.
Comments
Comment #2
tr commentedPatch.
Comment #3
tr commentedA few coding standards.
Comment #5
tr commentedCommitted.