1 /******************************************************************************
2 ** Copyright (C) 2006-2007 ascolab GmbH. All Rights Reserved.
3 ** Web: http://www.ascolab.com
4 **
5 ** SPDX-License-Identifier: GPL-2.0-or-later
6 **
7 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
8 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
9 **
10 ** Project: OpcUa Wireshark Plugin
11 **
12 ** Description: Parser type definitions.
13 **
14 ** This file was autogenerated on 6/10/2007 2:35:22 AM.
15 ** DON'T MODIFY THIS FILE!
16 ** XXX - well, except that you may have to.  See the README.
17 **
18 ******************************************************************************/
19 
20 #include <glib.h>
21 #include <epan/packet.h>
22 
23 /* declare service parser function prototype */
24 typedef void (*fctServiceParser)(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset);
25 /* declare enum parser function prototype */
26 typedef void (*fctEnumParser)(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset);
27 /* declare type parser function prototype */
28 typedef void (*fctComplexTypeParser)(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName);
29 /* declare type parser function prototype */
30 typedef proto_item* (*fctSimpleTypeParser)(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex);
31 
32 typedef struct _ParserEntry
33 {
34 	int iRequestId;
35 	fctServiceParser pParser;
36 } ParserEntry;
37 
38 typedef struct _ExtensionObjectParserEntry
39 {
40 	int iRequestId;
41 	fctComplexTypeParser pParser;
42 	const gchar *typeName;
43 } ExtensionObjectParserEntry;
44