Forráskód Böngészése

core: wrapper to return branch iterator position

Daniel-Constantin Mierla 16 éve
szülő
commit
764bac17b0
2 módosított fájl, 8 hozzáadás és 0 törlés
  1. 4 0
      dset.c
  2. 4 0
      dset.h

+ 4 - 0
dset.c

@@ -155,6 +155,10 @@ void init_branch_iterator(void)
 	branch_iterator = 0;
 }
 
+int get_branch_iterator(void)
+{
+	return branch_iterator;
+}
 
 /*
  * Return the next branch from the dset

+ 4 - 0
dset.h

@@ -53,6 +53,10 @@ int km_append_branch(struct sip_msg* msg, str* uri, str* dst_uri, str* path,
  */
 void init_branch_iterator(void);
 
+/* 
+ * Return branch iterator position 
+ */
+int get_branch_iterator(void);
 
 /*
  * Get the next branch in the current transaction