From c552570dc67a56614c1053b9ea2fb27cd6ce106b Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Sun, 15 Nov 2015 16:10:45 +0000 Subject: rule: move comment out of handle The comment does not belong to the handle, it belongs to the rule. Signed-off-by: Patrick McHardy --- include/rule.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/rule.h b/include/rule.h index a86f600b..c848f0fc 100644 --- a/include/rule.h +++ b/include/rule.h @@ -15,7 +15,6 @@ * @handle: rule handle (rules only) * @position: rule position (rules only) * @set_id: set ID (sets only) - * @comment: human-readable comment (rules only) */ struct handle { uint32_t family; @@ -25,7 +24,6 @@ struct handle { uint64_t handle; uint64_t position; uint32_t set_id; - const char *comment; }; extern void handle_merge(struct handle *dst, const struct handle *src); @@ -157,6 +155,7 @@ extern void chain_print_plain(const struct chain *chain); * @location: location the rule was defined at * @stmt: list of statements * @num_stmts: number of statements in stmts list + * @comment: comment */ struct rule { struct list_head list; @@ -164,6 +163,7 @@ struct rule { struct location location; struct list_head stmts; unsigned int num_stmts; + const char *comment; }; extern struct rule *rule_alloc(const struct location *loc, -- cgit v1.2.3