Browse code

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

Daniel-Constantin Mierla authored on 22/04/2015 20:41:34
Showing 3 changed files
... ...
@@ -90,6 +90,7 @@ typedef int (*tget_ti_f)(struct sip_msg*, unsigned int*, unsigned int*);
90 90
 typedef int (*tlookup_ident_f)(struct cell**, unsigned int, unsigned int);
91 91
 typedef int (*trelease_f)(struct sip_msg*);
92 92
 typedef int (*tlookup_callid_f)(struct cell **, str, str);
93
+typedef int (*tset_fr_f)(struct sip_msg*, unsigned int, unsigned int);
93 94
 
94 95
 int t_is_local(struct sip_msg*);
95 96
 int t_get_trans_ident(struct sip_msg* p_msg, unsigned int* hash_index, unsigned int* label);
... ...
@@ -139,6 +139,7 @@ int load_tm( struct tm_binds *tmb)
139 139
 	tmb->t_append_branches = t_append_branches;
140 140
 	tmb->t_load_contacts = t_load_contacts;
141 141
 	tmb->t_next_contacts = t_next_contacts;
142
+	tmb->set_fr = t_set_fr;
142 143
 	return 1;
143 144
 }
144 145
 
... ...
@@ -126,6 +126,7 @@ struct tm_binds {
126 126
 	t_append_branches_f	t_append_branches;
127 127
 	cmd_function	t_load_contacts;
128 128
 	cmd_function	t_next_contacts;
129
+	tset_fr_f set_fr;
129 130
 };
130 131
 
131 132
 typedef struct tm_binds tm_api_t;