Export "protocol_t" as an opaque type.
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Nov 2003 23:17:27 +0000 (23:17 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 16 Nov 2003 23:17:27 +0000 (23:17 +0000)
commite1d4ae571f1026d344d9364e16bd6628af6d4bb2
tree564e732958fa7b21a0ce2aaf6f0123b674ea3a71
parente28479bb2dbc17a6547812767e82c24bb6ec1ad2
Export "protocol_t" as an opaque type.

Make "proto_is_protocol_enabled()" and "proto_get_protocol_short_name()"
take a "protocol_t *" as an argument, so they don't have to look up the
"protocol_t" - this will probably speed them up considerably, and
they're called on almost every dissector handoff.

Get rid of a number of "proto_is_protocol_enabled()" calls that aren't
necessary (dissectors called through handles, including those called
through dissector tables, or called as heuristic dissectors, aren't even
called if their protocol isn't enabled).

Change some direct dissector calls to go through handles.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@8979 f5534014-38df-0310-8fa8-9805f1628bb7
42 files changed:
Makefile.am
disabled_protos.c
epan/packet.c
epan/proto.c
epan/proto.h
gtk/dfilter_expr_dlg.c
gtk/help_dlg.c
gtk/proto_dlg.c
packet-alcap.c
packet-ansi_637.c
packet-ansi_683.c
packet-ansi_a.c
packet-ansi_map.c
packet-atalk.c
packet-clnp.c
packet-dcerpc.c
packet-dcerpc.h
packet-dvmrp.c
packet-fcip.c
packet-giop.c
packet-giop.h
packet-gsm_a.c
packet-gsm_sms.c
packet-gssapi.c
packet-gssapi.h
packet-iscsi.c
packet-mrdisc.c
packet-msnip.c
packet-pim.c
packet-ppp.c
packet-rpc.c
packet-rpc.h
packet-smb-browse.c
packet-smb-browse.h
packet-smb-logon.c
packet-smb-logon.h [deleted file]
packet-smb-mailslot.c
packet-smb-pipe.c
packet-snmp.c
packet-tpkt.c
plugins/plugin_api_list.c
prefs.c