In a source file that defines external functions, the header file that

declares the functions must be included, in order to make sure the
declarations match the function signature.  Make it so - which means
creating the header file in the first place.

svn path=/trunk/; revision=54717
This commit is contained in:
Guy Harris 2014-01-13 20:12:14 +00:00
parent aec280d874
commit 6df963eff0
4 changed files with 47 additions and 4 deletions

View File

@ -1409,6 +1409,7 @@ DISSECTOR_INCLUDES = \
packet-giop.h \
packet-gluster.h \
packet-gmr1_common.h \
packet-gmr1_rr.h \
packet-gnutella.h \
packet-gprscdr.h \
packet-gre.h \

View File

@ -39,6 +39,8 @@
#include "packet-gmr1_common.h"
#include "packet-gmr1_rr.h"
void proto_register_gmr1_common(void);
/* GMR-1 Common proto */
@ -244,10 +246,6 @@ elem_fcn gmr1_ie_common_func[NUM_GMR1_IE_COMMON] = {
/* Messages and IEs parsing */
/* ------------------------------------------------------------------------ */
extern void
gmr1_get_msg_rr_params(guint8 oct, int dcch, const gchar **msg_str,
int *ett_tree, int *hf_idx, gmr1_msg_func_t *msg_func_p);
void
gmr1_get_msg_params(gmr1_pd_e pd, guint8 oct, const gchar **msg_str,
int *ett_tree, int *hf_idx, gmr1_msg_func_t *msg_func_p)

View File

@ -40,6 +40,8 @@
#include "packet-gmr1_common.h"
#include "packet-gsm_sms.h"
#include "packet-gmr1_rr.h"
void proto_register_gmr1_rr(void);
void proto_reg_handoff_gmr1_rr(void);

View File

@ -0,0 +1,42 @@
/* packet-gmr1_rr.h
*
* Exported routines for GMR-1 Radio Resource dissection in wireshark.
* Copyright (c) 2011 Sylvain Munaut <tnt@246tNt.com>
*
* References:
* [1] ETSI TS 101 376-4-8 V1.3.1 - GMR-1 04.008
* [2] ETSI TS 101 376-4-8 V2.2.1 - GMPRS-1 04.008
* [3] ETSI TS 101 376-4-8 V3.1.1 - GMR-1 3G 44.008
* [4] ETSI TS 100 940 V7.21.0 - GSM 04.08
* [5] ETSI TS 101 376-4-12 V3.2.1 - GMR-1 3G 44.060
* [6] ETSI TS 101 376-5-6 V1.3.1 - GMR-1 05.008
*
* $Id$
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __PACKET_GMR1_RR_H__
#define __PACKET_GMR1_RR_H__
extern void
gmr1_get_msg_rr_params(guint8 oct, int dcch, const gchar **msg_str,
int *ett_tree, int *hf_idx, gmr1_msg_func_t *msg_func_p);
#endif /* __PACKET_GMR1_RR_H__ */