Skip to content

Commit

Permalink
lib BUGFIX struct definition is always required
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jun 5, 2024
1 parent ea25739 commit ccf4bbc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
12 changes: 0 additions & 12 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,6 @@ if(NETOPEER2_LIB_TESTS)
* @brief Directory where to put test_files for the tests to work.
*/
#define NP2_TEST_FILE_DIR \"${TEST_MODULE_DIR}\"
")
set(NETOPEER2_TESTS_FUNC "${NETOPEER2_TESTS_FUNC}
/**
* @brief YANG and data files required by tests.
*/
extern struct np2_file {
const char *file;
const char *name;
const char *revision;
const char *data;
int len;
} np2_test_files[];
")

# include declarations of functions that need to be implemented
Expand Down
11 changes: 11 additions & 0 deletions lib/netopeer2.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@

#include <sys/stat.h>

/**
* @brief YANG and data files.
*/
extern struct np2_file {
const char *file;
const char *name;
const char *revision;
const char *data;
int len;
} np2_test_files[];

/**
* @brief Install all YANG modules required by netopeer2-server into sysrepo.
*
Expand Down

0 comments on commit ccf4bbc

Please sign in to comment.