Remove the global packet_info called "pi". Dissectors now only
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Nov 2001 23:16:26 +0000 (23:16 +0000)
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 21 Nov 2001 23:16:26 +0000 (23:16 +0000)
commit7d2a77c6cd3d4c7f658b70ab7e0367080d25cd10
treefdf1228846948ec5e1c08b7b50f1d81d1f379ffc
parent51ab25da1561ba3387e5d980cfc4501a8ac1fe0b
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().

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4246 f5534014-38df-0310-8fa8-9805f1628bb7
18 files changed:
epan/Makefile.am
epan/Makefile.nmake
epan/column-utils.c
epan/column-utils.h
epan/epan.c
epan/epan.h
epan/packet.c
epan/packet.h
epan/packet_info.c [deleted file]
epan/packet_info.h
file.c
gtk/decode_as_dlg.c
gtk/follow_dlg.c
gtk/main.c
gtk/main.h
gtk/menu.c
packet-socks.c
tethereal.c