浏览代码

tm: t_set_fr() function exported via inter-module api

Daniel-Constantin Mierla 10 年之前
父节点
当前提交
318bbb047d
共有 3 个文件被更改,包括 3 次插入0 次删除
  1. 1 0
      modules/tm/t_lookup.h
  2. 1 0
      modules/tm/tm_load.c
  3. 1 0
      modules/tm/tm_load.h

+ 1 - 0
modules/tm/t_lookup.h

@@ -90,6 +90,7 @@ typedef int (*tget_ti_f)(struct sip_msg*, unsigned int*, unsigned int*);
 typedef int (*tlookup_ident_f)(struct cell**, unsigned int, unsigned int);
 typedef int (*trelease_f)(struct sip_msg*);
 typedef int (*tlookup_callid_f)(struct cell **, str, str);
+typedef int (*tset_fr_f)(struct sip_msg*, unsigned int, unsigned int);
 
 int t_is_local(struct sip_msg*);
 int t_get_trans_ident(struct sip_msg* p_msg, unsigned int* hash_index, unsigned int* label);

+ 1 - 0
modules/tm/tm_load.c

@@ -139,6 +139,7 @@ int load_tm( struct tm_binds *tmb)
 	tmb->t_append_branches = t_append_branches;
 	tmb->t_load_contacts = t_load_contacts;
 	tmb->t_next_contacts = t_next_contacts;
+	tmb->set_fr = t_set_fr;
 	return 1;
 }
 

+ 1 - 0
modules/tm/tm_load.h

@@ -126,6 +126,7 @@ struct tm_binds {
 	t_append_branches_f	t_append_branches;
 	cmd_function	t_load_contacts;
 	cmd_function	t_next_contacts;
+	tset_fr_f set_fr;
 };
 
 typedef struct tm_binds tm_api_t;