diff options
author | Hannes Mezger <hannes.mezger@ascolab.com> | 2014-06-12 17:36:32 +0200 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-06-17 17:25:16 +0000 |
commit | 7067e3a34006cc15b5d050e9dd564ced0cb1bd9b (patch) | |
tree | 3ecf61932ce0bf0caff98213922c6ad5edcb3f01 /plugins/opcua/opcua_simpletypes.h | |
parent | 8c0d3ae47e35f6692b91ab776919391f52700829 (diff) |
Create and register subtree identifiers for all opcua array types
Currently for all arrays, the generic ett_opcua_array is used, instead we want to be more selective for storing the expanded state of subtrees. This commit adds subtree identifiers for all array types.
Change-Id: Idcec51a200d1109cdb557d3366021d3b066b453d
Reviewed-on: https://code.wireshark.org/review/2176
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'plugins/opcua/opcua_simpletypes.h')
-rw-r--r-- | plugins/opcua/opcua_simpletypes.h | 33 |
1 files changed, 30 insertions, 3 deletions
diff --git a/plugins/opcua/opcua_simpletypes.h b/plugins/opcua/opcua_simpletypes.h index 0c3cc45446..2ff583a78f 100644 --- a/plugins/opcua/opcua_simpletypes.h +++ b/plugins/opcua/opcua_simpletypes.h @@ -21,6 +21,33 @@ ******************************************************************************/ #include "opcua_identifiers.h" +/* 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; + /* simple types */ proto_item* parseBoolean(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex); proto_item* parseByte(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int hfIndex); @@ -48,9 +75,9 @@ void parseQualifiedName(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const ch void parseDataValue(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName); void parseVariant(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName); void parseExpandedNodeId(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName); -void parseArraySimple(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName, const char *szTypeName, int hfIndex, fctSimpleTypeParser pParserFunction); -void parseArrayEnum(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName, const char *szTypeName, fctEnumParser pParserFunction); -void parseArrayComplex(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName, const char *szTypeName, fctComplexTypeParser pParserFunction); +void parseArraySimple(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName, const char *szTypeName, int hfIndex, fctSimpleTypeParser pParserFunction, const gint idx); +void parseArrayEnum(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName, const char *szTypeName, fctEnumParser pParserFunction, const gint idx); +void parseArrayComplex(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, const char *szFieldName, const char *szTypeName, fctComplexTypeParser pParserFunction, const gint idx); void registerSimpleTypes(int proto); guint32 getExtensionObjectType(tvbuff_t *tvb, gint *pOffset); |