summaryrefslogtreecommitdiffstats
path: root/include/libnftables/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/libnftables/common.h')
-rw-r--r--include/libnftables/common.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/libnftables/common.h b/include/libnftables/common.h
index 9cd92b2..1ef88ba 100644
--- a/include/libnftables/common.h
+++ b/include/libnftables/common.h
@@ -1,6 +1,12 @@
#ifndef _LIBNFTABLES_COMMON_H_
#define _LIBNFTABLES_COMMON_H_
+enum {
+ NFT_PARSE_EBADINPUT = 0,
+ NFT_PARSE_EMISSINGNODE,
+ NFT_PARSE_EBADTYPE,
+};
+
enum nft_output_type {
NFT_OUTPUT_DEFAULT = 0,
NFT_OUTPUT_XML,
@@ -14,7 +20,12 @@ enum nft_parse_type {
NFT_PARSE_MAX,
};
+struct nft_parse_err;
+
struct nlmsghdr *nft_nlmsg_build_hdr(char *buf, uint16_t cmd, uint16_t family,
uint16_t type, uint32_t seq);
+struct nft_parse_err *nft_parse_err_alloc(void);
+void nft_parse_err_free(struct nft_parse_err *);
+int nft_parse_perror(const char *str, struct nft_parse_err *err);
#endif