No code there, yet. Similar to "utils.c", it is a place for various helper functions. But this will be GPL-2.0-or-later licensed, from the start. "utils.c" would be a better name, but that is already taken. The header is not under include/ directory, but placed alongside the source files. That is, because this is internal API to the library. It also should be included with quotes instead of angle brackets. Signed-off-by: Thomas Haller <thaller@xxxxxxxxxx> --- src/Makefile.am | 2 ++ src/nftutils.c | 5 +++++ src/nftutils.h | 5 +++++ 3 files changed, 12 insertions(+) create mode 100644 src/nftutils.c create mode 100644 src/nftutils.h diff --git a/src/Makefile.am b/src/Makefile.am index ace38bd75a97..ad22a918c120 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -64,6 +64,8 @@ libnftables_la_SOURCES = \ segtree.c \ gmputil.c \ utils.c \ + nftutils.c \ + nftutils.h \ erec.c \ mnl.c \ iface.c \ diff --git a/src/nftutils.c b/src/nftutils.c new file mode 100644 index 000000000000..758283d1b650 --- /dev/null +++ b/src/nftutils.c @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +#include <config.h> + +#include "nftutils.h" diff --git a/src/nftutils.h b/src/nftutils.h new file mode 100644 index 000000000000..9ad68d55ce47 --- /dev/null +++ b/src/nftutils.h @@ -0,0 +1,5 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +#ifndef NFTUTILS_H +#define NFTUTILS_H + +#endif /* NFTUTILS_H */ -- 2.41.0