00001
00025 #ifndef _GEOIP_PV_H_
00026 #define _GEOIP_PV_H_
00027
00028 #include <GeoIP.h>
00029 #include <GeoIPCity.h>
00030
00031 #include "../../pvar.h"
00032
00033 int pv_parse_geoip_name(pv_spec_p sp, str *in);
00034 int pv_get_geoip(struct sip_msg *msg, pv_param_t *param,
00035 pv_value_t *res);
00036
00037 int geoip_init_pv(char *path);
00038 void geoip_destroy_pv(void);
00039 void geoip_pv_reset(str *pvclass);
00040 int geoip_update_pv(str *tomatch, str *pvclass);
00041
00042 #endif
00043