aboutsummaryrefslogtreecommitdiffstats
path: root/epan/print.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2019-04-03 14:32:30 -0700
committerAnders Broman <a.broman58@gmail.com>2019-04-04 04:03:38 +0000
commit8d3ac3af866ecc7b847dd5b621d828872fe9ba18 (patch)
tree3fa7aa1a57e1b828f636829f08d1adb9dfb5b395 /epan/print.c
parentbdf26a35f696a1524364945a2c868e57c97d1729 (diff)
epan: Convert our PROTO_ITEM_ macros to inline functions.
Convert our various PROTO_ITEM_ macros to inline functions and document them. Change-Id: I070b15d4f70d2189217a177ee8ba2740be36327c Reviewed-on: https://code.wireshark.org/review/32706 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/print.c')
-rw-r--r--epan/print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/print.c b/epan/print.c
index f381ef5c45..b6e92ce9b9 100644
--- a/epan/print.c
+++ b/epan/print.c
@@ -170,7 +170,7 @@ proto_tree_print_node(proto_node *node, gpointer data)
g_assert(fi);
/* Don't print invisible entries. */
- if (PROTO_ITEM_IS_HIDDEN(node) && (prefs.display_hidden_proto_items == FALSE))
+ if (proto_item_is_hidden(node) && (prefs.display_hidden_proto_items == FALSE))
return;
/* Give up if we've already gotten an error. */
@@ -186,12 +186,12 @@ proto_tree_print_node(proto_node *node, gpointer data)
proto_item_fill_label(fi, label_str);
}
- if (PROTO_ITEM_IS_GENERATED(node))
+ if (proto_item_is_generated(node))
label_ptr = g_strconcat("[", label_ptr, "]", NULL);
pdata->success = print_line(pdata->stream, pdata->level, label_ptr);
- if (PROTO_ITEM_IS_GENERATED(node))
+ if (proto_item_is_generated(node))
g_free(label_ptr);
if (!pdata->success)
@@ -534,7 +534,7 @@ proto_tree_write_node_pdml(proto_node *node, gpointer data)
print_escaped_xml(pdata->fh, label_ptr);
}
- if (PROTO_ITEM_IS_HIDDEN(node) && (prefs.display_hidden_proto_items == FALSE))
+ if (proto_item_is_hidden(node) && (prefs.display_hidden_proto_items == FALSE))
fprintf(pdata->fh, "\" hide=\"yes");
fprintf(pdata->fh, "\" size=\"%d", fi->length);