reg_avps.h

00001 #ifndef __REG_AVPS_H
00002 #define __REG_AVPS_H
00003 
00004 #define DEFAULT_REG_AVPFLAG_NAME        "regavps"
00005 
00006 #include "../../usr_avp.h"
00007 #include "../../str.h"
00008 #include "../../lib/srdb2/db_con.h"
00009 #include "../usrloc/udomain.h"
00010 
00011 int save_reg_avps(struct ucontact* c);
00012 int dup_reg_avps(struct ucontact *dst, struct ucontact *src);
00013 int delete_reg_avps(struct ucontact* c);
00014 
00015 int set_reg_avpflag_name(char *name);
00016 
00017 int read_reg_avps(struct sip_msg *m, char*, char*);
00018 int read_reg_avps_fixup(void** param, int param_no);
00019 
00020 
00021 /* module parameters (column and table names and DB control) */
00022 /* set serialized_reg_avp_column to non-NULL & non-empty value to
00023  * allow AVPs to be serialized into given column in location table 
00024  * (better will be extra numeric switch, but ...) */
00025 extern char *avp_column;
00026 
00027 /* returns 1 if reg AVPs are used, 0 if not */
00028 int use_reg_avps();
00029 
00030 #endif