diff options
author | Michael Mann <mmann78@netscape.net> | 2015-12-30 15:28:07 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-01-01 17:36:11 +0000 |
commit | b344107d757466e0768a3ef8927852479e926cf6 (patch) | |
tree | 7e5599b63bd060f710ad37d053d504f448589476 /epan/packet.h | |
parent | b1281c8308a6ea11da91e022a2e7c407ab94c864 (diff) |
Make color filters part of dissection
Color filters can be seen as a function that takes a tree and display
filters as input and a (possibly empty) coloring rule as output.
This coloring rule is then added to the frame tree and used by the GUI
for coloring the packets list.
From an architectural POV, "coloring" is part of the UI component, but
since it influences the tree, it is something for the dissection
component.
Bug: 5703
Bug: 6099
Change-Id: I73d132ec1dca7262bcb1b55c8481ca564c6161d1
Reviewed-on: https://code.wireshark.org/review/12507
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/packet.h')
-rw-r--r-- | epan/packet.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/packet.h b/epan/packet.h index c748caabd4..0bb96da3e2 100644 --- a/epan/packet.h +++ b/epan/packet.h @@ -662,8 +662,18 @@ typedef struct frame_data_s { int file_type_subtype; const gchar *pkt_comment; /**< NULL if not available */ + struct epan_dissect *color_edt; /** Used strictly for "coloring rules" */ + } frame_data_t; +/* Structure passed to the file dissector */ +typedef struct file_data_s +{ + const gchar *pkt_comment; /**< NULL if not available */ + struct epan_dissect *color_edt; /** Used strictly for "coloring rules" */ + +} file_data_t; + /* * Dissectors should never modify the record data. */ |