diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:04:34 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-09 13:04:34 +0000 |
commit | 371c8a8bca2b6862226bc79c13d143e07c1d8fc3 (patch) | |
tree | 06c7dc8826596690422e79d5bde2f46c90492de3 /include/common.h | |
parent | Initial commit. (diff) | |
download | libnftnl-371c8a8bca2b6862226bc79c13d143e07c1d8fc3.tar.xz libnftnl-371c8a8bca2b6862226bc79c13d143e07c1d8fc3.zip |
Adding upstream version 1.2.6.upstream/1.2.6upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | include/common.h | 21 |
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 |