aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-i2c.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-12-14 19:25:31 -0500
committerMichael Mann <mmann78@netscape.net>2015-12-17 04:01:56 +0000
commitf342fdcdb83d960bd59ab7e42237c18f9282adcc (patch)
tree81c59810cd548e154d3c1fd95998b3ed0148db4e /epan/dissectors/packet-i2c.c
parent8cb03d57a600bc092fd5670f37fb990784fffd96 (diff)
Create capture dissector "info" structure (capture_packet_info_t)
While it currently only contains packet_counts, it will hopefully stabilize the capture function signature if more fields are added. Change-Id: I003552c58043c7c2d67aec458187b12b233057e2 Reviewed-on: https://code.wireshark.org/review/12690 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/dissectors/packet-i2c.c')
-rw-r--r--epan/dissectors/packet-i2c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-i2c.c b/epan/dissectors/packet-i2c.c
index f62eee079a..78a1525298 100644
--- a/epan/dissectors/packet-i2c.c
+++ b/epan/dissectors/packet-i2c.c
@@ -85,12 +85,12 @@ static gpointer i2c_value(packet_info *pinfo _U_)
}
static gboolean
-capture_i2c(const guchar *pd _U_, int offset _U_, int len _U_, packet_counts *ld, const union wtap_pseudo_header *pseudo_header)
+capture_i2c(const guchar *pd _U_, int offset _U_, int len _U_, capture_packet_info_t *cpinfo, const union wtap_pseudo_header *pseudo_header)
{
if (pseudo_header->i2c.is_event) {
- ld->i2c_event++;
+ cpinfo->counts->i2c_event++;
} else {
- ld->i2c_data++;
+ cpinfo->counts->i2c_data++;
}
return TRUE;