"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libGeoIP/GeoIP_deprecated.c" between
GeoIP-1.6.11.tar.gz and GeoIP-1.6.12.tar.gz

About: GeoIP is a C library that enables the user to find the country that any IP address or hostname originates from (contains an initial free GeoIP Country database).

GeoIP_deprecated.c  (GeoIP-1.6.11):GeoIP_deprecated.c  (GeoIP-1.6.12)
#include "GeoIP_internal.h" #include "GeoIP_internal.h"
char * char *GeoIP_org_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_org_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_name_by_ipnum_gl(gi, ipnum, &gl);
} }
char * char *GeoIP_org_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_org_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_name_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
char * char *GeoIP_org_by_addr(GeoIP *gi, const char *addr) {
GeoIP_org_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_addr_gl(gi, addr, &gl); return GeoIP_name_by_addr_gl(gi, addr, &gl);
} }
char * char *GeoIP_org_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_org_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_addr_v6_gl(gi, addr, &gl); return GeoIP_name_by_addr_v6_gl(gi, addr, &gl);
} }
char * char *GeoIP_org_by_name(GeoIP *gi, const char *name) {
GeoIP_org_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_name_gl(gi, name, &gl); return GeoIP_name_by_name_gl(gi, name, &gl);
} }
char * char *GeoIP_org_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_org_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_name_v6_gl(gi, name, &gl); return GeoIP_name_by_name_v6_gl(gi, name, &gl);
} }
int int GeoIP_last_netmask(GeoIP *gi) { return gi->netmask; }
GeoIP_last_netmask(GeoIP * gi)
{
return gi->netmask;
}
unsigned int unsigned int _GeoIP_seek_record_v6(GeoIP *gi, geoipv6_t ipnum) {
_GeoIP_seek_record_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return _GeoIP_seek_record_v6_gl(gi, ipnum, &gl); return _GeoIP_seek_record_v6_gl(gi, ipnum, &gl);
} }
unsigned int unsigned int _GeoIP_seek_record(GeoIP *gi, unsigned long ipnum) {
_GeoIP_seek_record(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return _GeoIP_seek_record_gl(gi, ipnum, &gl); return _GeoIP_seek_record_gl(gi, ipnum, &gl);
} }
const char * const char *GeoIP_country_code_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_country_code_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code_by_name_v6_gl(gi, name, &gl); return GeoIP_country_code_by_name_v6_gl(gi, name, &gl);
} }
const char * const char *GeoIP_country_code_by_name(GeoIP *gi, const char *name) {
GeoIP_country_code_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code_by_name_gl(gi, name, &gl); return GeoIP_country_code_by_name_gl(gi, name, &gl);
} }
const char * const char *GeoIP_country_code3_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_country_code3_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code3_by_name_v6_gl(gi, name, &gl); return GeoIP_country_code3_by_name_v6_gl(gi, name, &gl);
} }
const char * const char *GeoIP_country_code3_by_name(GeoIP *gi, const char *name) {
GeoIP_country_code3_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code3_by_name_gl(gi, name, &gl); return GeoIP_country_code3_by_name_gl(gi, name, &gl);
} }
const char * const char *GeoIP_country_name_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_country_name_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_name_by_name_v6_gl(gi, name, &gl); return GeoIP_country_name_by_name_v6_gl(gi, name, &gl);
} }
const char * const char *GeoIP_country_name_by_name(GeoIP *gi, const char *name) {
GeoIP_country_name_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_name_by_name_gl(gi, name, &gl); return GeoIP_country_name_by_name_gl(gi, name, &gl);
} }
int int GeoIP_id_by_name(GeoIP *gi, const char *name) {
GeoIP_id_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_name_gl(gi, name, &gl); return GeoIP_id_by_name_gl(gi, name, &gl);
} }
int int GeoIP_id_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_id_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_name_v6_gl(gi, name, &gl); return GeoIP_id_by_name_v6_gl(gi, name, &gl);
} }
const char * const char *GeoIP_country_code_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_country_code_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code_by_addr_v6_gl(gi, addr, &gl); return GeoIP_country_code_by_addr_v6_gl(gi, addr, &gl);
} }
const char * const char *GeoIP_country_code_by_addr(GeoIP *gi, const char *addr) {
GeoIP_country_code_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code_by_addr_gl(gi, addr, &gl); return GeoIP_country_code_by_addr_gl(gi, addr, &gl);
} }
const char * const char *GeoIP_country_code3_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_country_code3_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code3_by_addr_v6_gl(gi, addr, &gl); return GeoIP_country_code3_by_addr_v6_gl(gi, addr, &gl);
} }
const char * const char *GeoIP_country_code3_by_addr(GeoIP *gi, const char *addr) {
GeoIP_country_code3_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code3_by_addr_gl(gi, addr, &gl); return GeoIP_country_code3_by_addr_gl(gi, addr, &gl);
} }
const char * const char *GeoIP_country_name_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_country_name_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_name_by_addr_v6_gl(gi, addr, &gl); return GeoIP_country_name_by_addr_v6_gl(gi, addr, &gl);
} }
const char * const char *GeoIP_country_name_by_addr(GeoIP *gi, const char *addr) {
GeoIP_country_name_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_name_by_addr_gl(gi, addr, &gl); return GeoIP_country_name_by_addr_gl(gi, addr, &gl);
} }
const char * const char *GeoIP_country_name_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_country_name_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_name_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_country_name_by_ipnum_gl(gi, ipnum, &gl);
} }
const char * const char *GeoIP_country_name_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_country_name_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_name_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_country_name_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
const char * const char *GeoIP_country_code_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_country_code_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_country_code_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
const char * const char *GeoIP_country_code_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_country_code_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_country_code_by_ipnum_gl(gi, ipnum, &gl);
} }
const char * const char *GeoIP_country_code3_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_country_code3_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code3_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_country_code3_by_ipnum_gl(gi, ipnum, &gl);
} }
const char * const char *GeoIP_country_code3_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_country_code3_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_country_code3_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_country_code3_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
int int GeoIP_country_id_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_country_id_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_addr_v6_gl(gi, addr, &gl); return GeoIP_id_by_addr_v6_gl(gi, addr, &gl);
} }
int int GeoIP_country_id_by_addr(GeoIP *gi, const char *addr) {
GeoIP_country_id_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_addr_gl(gi, addr, &gl); return GeoIP_id_by_addr_gl(gi, addr, &gl);
} }
int int GeoIP_country_id_by_name_v6(GeoIP *gi, const char *host) {
GeoIP_country_id_by_name_v6(GeoIP * gi, const char *host)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_name_v6_gl(gi, host, &gl); return GeoIP_id_by_name_v6_gl(gi, host, &gl);
} }
int int GeoIP_country_id_by_name(GeoIP *gi, const char *host) {
GeoIP_country_id_by_name(GeoIP * gi, const char *host)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_name_gl(gi, host, &gl); return GeoIP_id_by_name_gl(gi, host, &gl);
} }
int int GeoIP_id_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_id_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_addr_v6_gl(gi, addr, &gl); return GeoIP_id_by_addr_v6_gl(gi, addr, &gl);
} }
int int GeoIP_id_by_addr(GeoIP *gi, const char *addr) {
GeoIP_id_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_addr_gl(gi, addr, &gl); return GeoIP_id_by_addr_gl(gi, addr, &gl);
} }
int int GeoIP_id_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_id_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_id_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
int int GeoIP_id_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_id_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_id_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_id_by_ipnum_gl(gi, ipnum, &gl);
} }
void void GeoIP_assign_region_by_inetaddr(GeoIP *gi,
GeoIP_assign_region_by_inetaddr(GeoIP * gi, unsigned long inetaddr, unsigned long inetaddr,
GeoIPRegion * region) GeoIPRegion *region) {
{
GeoIPLookup gl; GeoIPLookup gl;
GeoIP_assign_region_by_inetaddr_gl(gi, inetaddr, region, &gl); GeoIP_assign_region_by_inetaddr_gl(gi, inetaddr, region, &gl);
} }
void void GeoIP_assign_region_by_inetaddr_v6(GeoIP *gi,
GeoIP_assign_region_by_inetaddr_v6(GeoIP * gi, geoipv6_t inetaddr, geoipv6_t inetaddr,
GeoIPRegion * region) GeoIPRegion *region) {
{
GeoIPLookup gl; GeoIPLookup gl;
GeoIP_assign_region_by_inetaddr_v6_gl(gi, inetaddr, region, &gl); GeoIP_assign_region_by_inetaddr_v6_gl(gi, inetaddr, region, &gl);
} }
GeoIPRegion * GeoIPRegion *GeoIP_region_by_addr(GeoIP *gi, const char *addr) {
GeoIP_region_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_region_by_addr_gl(gi, addr, &gl); return GeoIP_region_by_addr_gl(gi, addr, &gl);
} }
GeoIPRegion * GeoIPRegion *GeoIP_region_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_region_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_region_by_addr_v6_gl(gi, addr, &gl); return GeoIP_region_by_addr_v6_gl(gi, addr, &gl);
} }
GeoIPRegion * GeoIPRegion *GeoIP_region_by_name(GeoIP *gi, const char *name) {
GeoIP_region_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_region_by_name_gl(gi, name, &gl); return GeoIP_region_by_name_gl(gi, name, &gl);
} }
GeoIPRegion * GeoIPRegion *GeoIP_region_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_region_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_region_by_name_v6_gl(gi, name, &gl); return GeoIP_region_by_name_v6_gl(gi, name, &gl);
} }
GeoIPRegion * GeoIPRegion *GeoIP_region_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_region_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_region_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_region_by_ipnum_gl(gi, ipnum, &gl);
} }
GeoIPRegion * GeoIPRegion *GeoIP_region_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_region_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_region_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_region_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
char ** char **GeoIP_range_by_ip(GeoIP *gi, const char *addr) {
GeoIP_range_by_ip(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_range_by_ip_gl(gi, addr, &gl); return GeoIP_range_by_ip_gl(gi, addr, &gl);
} }
char * char *GeoIP_name_by_ipnum(GeoIP *gi, unsigned long ipnum) {
GeoIP_name_by_ipnum(GeoIP * gi, unsigned long ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_ipnum_gl(gi, ipnum, &gl); return GeoIP_name_by_ipnum_gl(gi, ipnum, &gl);
} }
char * char *GeoIP_name_by_ipnum_v6(GeoIP *gi, geoipv6_t ipnum) {
GeoIP_name_by_ipnum_v6(GeoIP * gi, geoipv6_t ipnum)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_ipnum_v6_gl(gi, ipnum, &gl); return GeoIP_name_by_ipnum_v6_gl(gi, ipnum, &gl);
} }
char * char *GeoIP_name_by_addr(GeoIP *gi, const char *addr) {
GeoIP_name_by_addr(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_addr_gl(gi, addr, &gl); return GeoIP_name_by_addr_gl(gi, addr, &gl);
} }
char * char *GeoIP_name_by_addr_v6(GeoIP *gi, const char *addr) {
GeoIP_name_by_addr_v6(GeoIP * gi, const char *addr)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_addr_v6_gl(gi, addr, &gl); return GeoIP_name_by_addr_v6_gl(gi, addr, &gl);
} }
char * char *GeoIP_name_by_name(GeoIP *gi, const char *name) {
GeoIP_name_by_name(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_name_gl(gi, name, &gl); return GeoIP_name_by_name_gl(gi, name, &gl);
} }
char * char *GeoIP_name_by_name_v6(GeoIP *gi, const char *name) {
GeoIP_name_by_name_v6(GeoIP * gi, const char *name)
{
GeoIPLookup gl; GeoIPLookup gl;
return GeoIP_name_by_name_v6_gl(gi, name, &gl); return GeoIP_name_by_name_v6_gl(gi, name, &gl);
} }
 End of changes. 52 change blocks. 
160 lines changed or deleted 56 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)