diff options
author | Phil Sutter <phil@nwl.cc> | 2017-10-23 17:33:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-10-24 15:23:52 +0200 |
commit | 49900d448ac95ecabd038a9936d467d6e37aacec (patch) | |
tree | 9094e69039de82336c70e466e60f21daf0a8972f /include/nftables.h | |
parent | d4210b372ac78c8e85ecc6e2317b76daafba15c9 (diff) |
libnftables: Move library stuff out of main.c
This creates src/libnftables.c and include/nftables/nftables.h which
will become the central elements of libnftables.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/nftables.h')
-rw-r--r-- | include/nftables.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/include/nftables.h b/include/nftables.h index 01d72a87..eb39dbd1 100644 --- a/include/nftables.h +++ b/include/nftables.h @@ -4,23 +4,7 @@ #include <stdbool.h> #include <stdarg.h> #include <utils.h> - -enum numeric_level { - NUMERIC_NONE, - NUMERIC_ADDR, - NUMERIC_PORT, - NUMERIC_ALL, -}; - -enum debug_level { - DEBUG_SCANNER = 0x1, - DEBUG_PARSER = 0x2, - DEBUG_EVALUATION = 0x4, - DEBUG_NETLINK = 0x8, - DEBUG_MNL = 0x10, - DEBUG_PROTO_CTX = 0x20, - DEBUG_SEGTREE = 0x40, -}; +#include <nftables/nftables.h> #define INCLUDE_PATHS_MAX 16 @@ -53,15 +37,6 @@ struct nft_ctx { uint32_t flags; }; -#define NFT_CTX_DEFAULT 0 - -enum nftables_exit_codes { - NFT_EXIT_SUCCESS = 0, - NFT_EXIT_FAILURE = 1, - NFT_EXIT_NOMEM = 2, - NFT_EXIT_NONL = 3, -}; - struct input_descriptor; struct location { const struct input_descriptor *indesc; |