summaryrefslogtreecommitdiff
path: root/plugins/opcua/opcua_simpletypes.h
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-05-14 13:58:54 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-05-14 13:58:54 +0000
commitdd8feca5149d02330925f12ab269f869b4e4c360 (patch)
tree3abc54efcdcee8aaadf040b68ffb36c6b9f1c4f4 /plugins/opcua/opcua_simpletypes.h
parent013332de7f8fe9f4093d83521be8bfcfa7d17e76 (diff)
downloadwireshark-dd8feca5149d02330925f12ab269f869b4e4c360.tar.gz
from Gerhard Gappmeier (ascolab):
new dissector for OPCUA protocol svn path=/trunk/; revision=21760
Diffstat (limited to 'plugins/opcua/opcua_simpletypes.h')
-rw-r--r--plugins/opcua/opcua_simpletypes.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/plugins/opcua/opcua_simpletypes.h b/plugins/opcua/opcua_simpletypes.h
new file mode 100644
index 0000000000..4ad30a017f
--- /dev/null
+++ b/plugins/opcua/opcua_simpletypes.h
@@ -0,0 +1,56 @@
+/******************************************************************************
+** $Id: opcua_simpletypes.h,v 1.1 2007/02/08 11:26:55 gergap Exp $
+**
+** Copyright (C) 2006-2007 ascolab GmbH. All Rights Reserved.
+** Web: http://www.ascolab.com
+**
+** 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 file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+**
+** Project: OpcUa Wireshark Plugin
+**
+** Description: Implementation of OpcUa built-in type parsers.
+** This contains all the simple types and some complex types.
+**
+** Author: Gerhard Gappmeier <gerhard.gappmeier@ascolab.com>
+** Last change by: $Author: gergap $
+**
+******************************************************************************/
+#include "opcua_identifiers.h"
+
+/* simple types */
+void parseBoolean(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseByte(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseSByte(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseUInt16(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseInt16(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseUInt32(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseInt32(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseUInt64(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseInt64(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseString(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseGuid(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseByteString(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseXmlElement(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseFloat(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseDouble(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseDateTime(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+void parseStatusCode(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex);
+/* complex types */
+void parseLocalizedText(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseDiagnosticInfo(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseExtensionObject(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseQualifiedName(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseDataValue(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseVariant(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseExpandedNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName);
+void parseArraySimple(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex, fctSimpleTypeParser pParserFunction);
+void parseArrayEnum(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, fctEnumParser pParserFunction);
+void parseArrayComplex(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, char *szFieldName, fctComplexTypeParser pParserFunction);
+void registerSimpleTypes(int proto);