Sfoglia il codice sorgente

- make nr_branches accessible

Jan Janak 20 anni fa
parent
commit
87962c1a10
2 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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];
 static struct branch branches[MAX_BRANCHES - 1];
 
 
 /* how many of them we have */
 /* how many of them we have */
-static unsigned int nr_branches = 0;
+unsigned int nr_branches = 0;
 
 
 /* branch iterator */
 /* branch iterator */
 static int branch_iterator = 0;
 static int branch_iterator = 0;

+ 3 - 0
dset.h

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