From d0d564ed1fba00cc3b2fdf4d646f080b2790b76a Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Tue, 5 May 2020 20:12:46 +0200 Subject: src: add rule_stmt_append() and use it This helper function adds a statement at the end of the rule statement list and it updates the rule statement counter. Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/rule.h b/include/rule.h index 5311b563..1a4ec3d8 100644 --- a/include/rule.h +++ b/include/rule.h @@ -280,6 +280,7 @@ extern void rule_print(const struct rule *rule, struct output_ctx *octx); extern struct rule *rule_lookup(const struct chain *chain, uint64_t handle); extern struct rule *rule_lookup_by_index(const struct chain *chain, uint64_t index); +void rule_stmt_append(struct rule *rule, struct stmt *stmt); void rule_stmt_insert_at(struct rule *rule, struct stmt *nstmt, struct stmt *stmt); -- cgit v1.2.3