summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:04:34 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:04:34 +0000
commit371c8a8bca2b6862226bc79c13d143e07c1d8fc3 (patch)
tree06c7dc8826596690422e79d5bde2f46c90492de3 /include/common.h
parentInitial commit. (diff)
downloadlibnftnl-upstream.tar.xz
libnftnl-upstream.zip
Adding upstream version 1.2.6.upstream/1.2.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/common.h')
-rw-r--r--include/common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/common.h b/include/common.h
new file mode 100644
index 0000000..d05a81a
--- /dev/null
+++ b/include/common.h
@@ -0,0 +1,21 @@
+#ifndef _LIBNFTNL_COMMON_INTERNAL_H
+#define _LIBNFTNL_COMMON_INTERNAL_H
+
+#define BASE_DEC 10
+#define BASE_HEX 16
+
+#define NFTNL_SNPRINTF_BUFSIZ 4096
+
+struct nftnl_parse_err {
+ int line;
+ int column;
+ int error;
+ const char *node_name;
+};
+
+enum nftnl_parse_input {
+ NFTNL_PARSE_BUFFER,
+ NFTNL_PARSE_FILE,
+};
+
+#endif