Make all proto_* values static.
[obnox/wireshark/wip.git] / asn1 / h450-ros / packet-h450-ros-template.c
1 /* packet-h450-ros.c
2  * Routines for H.450 packet dissection
3  * 2007  Tomas Kukosa
4  *
5  * $Id$
6  *
7  * Wireshark - Network traffic analyzer
8  * By Gerald Combs <gerald@wireshark.org>
9  * Copyright 1998 Gerald Combs
10  *
11  * This program is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU General Public License
13  * as published by the Free Software Foundation; either version 2
14  * of the License, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License
22  * along with this program; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
24  */
25
26 #ifdef HAVE_CONFIG_H
27 # include "config.h"
28 #endif
29
30 #include <string.h>
31
32 #include <epan/packet.h>
33 #include <epan/strutil.h>
34 #include <epan/asn1.h>
35 #include <epan/expert.h>
36
37 #include "packet-per.h"
38
39 #define PNAME  "H.450 Remote Operations Apdus"
40 #define PSNAME "H450.ROS"
41 #define PFNAME "h450.ros"
42
43 /* Initialize the protocol and registered fields */
44 static int proto_h450_ros = -1;
45 #include "packet-h450-ros-hf.c" 
46
47 /* Initialize the subtree pointers */
48 #include "packet-h450-ros-ett.c" 
49
50 /* Preferences */
51
52 /* Subdissectors */
53 static dissector_handle_t data_handle = NULL; 
54
55 /* Gloabl variables */
56 static gint32 problem_val;
57 static gchar problem_str[64];
58 static tvbuff_t *arg_next_tvb, *res_next_tvb, *err_next_tvb;
59
60 static void
61 argument_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_) {
62   arg_next_tvb = tvb;
63 }
64
65 static void
66 result_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_) {
67   res_next_tvb = tvb;
68 }
69
70 static void
71 error_cb(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree _U_) {
72   err_next_tvb = tvb;
73 }
74
75 #include "packet-h450-ros-fn.c" 
76
77 /*--- proto_register_h450_ros -----------------------------------------------*/
78 void proto_register_h450_ros(void) {
79
80   /* List of fields */
81   static hf_register_info hf[] = {
82 #include "packet-h450-ros-hfarr.c" 
83   };
84
85   /* List of subtrees */
86   static gint *ett[] = {
87 #include "packet-h450-ros-ettarr.c" 
88   };
89
90   /* Register protocol and dissector */
91   proto_h450_ros = proto_register_protocol(PNAME, PSNAME, PFNAME);
92   proto_set_cant_toggle(proto_h450_ros);
93
94   /* Register fields and subtrees */
95   proto_register_field_array(proto_h450_ros, hf, array_length(hf));
96   proto_register_subtree_array(ett, array_length(ett));
97 }
98
99 /*--- proto_reg_handoff_h450_ros --------------------------------------------*/
100 void proto_reg_handoff_h450_ros(void) {
101   data_handle = find_dissector("data");
102 }
103
104 /*---------------------------------------------------------------------------*/