Pārlūkot izejas kodu

core: dset - small helper function to get nr of branches

Daniel-Constantin Mierla 10 mēneši atpakaļ
vecāks
revīzija
0df8c17549
2 mainītis faili ar 10 papildinājumiem un 0 dzēšanām
  1. 8 0
      src/core/dset.c
  2. 2 0
      src/core/dset.h

+ 8 - 0
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

+ 2 - 0
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
  */