diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-27 07:13:32 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2001-11-27 07:13:32 +0000 |
commit | f8783ef2faf90cd0a2d4c98608afc70ebd2b58ca (patch) | |
tree | 21d265bf7402a2739905bd87227383ae0a9f78ab /packet-rtcp.h | |
parent | 5f90e47799c83f2e69f021af2622bebadaa37176 (diff) |
Change "conversation_set_dissector()" to take a dissector handle, rather
than a pointer to a dissector function, as an argument.
This means that the conversation dissector is called through
"call_dissector()", so the dissector itself doesn't have to worry about
checking whether the protocol is enabled or setting
"pinfo->current_proto", so get rid of the code that does that in
conversation dissectors. Also, make the conversation dissectors static.
Get rid of some direct calls to dissectors; replace them with calls
through handles, and, again, get rid of code to check whether a protocol
is enabled and set "pinfo->current_proto" where that code isn't needed.
Make those dissectors static if they aren't already static.
Add a routine "create_dissector_handle()" to create a dissector handle
without registering it by name, if the dissector isn't used outside the
module in which it's defined.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4281 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rtcp.h')
-rw-r--r-- | packet-rtcp.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/packet-rtcp.h b/packet-rtcp.h index d9b01e09b5..3c5e35911c 100644 --- a/packet-rtcp.h +++ b/packet-rtcp.h @@ -1,6 +1,6 @@ /* packet-rtcp.h * - * $Id: packet-rtcp.h,v 1.6 2001/09/03 10:33:06 guy Exp $ + * $Id: packet-rtcp.h,v 1.7 2001/11/27 07:13:26 guy Exp $ * * Routines for RTCP dissection * RTCP = Real-time Transport Control Protocol @@ -28,5 +28,4 @@ */ void rtcp_add_address ( packet_info *pinfo, const unsigned char* ip_addr, int prt ); -void dissect_rtcp ( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ); void proto_register_rtcp( void ); |