Browse code

core: wrapper to return branch iterator position

Daniel-Constantin Mierla authored on 28/04/2009 18:38:09
Showing 2 changed files
... ...
@@ -155,6 +155,10 @@ void init_branch_iterator(void)
155 155
 	branch_iterator = 0;
156 156
 }
157 157
 
158
+int get_branch_iterator(void)
159
+{
160
+	return branch_iterator;
161
+}
158 162
 
159 163
 /*
160 164
  * Return the next branch from the dset
... ...
@@ -53,6 +53,10 @@ int km_append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
53 53
  */
54 54
 void init_branch_iterator(void);
55 55
 
56
+/* 
57
+ * Return branch iterator position 
58
+ */
59
+int get_branch_iterator(void);
56 60
 
57 61
 /*
58 62
  * Get the next branch in the current transaction