summaryrefslogtreecommitdiffstats
path: root/include/common.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-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