From 6b60dc5be58a5781cacc4e6f238454d5e8421760 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 1 Feb 2016 19:24:38 +0100 Subject: extensions: rename xt_buf to xt_xlate Use a more generic name for this object to prepare the introduction of other translation specific fields. Signed-off-by: Pablo Neira Ayuso --- include/xtables.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/xtables.h b/include/xtables.h index 175ae50b..82aa2bbe 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -205,7 +205,7 @@ enum xtables_ext_flags { XTABLES_EXT_ALIAS = 1 << 0, }; -struct xt_buf; +struct xt_xlate; /* Include file for additions: new matches and targets. */ struct xtables_match @@ -272,7 +272,7 @@ struct xtables_match const struct xt_option_entry *x6_options; /* Translate iptables to nft */ - int (*xlate)(const struct xt_entry_match *match, struct xt_buf *buf, + int (*xlate)(const struct xt_entry_match *match, struct xt_xlate *xl, int numeric); /* Size of per-extension instance extra "global" scratch space */ @@ -353,7 +353,7 @@ struct xtables_target const struct xt_option_entry *x6_options; /* Translate iptables to nft */ - int (*xlate)(const struct xt_entry_target *target, struct xt_buf *buf, + int (*xlate)(const struct xt_entry_target *target, struct xt_xlate *xl, int numeric); size_t udata_size; @@ -569,11 +569,11 @@ extern void xtables_lmap_free(struct xtables_lmap *); extern int xtables_lmap_name2id(const struct xtables_lmap *, const char *); extern const char *xtables_lmap_id2name(const struct xtables_lmap *, int); -/* generic buffer */ -struct xt_buf *xt_buf_alloc(int size); -void xt_buf_free(struct xt_buf *buf); -void xt_buf_add(struct xt_buf *buf, const char *fmt, ...); -const char *xt_buf_get(struct xt_buf *buf); +/* xlate infrastructure */ +struct xt_xlate *xt_xlate_alloc(int size); +void xt_xlate_free(struct xt_xlate *xl); +void xt_xlate_add(struct xt_xlate *xl, const char *fmt, ...); +const char *xt_xlate_get(struct xt_xlate *xl); #ifdef XTABLES_INTERNAL -- cgit v1.2.3