aboutsummaryrefslogtreecommitdiffstats
path: root/epan/proto.h
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-25 22:15:49 -0500
committerAnders Broman <a.broman58@gmail.com>2015-11-26 08:38:30 +0000
commitbe7bd77d993992c7bfa2aba43abf6cc9b5490cf5 (patch)
treeabe55cc26de89d4c43b3e83cc5fc4a3b0131015c /epan/proto.h
parenta9f5d8503f85704bd6facc2de3f51f5d83f4862c (diff)
Add BMT_NO_FLAGS for proto_tree_add_bitmask_XXX_with_flags.
This prevents some false positives for fix-encoding_args.pl which doesn't like constant values (like 0) passed as the last argument to any proto_tree_add_xxx call. Change-Id: Iab7b09b425bf0d48126533daa0e65490bd7b8890 Reviewed-on: https://code.wireshark.org/review/12167 Reviewed-by: Michael Mann <mmann78@netscape.net> Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/proto.h')
-rw-r--r--epan/proto.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/epan/proto.h b/epan/proto.h
index 6010e6c593..c5e840237a 100644
--- a/epan/proto.h
+++ b/epan/proto.h
@@ -2488,6 +2488,7 @@ proto_tree_add_bitmask_text(proto_tree *tree, tvbuff_t *tvb, const guint offset,
const char *name, const char *fallback,
const gint ett, const int **fields, const guint encoding, const int flags);
+#define BMT_NO_FLAGS 0x00 /**< Don't use any flags */
#define BMT_NO_APPEND 0x01 /**< Don't change the title at all */
#define BMT_NO_INT 0x02 /**< Don't add integral (non-boolean) fields to title */
#define BMT_NO_FALSE 0x04 /**< Don't add booleans unless they're TRUE */