diff options
author | Patrick McHardy <kaber@trash.net> | 2015-11-15 16:10:45 +0000 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2015-11-15 16:10:45 +0000 |
commit | c552570dc67a56614c1053b9ea2fb27cd6ce106b (patch) | |
tree | 4fca6d4ed25a5abead43ec2890085d8e00b17ac1 /include/rule.h | |
parent | 2f16228172ff3629c09b7d0633e30c125aebc37e (diff) |
rule: move comment out of handle
The comment does not belong to the handle, it belongs to the rule.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'include/rule.h')
-rw-r--r-- | include/rule.h | 4 |
1 files changed, 2 insertions, 2 deletions
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, |