Ver código fonte

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

Daniel-Constantin Mierla 10 meses atrás
pai
commit
0df8c17549
2 arquivos alterados com 10 adições e 0 exclusões
  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;
 	return 0;
 }
 }
 
 
+/**
+ *
+ */
+unsigned int get_nr_branches(void)
+{
+	return nr_branches;
+}
+
 /*! \brief
 /*! \brief
  * Return pointer to branch[idx] structure
  * Return pointer to branch[idx] structure
  * @param idx - branch index
  * @param idx - branch index

+ 2 - 0
src/core/dset.h

@@ -98,6 +98,8 @@ typedef struct branch_data
 	int otcpid;
 	int otcpid;
 } branch_data_t;
 } branch_data_t;
 
 
+unsigned int get_nr_branches(void);
+
 /*! \brief
 /*! \brief
  * Return pointer to branch[idx] structure
  * Return pointer to branch[idx] structure
  */
  */