diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-07-04 22:01:22 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-07-04 22:01:22 +0000 |
commit | af5c56797852c055de9bb261c87298e3c8f4cde7 (patch) | |
tree | 3eebcc6f6880c361029dc99d4e30617ba233bd86 /plugins/mgcp | |
parent | 67cadc1ced991c3d1dfac517a10a6e613e30fce9 (diff) |
Some minor changes to allow the mgcp plugin to be compiled
into a static binary if desired.
svn path=/trunk/; revision=3651
Diffstat (limited to 'plugins/mgcp')
-rw-r--r-- | plugins/mgcp/packet-mgcp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c index acd96aef13..6a011ce9ca 100644 --- a/plugins/mgcp/packet-mgcp.c +++ b/plugins/mgcp/packet-mgcp.c @@ -2,7 +2,7 @@ * Routines for mgcp packet disassembly * RFC 2705 * - * $Id: packet-mgcp.c,v 1.22 2001/06/18 02:18:27 guy Exp $ + * $Id: packet-mgcp.c,v 1.23 2001/07/04 22:01:22 hagbard Exp $ * * Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu> * @@ -58,7 +58,7 @@ G_MODULE_EXPORT const gchar version[] = VERSION; #define TCP_PORT_MGCP_CALLAGENT 2727 #define UDP_PORT_MGCP_CALLAGENT 2727 -static void proto_reg_handoff_mgcp(void); +void proto_reg_handoff_mgcp(void); /* Define the mgcp proto */ @@ -557,11 +557,16 @@ proto_register_mgcp(void) } /* The registration hand-off routine */ -static void +void proto_reg_handoff_mgcp(void) { static int mgcp_prefs_initialized = FALSE; + /* + * Get a handle for the SDP dissector. + */ + sdp_handle = find_dissector("sdp"); + if (mgcp_prefs_initialized) { dissector_delete("tcp.port", gateway_tcp_port, dissect_mgcp); dissector_delete("udp.port", gateway_udp_port, dissect_mgcp); @@ -1245,11 +1250,6 @@ static gint tvb_find_dot_line(tvbuff_t* tvb, gint offset, G_MODULE_EXPORT void plugin_reg_handoff(void){ proto_reg_handoff_mgcp(); - - /* - * Get a handle for the SDP dissector. - */ - sdp_handle = find_dissector("sdp"); } G_MODULE_EXPORT void |