diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2018-01-15 12:40:55 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2018-01-16 08:51:37 +0000 |
commit | 5352ef42f94b5c14a24eb2e5559440c71fdcae8f (patch) | |
tree | 22901b1d228d76360b22af10021564bcee36390e /plugins/opcua/opcua_simpletypes.h | |
parent | a069a4f856c29b25bae05f2a91d7b2b71e1905f3 (diff) |
plugins: Add source tree subfolder for plugin library
This allows some simplification and makes things more consistent,
particularly for loading plugins from the build dir.
Also fixes the issue reported here:
https://www.wireshark.org/lists/wireshark-dev/201801/msg00061.html
Change-Id: I0d8a000ee679172bccad546a3b0c47a79486f44d
Reviewed-on: https://code.wireshark.org/review/25329
Petri-Dish: João Valverde <j@v6e.pt>
Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'plugins/opcua/opcua_simpletypes.h')
-rw-r--r-- | plugins/opcua/opcua_simpletypes.h | 108 |
1 files changed, 0 insertions, 108 deletions
diff --git a/plugins/opcua/opcua_simpletypes.h b/plugins/opcua/opcua_simpletypes.h deleted file mode 100644 index 982d0e8fcc..0000000000 --- a/plugins/opcua/opcua_simpletypes.h +++ /dev/null @@ -1,108 +0,0 @@ -/****************************************************************************** -** 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> -******************************************************************************/ -#include "opcua_identifiers.h" - -/* simple header fields */ -extern int hf_opcua_returnDiag; -extern int hf_opcua_returnDiag_mask_sl_symbolicId; -extern int hf_opcua_returnDiag_mask_sl_localizedText; -extern int hf_opcua_returnDiag_mask_sl_additionalinfo; -extern int hf_opcua_returnDiag_mask_sl_innerstatuscode; -extern int hf_opcua_returnDiag_mask_sl_innerdiagnostics; -extern int hf_opcua_returnDiag_mask_ol_symbolicId; -extern int hf_opcua_returnDiag_mask_ol_localizedText; -extern int hf_opcua_returnDiag_mask_ol_additionalinfo; -extern int hf_opcua_returnDiag_mask_ol_innerstatuscode; -extern int hf_opcua_returnDiag_mask_ol_innerdiagnostics; -extern int hf_opcua_nodeClassMask; -extern int hf_opcua_nodeClassMask_object; -extern int hf_opcua_nodeClassMask_variable; -extern int hf_opcua_nodeClassMask_method; -extern int hf_opcua_nodeClassMask_objecttype; -extern int hf_opcua_nodeClassMask_variabletype; -extern int hf_opcua_nodeClassMask_referencetype; -extern int hf_opcua_nodeClassMask_datatype; -extern int hf_opcua_nodeClassMask_view; - -/* simple types trees */ -extern gint ett_opcua_array_Boolean; -extern gint ett_opcua_array_SByte; -extern gint ett_opcua_array_Byte; -extern gint ett_opcua_array_Int16; -extern gint ett_opcua_array_UInt16; -extern gint ett_opcua_array_Int32; -extern gint ett_opcua_array_UInt32; -extern gint ett_opcua_array_Int64; -extern gint ett_opcua_array_UInt64; -extern gint ett_opcua_array_Float; -extern gint ett_opcua_array_Double; -extern gint ett_opcua_array_String; -extern gint ett_opcua_array_DateTime; -extern gint ett_opcua_array_Guid; -extern gint ett_opcua_array_ByteString; -extern gint ett_opcua_array_XmlElement; -extern gint ett_opcua_array_NodeId; -extern gint ett_opcua_array_ExpandedNodeId; -extern gint ett_opcua_array_StatusCode; -extern gint ett_opcua_array_DiagnosticInfo; -extern gint ett_opcua_array_QualifiedName; -extern gint ett_opcua_array_LocalizedText; -extern gint ett_opcua_array_ExtensionObject; -extern gint ett_opcua_array_DataValue; -extern gint ett_opcua_array_Variant; -extern gint ett_opcua_returnDiagnostics; - -/* simple types */ -proto_item* parseBoolean(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseByte(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseSByte(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseUInt16(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseInt16(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseUInt32(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseInt32(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseUInt64(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseInt64(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseString(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseGuid(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseByteString(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseXmlElement(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseFloat(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseDouble(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseDateTime(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -proto_item* parseStatusCode(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int hfIndex); -/* complex types */ -void parseLocalizedText(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseNodeId(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseDiagnosticInfo(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseExtensionObject(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseQualifiedName(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseDataValue(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseVariant(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseExpandedNodeId(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName); -void parseArraySimple(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName, const char *szTypeName, int hfIndex, fctSimpleTypeParser pParserFunction, const gint idx); -void parseArrayEnum(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName, const char *szTypeName, fctEnumParser pParserFunction, const gint idx); -void parseArrayComplex(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, const char *szFieldName, const char *szTypeName, fctComplexTypeParser pParserFunction, const gint idx); -void registerSimpleTypes(int proto); -guint32 getExtensionObjectType(tvbuff_t *tvb, gint *pOffset); -void parseNodeClassMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset); -void parseResultMask(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset); - -void dispatchExtensionObjectType(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint *pOffset, int TypeId); - |