Browse Source

adapted "UA_Server_addMethodNodeEx" signatures (header/impl)

Thomas Bender 7 years ago
parent
commit
7859f9f4b3
2 changed files with 11 additions and 12 deletions
  1. 4 6
      include/ua_server.h
  2. 7 6
      src/server/ua_services_nodemanagement.c

+ 4 - 6
include/ua_server.h

@@ -953,12 +953,10 @@ UA_Server_addMethodNodeEx(UA_Server *server, const UA_NodeId requestedNewNodeId,
                           const UA_NodeId referenceTypeId,
                           const UA_QualifiedName browseName,
                           const UA_MethodAttributes attr, UA_MethodCallback method,
-                          size_t inputArgumentsSize,
-                          const UA_Argument *inputArguments,
+                          size_t inputArgumentsSize, const UA_Argument *inputArguments,
                           const UA_NodeId inputArgumentsRequestedNewNodeId,
                           UA_NodeId *inputArgumentsOutNewNodeId,
-                          size_t outputArgumentsSize,
-                          const UA_Argument *outputArguments,
+                          size_t outputArgumentsSize, const UA_Argument *outputArguments,
                           const UA_NodeId outputArgumentsRequestedNewNodeId,
                           UA_NodeId *outputArgumentsOutNewNodeId,
                           void *nodeContext, UA_NodeId *outNewNodeId);
@@ -968,8 +966,8 @@ UA_Server_addMethodNode(UA_Server *server, const UA_NodeId requestedNewNodeId,
                         const UA_NodeId parentNodeId, const UA_NodeId referenceTypeId,
                         const UA_QualifiedName browseName, const UA_MethodAttributes attr,
                         UA_MethodCallback method,
-                        const size_t inputArgumentsSize, const UA_Argument *inputArguments,
-                        const size_t outputArgumentsSize, const UA_Argument *outputArguments,
+                        size_t inputArgumentsSize, const UA_Argument *inputArguments,
+                        size_t outputArgumentsSize, const UA_Argument *outputArguments,
                         void *nodeContext, UA_NodeId *outNewNodeId) {
     return UA_Server_addMethodNodeEx(server, requestedNewNodeId,  parentNodeId,
                                      referenceTypeId, browseName, attr, method,

+ 7 - 6
src/server/ua_services_nodemanagement.c

@@ -1590,16 +1590,17 @@ UA_Server_addMethodNode_finish(UA_Server *server, const UA_NodeId nodeId,
 
 UA_StatusCode
 UA_Server_addMethodNodeEx(UA_Server *server, const UA_NodeId requestedNewNodeId,
-                          const UA_NodeId parentNodeId, const UA_NodeId referenceTypeId,
-                          const UA_QualifiedName browseName, const UA_MethodAttributes attr,
-                          UA_MethodCallback method,
-                          const size_t inputArgumentsSize, const UA_Argument *inputArguments,
+                          const UA_NodeId parentNodeId,
+                          const UA_NodeId referenceTypeId,
+                          const UA_QualifiedName browseName,
+                          const UA_MethodAttributes attr, UA_MethodCallback method,
+                          size_t inputArgumentsSize, const UA_Argument *inputArguments,
                           const UA_NodeId inputArgumentsRequestedNewNodeId,
                           UA_NodeId *inputArgumentsOutNewNodeId,
-                          const size_t outputArgumentsSize, const UA_Argument *outputArguments,
+                          size_t outputArgumentsSize, const UA_Argument *outputArguments,
                           const UA_NodeId outputArgumentsRequestedNewNodeId,
                           UA_NodeId *outputArgumentsOutNewNodeId,
-                        void *nodeContext, UA_NodeId *outNewNodeId) {
+                          void *nodeContext, UA_NodeId *outNewNodeId) {
     UA_AddNodesItem item;
     UA_AddNodesItem_init(&item);
     item.nodeClass = UA_NODECLASS_METHOD;