summaryrefslogtreecommitdiff
path: root/asn1/h248
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2013-12-17 22:07:32 +0000
committerAnders Broman <anders.broman@ericsson.com>2013-12-17 22:07:32 +0000
commite6d09c163454627e8caedc8b58836f9071073c6e (patch)
treef7dd74e1d7000bdf1fcc3730f894157f53b7c68e /asn1/h248
parentbe09c39208963340b9e4aad210facbeeeffd2d46 (diff)
downloadwireshark-e6d09c163454627e8caedc8b58836f9071073c6e.tar.gz
Make local functions static. Include *.h when needed.
svn path=/trunk/; revision=54201
Diffstat (limited to 'asn1/h248')
-rw-r--r--asn1/h248/packet-h248-template.c6
-rw-r--r--asn1/h248/packet-h248-template.h1
2 files changed, 5 insertions, 2 deletions
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c
index 7d18842906..253b9fbf7a 100644
--- a/asn1/h248/packet-h248-template.c
+++ b/asn1/h248/packet-h248-template.c
@@ -39,6 +39,8 @@
#define PSNAME "H248"
#define PFNAME "h248"
+void proto_register_h248(void);
+
/* Initialize the protocol and registered fields */
static int proto_h248 = -1;
static int hf_248_magic_num = -1;
@@ -879,7 +881,7 @@ static int dissect_h248_ctx_id(gboolean implicit_tag, packet_info *pinfo, proto_
return offset;
}
-s_h248_package_t *s_find_package_id(guint16 pkgid) {
+static s_h248_package_t *s_find_package_id(guint16 pkgid) {
s_h248_package_t *s_pkg = NULL;
s_pkg = (s_h248_package_t *)g_tree_lookup(packages, GUINT_TO_POINTER((guint32)(pkgid)));
return s_pkg;
@@ -896,7 +898,7 @@ static gint32 comparePkgID(gconstpointer a, gconstpointer b) {
return GPOINTER_TO_UINT(b) - GPOINTER_TO_UINT(a);
}
-gboolean is_pkg_default(guint16 pkgid) {
+static gboolean is_pkg_default(guint16 pkgid) {
s_h248_package_t *s_pkg = NULL;
s_pkg = (s_h248_package_t *)g_tree_lookup(packages, GUINT_TO_POINTER((guint32)(pkgid)));
if(! s_pkg ) return TRUE;
diff --git a/asn1/h248/packet-h248-template.h b/asn1/h248/packet-h248-template.h
index 6833475f3a..96e87f35e0 100644
--- a/asn1/h248/packet-h248-template.h
+++ b/asn1/h248/packet-h248-template.h
@@ -42,6 +42,7 @@ extern void h248_param_ber_octetstring(proto_tree*, tvbuff_t*, packet_info* , in
extern void h248_param_ber_boolean(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* ignored);
extern void external_dissector(proto_tree*, tvbuff_t*, packet_info* , int, h248_curr_info_t*,void* dissector_handle);
extern void h248_param_PkgdName(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u _U_, void* dissector_hdl);
+extern void h248_param_external_dissector(proto_tree* tree, tvbuff_t* tvb, packet_info* pinfo , int hfid _U_, h248_curr_info_t* u _U_, void* dissector_hdl);
typedef enum {
ADD_PKG, /* add package at registration ONLY if no matching package ID */