diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2007-05-15 09:05:53 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2007-05-15 09:05:53 +0000 |
commit | 12101aad61d6a14acbc7b1acdfefe6cb386bec55 (patch) | |
tree | 8daa6be9937bfc6fa212a7d64e5a594084a4f2cb /plugins/opcua/opcua_servicetable.c | |
parent | 12abbdb1186e6b208dc967999abfbe46ffe07dab (diff) |
add svn properties for dir and files
svn path=/trunk/; revision=21780
Diffstat (limited to 'plugins/opcua/opcua_servicetable.c')
-rw-r--r-- | plugins/opcua/opcua_servicetable.c | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/plugins/opcua/opcua_servicetable.c b/plugins/opcua/opcua_servicetable.c index 5a44baefbd..8b9180d95f 100644 --- a/plugins/opcua/opcua_servicetable.c +++ b/plugins/opcua/opcua_servicetable.c @@ -1,36 +1,36 @@ -/******************************************************************************
-** $Id$
-**
-** 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: Service table and service dispatcher.
-**
-** This file was autogenerated on 8.5.2007 18:53:26.
-** DON'T MODIFY THIS FILE!
-**
-******************************************************************************/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
-
-#include <gmodule.h>
-#include <epan/packet.h>
-#include "opcua_identifiers.h"
-#include "opcua_serviceparser.h"
-
-ParserEntry g_arParserTable[] = {
+/****************************************************************************** +** $Id$ +** +** 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: Service table and service dispatcher. +** +** This file was autogenerated on 8.5.2007 18:53:26. +** DON'T MODIFY THIS FILE! +** +******************************************************************************/ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#include <gmodule.h> +#include <epan/packet.h> +#include "opcua_identifiers.h" +#include "opcua_serviceparser.h" + +ParserEntry g_arParserTable[] = { { 1358, parseTestStackRequest }, { 1363, parseTestStackResponse }, { 1368, parseTestStackExRequest }, @@ -107,11 +107,11 @@ ParserEntry g_arParserTable[] = { { 2080, parseTransferSubscriptionsResponse }, { 2085, parseDeleteSubscriptionsRequest }, { 2090, parseDeleteSubscriptionsResponse } -
-};
-const int g_NumServices = sizeof(g_arParserTable) / sizeof(ParserEntry);
-
-/** Service type table */
+ +}; +const int g_NumServices = sizeof(g_arParserTable) / sizeof(ParserEntry); + +/** Service type table */ const value_string g_requesttypes[] = { { 1358, "TestStackRequest" }, { 1363, "TestStackResponse" }, @@ -188,22 +188,22 @@ const value_string g_requesttypes[] = { { 2075, "TransferSubscriptionsRequest" }, { 2080, "TransferSubscriptionsResponse" }, { 2085, "DeleteSubscriptionsRequest" }, - { 2090, "DeleteSubscriptionsResponse" },
- { 0, NULL }
-};
-
-/** Dispatch all services to a special parser function. */
-void dispatchService(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int ServiceId)
-{
- int index = 0;
-
- while (index < g_NumServices)
- {
- if (g_arParserTable[index].iRequestId == ServiceId)
- {
- (*g_arParserTable[index].pParser)(tree, tvb, pOffset);
- break;
- }
- index++;
- }
-}
+ { 2090, "DeleteSubscriptionsResponse" }, + { 0, NULL } +}; + +/** Dispatch all services to a special parser function. */ +void dispatchService(proto_tree *tree, tvbuff_t *tvb, gint *pOffset, int ServiceId) +{ + int index = 0; + + while (index < g_NumServices) + { + if (g_arParserTable[index].iRequestId == ServiceId) + { + (*g_arParserTable[index].pParser)(tree, tvb, pOffset); + break; + } + index++; + } +} |