00001 #ifndef __EXTRA_ATTRS_H
00002 #define __EXTRA_ATTRS_H
00003
00004
00005 #include "../../parser/msg_parser.h"
00006 #include "../../lib/srdb2/db.h"
00007 #include "../../sr_module.h"
00008
00009 int declare_attr_group(modparam_t type, char* param);
00010
00011 int init_extra_avp_queries(db_ctx_t *ctx);
00012 int init_extra_avp_locks();
00013
00014 int load_extra_attrs(struct sip_msg* msg, char *_table, char* _id);
00015 int save_extra_attrs(struct sip_msg* msg, char* _table, char *_id);
00016 int remove_extra_attrs(struct sip_msg* msg, char *_table, char* _id);
00017
00018 int extra_attrs_fixup(void** param, int param_no);
00019
00020 int lock_extra_attrs(struct sip_msg* msg, char *_table, char* _id);
00021 int unlock_extra_attrs(struct sip_msg* msg, char *_table, char* _id);
00022
00023 #endif