|
@@ -10,7 +10,7 @@
|
|
|
#include "opcua.h"
|
|
|
#include "ua_application.h"
|
|
|
#include "ua_transport_binary_secure.h"
|
|
|
-
|
|
|
+#include "ua_stack_session.h"
|
|
|
/**
|
|
|
* @defgroup services Services
|
|
|
*
|
|
@@ -34,7 +34,7 @@
|
|
|
* the configuration information required to establish a SecureChannel and a
|
|
|
* Session.
|
|
|
*/
|
|
|
-UA_Int32 Service_GetEndpoints(const UA_GetEndpointsRequest* request, UA_GetEndpointsResponse *response);
|
|
|
+UA_Int32 Service_GetEndpoints(UA_Session session, const UA_GetEndpointsRequest* request, UA_GetEndpointsResponse *response);
|
|
|
// Service_RegisterServer
|
|
|
/** @} */
|
|
|
|
|
@@ -58,7 +58,7 @@ UA_Int32 Service_OpenSecureChannel(SL_secureChannel channel,const UA_OpenSecureC
|
|
|
/**
|
|
|
* @brief This Service is used to terminate a SecureChannel.
|
|
|
*/
|
|
|
-UA_Int32 Service_CloseSecureChannel(const UA_CloseSecureChannelRequest *request, UA_CloseSecureChannelResponse *response);
|
|
|
+UA_Int32 Service_CloseSecureChannel(UA_Session session, const UA_CloseSecureChannelRequest *request, UA_CloseSecureChannelResponse *response);
|
|
|
/** @} */
|
|
|
|
|
|
/**
|
|
@@ -77,7 +77,7 @@ UA_Int32 Service_CloseSecureChannel(const UA_CloseSecureChannelRequest *request,
|
|
|
* logs and in the Server’s address space. The second is the authenticationToken
|
|
|
* which is used to associate an incoming request with a Session.
|
|
|
*/
|
|
|
-UA_Int32 Service_CreateSession(const UA_CreateSessionRequest *request, UA_CreateSessionResponse *response);
|
|
|
+UA_Int32 Service_CreateSession(UA_Session session, const UA_CreateSessionRequest *request, UA_CreateSessionResponse *response);
|
|
|
|
|
|
/**
|
|
|
* @brief This Service is used by the Client to submit its SoftwareCertificates
|
|
@@ -86,12 +86,12 @@ UA_Int32 Service_CreateSession(const UA_CreateSessionRequest *request, UA_Create
|
|
|
* Client before it issues any other Service request after CreateSession.
|
|
|
* Failure to do so shall cause the Server to close the Session.
|
|
|
*/
|
|
|
-UA_Int32 Service_ActivateSession(const UA_ActivateSessionRequest *request, UA_ActivateSessionResponse *response);
|
|
|
+UA_Int32 Service_ActivateSession(UA_Session session, const UA_ActivateSessionRequest *request, UA_ActivateSessionResponse *response);
|
|
|
|
|
|
/**
|
|
|
* @brief This Service is used to terminate a Session.
|
|
|
*/
|
|
|
-UA_Int32 Service_CloseSession(const UA_CloseSessionRequest *request, UA_CloseSessionResponse *response);
|
|
|
+UA_Int32 Service_CloseSession(UA_Session session, const UA_CloseSessionRequest *request, UA_CloseSessionResponse *response);
|
|
|
// Service_Cancel
|
|
|
/** @} */
|
|
|
|
|
@@ -108,7 +108,7 @@ UA_Int32 Service_CloseSession(const UA_CloseSessionRequest *request, UA_CloseSes
|
|
|
/**
|
|
|
* @brief This Service is used to add one or more Nodes into the AddressSpace hierarchy.
|
|
|
*/
|
|
|
-UA_Int32 Service_AddNodes( const UA_AddNodesRequest *request, UA_AddNodesResponse *response);
|
|
|
+UA_Int32 Service_AddNodes(UA_Session session, const UA_AddNodesRequest *request, UA_AddNodesResponse *response);
|
|
|
// Service_AddReferences
|
|
|
// Service_DeleteNodes
|
|
|
// Service_DeleteReferences
|
|
@@ -128,12 +128,12 @@ UA_Int32 Service_AddNodes( const UA_AddNodesRequest *request, UA_AddNodesRespons
|
|
|
* The browse can be further limited by the use of a View. This Browse Service
|
|
|
* also supports a primitive filtering capability.
|
|
|
*/
|
|
|
-UA_Int32 Service_Browse( const UA_BrowseRequest *request, UA_BrowseResponse *response);
|
|
|
+UA_Int32 Service_Browse(UA_Session session, const UA_BrowseRequest *request, UA_BrowseResponse *response);
|
|
|
|
|
|
/**
|
|
|
* @brief This Service is used to translate textual node paths to their respective ids.
|
|
|
*/
|
|
|
-UA_Int32 Service_TranslateBrowsePathsToNodeIds( const UA_TranslateBrowsePathsToNodeIdsRequest *request, UA_TranslateBrowsePathsToNodeIdsResponse *response);
|
|
|
+UA_Int32 Service_TranslateBrowsePathsToNodeIds(UA_Session session, const UA_TranslateBrowsePathsToNodeIdsRequest *request, UA_TranslateBrowsePathsToNodeIdsResponse *response);
|
|
|
// Service_BrowseNext
|
|
|
// Service_TranslateBrowsePathsToNodeIds
|
|
|
// Service_RegisterNodes
|
|
@@ -176,7 +176,7 @@ UA_Int32 Service_TranslateBrowsePathsToNodeIds( const UA_TranslateBrowsePathsToN
|
|
|
* values as a composite, to read individual elements or to read ranges of
|
|
|
* elements of the composite.
|
|
|
*/
|
|
|
-UA_Int32 Service_Read(const UA_ReadRequest *request, UA_ReadResponse *response);
|
|
|
+UA_Int32 Service_Read(UA_Session session, const UA_ReadRequest *request, UA_ReadResponse *response);
|
|
|
// Service_HistoryRead
|
|
|
// Service_Write
|
|
|
// Service_HistoryUpdate
|
|
@@ -210,7 +210,7 @@ a component of an Object.
|
|
|
* triggered item links to be deleted, but has no effect on the MonitoredItems
|
|
|
* referenced by the triggered items.
|
|
|
*/
|
|
|
-UA_Int32 Service_CreateMonitoredItems(const UA_CreateMonitoredItemsRequest *request, UA_CreateMonitoredItemsResponse *response);
|
|
|
+UA_Int32 Service_CreateMonitoredItems(UA_Session session, const UA_CreateMonitoredItemsRequest *request, UA_CreateMonitoredItemsResponse *response);
|
|
|
// Service_ModifyMonitoredItems
|
|
|
// Service_SetMonitoringMode
|
|
|
// Service_SetTriggering
|