diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-11-21 23:16:26 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-11-21 23:16:26 +0000 |
commit | 8743a4a8a7613095d833e380744a358b7074b0c8 (patch) | |
tree | fdf1228846948ec5e1c08b7b50f1d81d1f379ffc /epan/packet_info.h | |
parent | bd90493d46399161487bb21997af3e6450c5425d (diff) | |
download | wireshark-8743a4a8a7613095d833e380744a358b7074b0c8.tar.gz wireshark-8743a4a8a7613095d833e380744a358b7074b0c8.tar.bz2 wireshark-8743a4a8a7613095d833e380744a358b7074b0c8.zip |
Remove the global packet_info called "pi". Dissectors now only
access their own "pinfo". A packet_info is stored in epan_dissect_t,
which is created for the dissection of a single packet.
GUI functions which need to access the packet_info of the currently
selected packet used to use "pi"; now they use cfile.edt->pi. cfile's
"edt" member is the epan_dissect_t of the currently-selected packet.
The functionality of blank_packetinfo() was moved into
dissect_packet(), as that's the only place that called blank_packetinfo(),
after a spurious call to blank_packetinfo() was removed from
packet_list_select_cb().
svn path=/trunk/; revision=4246
Diffstat (limited to 'epan/packet_info.h')
-rw-r--r-- | epan/packet_info.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/packet_info.h b/epan/packet_info.h index c91cb9dc57..9bc939c9f3 100644 --- a/epan/packet_info.h +++ b/epan/packet_info.h @@ -1,7 +1,7 @@ /* packet_info.h * Definitions for packet info structures and routines * - * $Id: packet_info.h,v 1.10 2001/11/20 22:29:07 guy Exp $ + * $Id: packet_info.h,v 1.11 2001/11/21 23:16:23 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -115,8 +115,4 @@ typedef struct _packet_info { void *private_data; /* pointer to data passed from one dissector to another */ } packet_info; -void blank_packetinfo(void); - -extern packet_info pi; - #endif /* __PACKET_INFO_H__ */ |