diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-09-10 21:40:21 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2012-09-10 21:40:21 +0000 |
commit | 5a8783f5b12e017967ce178bac3d1826630dea1a (patch) | |
tree | 72bd010e8f647ea2c4fbd0b8ace91952758f595e /epan/dissectors/packet-image-png.c | |
parent | f764eabb6725bf82f4f45ae12faa1f54860cf090 (diff) |
Initial commit to support yet another method of passing data between dissectors.
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL
svn path=/trunk/; revision=44860
Diffstat (limited to 'epan/dissectors/packet-image-png.c')
-rw-r--r-- | epan/dissectors/packet-image-png.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-image-png.c b/epan/dissectors/packet-image-png.c index ccf7dd4363..9626ab01fd 100644 --- a/epan/dissectors/packet-image-png.c +++ b/epan/dissectors/packet-image-png.c @@ -219,7 +219,7 @@ static const true_false_string png_chunk_stc = { static gint -dissect_png(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree) +dissect_png(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data _U_) { proto_tree *tree = NULL; proto_item *ti; @@ -426,9 +426,9 @@ proto_register_png(void) new_register_dissector("png", dissect_png, proto_png); } -static gboolean dissect_png_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) +static gboolean dissect_png_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_) { - return dissect_png(tvb, pinfo, tree) > 0; + return dissect_png(tvb, pinfo, tree, NULL) > 0; } void |