[SR-Dev] git:master: core: wrapper to return branch iterator position

Daniel-Constantin Mierla miconda at gmail.com
Tue Apr 28 20:47:45 CEST 2009


Module: sip-router
Branch: master
Commit: 764bac17b074714c651d71654c6e7276a58ca5e4
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=764bac17b074714c651d71654c6e7276a58ca5e4

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Apr 28 20:38:09 2009 +0200

core: wrapper to return branch iterator position

---

 dset.c |    4 ++++
 dset.h |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/dset.c b/dset.c
index 9409557..1770a3c 100644
--- a/dset.c
+++ b/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
diff --git a/dset.h b/dset.h
index adba10e..175e0c3 100644
--- a/dset.h
+++ b/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




More information about the sr-dev mailing list