path: root/include/libnftnl/gen.h
diff options
authorPablo Neira Ayuso <>2016-12-20 13:47:11 +0100
committerPablo Neira Ayuso <>2016-12-20 14:17:22 +0100
commit907a9f8e5a93f5bcd449643eb3916a656d634758 (patch)
treec195cc88bf73709d206a14c42902e3aa8555985f /include/libnftnl/gen.h
parent15615aa6ce1573da874f9795be8f66fbf886e638 (diff)
src: get rid of aliases and compat
This machinery was introduced to avoid sudden compilation breakage of old nftables releases. With the upcoming release of 0.7 (and 0.6 which is now 6 months old) this is not required anymore. Moreover, users gain nothing from older releases since they are half-boiled and buggy. So let's get rid of aliases now. Bump LIBVERSION and update map file. Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/libnftnl/gen.h')
1 files changed, 0 insertions, 36 deletions
diff --git a/include/libnftnl/gen.h b/include/libnftnl/gen.h
index 31705a0..b55bded 100644
--- a/include/libnftnl/gen.h
+++ b/include/libnftnl/gen.h
@@ -44,42 +44,6 @@ int nftnl_gen_fprintf(FILE *fp, const struct nftnl_gen *gen, uint32_t type, uint
#define nftnl_gen_nlmsg_build_hdr nftnl_nlmsg_build_hdr
int nftnl_gen_nlmsg_parse(const struct nlmsghdr *nlh, struct nftnl_gen *gen);
- * Compat
- */
-struct nft_gen;
-struct nft_gen *nft_gen_alloc(void);
-void nft_gen_free(struct nft_gen *);
-enum {
- NFT_GEN_ID = 0,
-#define NFT_GEN_MAX (__NFT_GEN_MAX - 1)
-bool nft_gen_attr_is_set(const struct nft_gen *gen, uint16_t attr);
-void nft_gen_attr_unset(struct nft_gen *gen, uint16_t attr);
-void nft_gen_attr_set(struct nft_gen *gen, uint16_t attr, const void *data);
-void nft_gen_attr_set_data(struct nft_gen *gen, uint16_t attr,
- const void *data, uint32_t data_len);
-const void *nft_gen_attr_get(struct nft_gen *gen, uint16_t attr);
-const void *nft_gen_attr_get_data(struct nft_gen *gen, uint16_t attr,
- uint32_t *data_len);
-void nft_gen_attr_set_u32(struct nft_gen *gen, uint16_t attr, uint32_t data);
-uint32_t nft_gen_attr_get_u32(struct nft_gen *gen, uint16_t attr);
-struct nlmsghdr;
-int nft_gen_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_gen *gen);
-int nft_gen_snprintf(char *buf, size_t size, struct nft_gen *gen, uint32_t type, uint32_t flags);
-int nft_gen_fprintf(FILE *fp, struct nft_gen *gen, uint32_t type, uint32_t flags);
-#define nft_gen_nlmsg_build_hdr nft_nlmsg_build_hdr
-int nft_gen_nlmsg_parse(const struct nlmsghdr *nlh, struct nft_gen *gen);
#ifdef __cplusplus
} /* extern "C" */