Browse Source

- make nr_branches accessible

Jan Janak 20 years ago
parent
commit
87962c1a10
2 changed files with 4 additions and 1 deletions
  1. 1 1
      dset.c
  2. 3 0
      dset.h

+ 1 - 1
dset.c

@@ -68,7 +68,7 @@ struct branch
 static struct branch branches[MAX_BRANCHES - 1];
 
 /* how many of them we have */
-static unsigned int nr_branches = 0;
+unsigned int nr_branches = 0;
 
 /* branch iterator */
 static int branch_iterator = 0;

+ 3 - 0
dset.h

@@ -32,6 +32,9 @@
 
 struct sip_msg;
 
+extern unsigned int nr_branches;
+
+
 /* 
  * Add a new branch to current transaction 
  */