aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-applemidi.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2015-11-15 08:00:10 -0500
committerMichael Mann <mmann78@netscape.net>2015-11-16 03:50:05 +0000
commitbbdd89b973353a0df1d98d884c38f3832670bfea (patch)
tree9b992f923f565af2fcab30902508a191de85ca53 /epan/dissectors/packet-applemidi.c
parent6012ba8f008bfba24fd44ce7a2a3055572453dce (diff)
create_dissector_handle -> new_create_dissector_handle
Picking off "easy" dissectors that only have one or two exit points at most. Change-Id: Ie514f126352e7598acc4f7c38db9c61d105d5e48 Reviewed-on: https://code.wireshark.org/review/11850 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-applemidi.c')
-rw-r--r--epan/dissectors/packet-applemidi.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-applemidi.c b/epan/dissectors/packet-applemidi.c
index 3086318a98..145b3452f3 100644
--- a/epan/dissectors/packet-applemidi.c
+++ b/epan/dissectors/packet-applemidi.c
@@ -265,14 +265,16 @@ test_applemidi(tvbuff_t *tvb, guint16 *command_p, gboolean conversation_establis
/* dissect_applemidi() is called when a packet is seen from a previously identified applemidi conversation */
/* If the packet isn't a valid applemidi packet, assume it's an RTP-MIDI packet. */
-static void
-dissect_applemidi( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree ) {
+static int
+dissect_applemidi( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ ) {
guint16 command;
if ( test_applemidi( tvb, &command, TRUE ) )
dissect_applemidi_common( tvb, pinfo, tree, command );
else
call_dissector( rtp_handle, tvb, pinfo, tree );
+
+ return tvb_captured_length(tvb);
}
static gboolean
@@ -516,7 +518,7 @@ void
proto_reg_handoff_applemidi( void ) {
- applemidi_handle = create_dissector_handle( dissect_applemidi, proto_applemidi );
+ applemidi_handle = new_create_dissector_handle( dissect_applemidi, proto_applemidi );
/* If we cannot decode the data it will be RTP-MIDI since the Apple session protocol uses
* two ports: the control-port and the MIDI-port. On both ports an invitation is being sent.