Module: kamailio
Branch: master
Commit: 0df8c175499da7ee13556fe363170a6e6b8853b5
URL:
https://github.com/kamailio/kamailio/commit/0df8c175499da7ee13556fe363170a6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T08:50:53+01:00
core: dset - small helper function to get nr of branches
---
Modified: src/core/dset.c
Modified: src/core/dset.h
---
Diff:
https://github.com/kamailio/kamailio/commit/0df8c175499da7ee13556fe363170a6…
Patch:
https://github.com/kamailio/kamailio/commit/0df8c175499da7ee13556fe363170a6…
---
diff --git a/src/core/dset.c b/src/core/dset.c
index 583ce7667a6..eb99db3a51f 100644
--- a/src/core/dset.c
+++ b/src/core/dset.c
@@ -104,6 +104,14 @@ int init_dst_set(void)
return 0;
}
+/**
+ *
+ */
+unsigned int get_nr_branches(void)
+{
+ return nr_branches;
+}
+
/*! \brief
* Return pointer to branch[idx] structure
* @param idx - branch index
diff --git a/src/core/dset.h b/src/core/dset.h
index 4d3ad247b1a..73f4fe49680 100644
--- a/src/core/dset.h
+++ b/src/core/dset.h
@@ -98,6 +98,8 @@ typedef struct branch_data
int otcpid;
} branch_data_t;
+unsigned int get_nr_branches(void);
+
/*! \brief
* Return pointer to branch[idx] structure
*/