123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343 |
- #ifndef UA_SERVICES_H_
- #define UA_SERVICES_H_
- #ifdef __cplusplus
- extern "C" {
- #endif
- #include "ua_server.h"
- #include "ua_session.h"
- #include "ua_nodes.h"
- typedef void (*UA_Service)(UA_Server*, UA_Session*, const void*, void*);
- void Service_FindServers(UA_Server *server, UA_Session *session,
- const UA_FindServersRequest *request,
- UA_FindServersResponse *response);
- void Service_GetEndpoints(UA_Server *server, UA_Session *session,
- const UA_GetEndpointsRequest *request,
- UA_GetEndpointsResponse *response);
- void Service_OpenSecureChannel(UA_Server *server, UA_Connection *connection,
- const UA_OpenSecureChannelRequest *request,
- UA_OpenSecureChannelResponse *response);
- void Service_CloseSecureChannel(UA_Server *server, UA_SecureChannel *channel);
- void Service_CreateSession(UA_Server *server, UA_SecureChannel *channel,
- const UA_CreateSessionRequest *request,
- UA_CreateSessionResponse *response);
- void Service_ActivateSession(UA_Server *server, UA_SecureChannel *channel,
- UA_Session *session,
- const UA_ActivateSessionRequest *request,
- UA_ActivateSessionResponse *response);
- void Service_CloseSession(UA_Server *server, UA_Session *session,
- const UA_CloseSessionRequest *request,
- UA_CloseSessionResponse *response);
- void Service_AddNodes(UA_Server *server, UA_Session *session,
- const UA_AddNodesRequest *request,
- UA_AddNodesResponse *response);
- void
- Service_AddNodes_existing(UA_Server *server, UA_Session *session, UA_Node *node,
- const UA_NodeId *parentNodeId,
- const UA_NodeId *referenceTypeId,
- const UA_NodeId *typeDefinition,
- UA_InstantiationCallback *instantiationCallback,
- UA_AddNodesResult *result);
- void Service_AddReferences(UA_Server *server, UA_Session *session,
- const UA_AddReferencesRequest *request,
- UA_AddReferencesResponse *response);
- UA_StatusCode Service_AddReferences_single(UA_Server *server,
- UA_Session *session,
- const UA_AddReferencesItem *item);
- void Service_DeleteNodes(UA_Server *server, UA_Session *session,
- const UA_DeleteNodesRequest *request,
- UA_DeleteNodesResponse *response);
- UA_StatusCode Service_DeleteNodes_single(UA_Server *server, UA_Session *session,
- const UA_NodeId *nodeId,
- UA_Boolean deleteReferences);
- void Service_DeleteReferences(UA_Server *server, UA_Session *session,
- const UA_DeleteReferencesRequest *request,
- UA_DeleteReferencesResponse *response);
- UA_StatusCode Service_DeleteReferences_single(UA_Server *server,
- UA_Session *session, const UA_DeleteReferencesItem *item);
- void Service_Browse(UA_Server *server, UA_Session *session,
- const UA_BrowseRequest *request,
- UA_BrowseResponse *response);
- void Service_Browse_single(UA_Server *server, UA_Session *session,
- struct ContinuationPointEntry *cp,
- const UA_BrowseDescription *descr,
- UA_UInt32 maxrefs, UA_BrowseResult *result);
- void Service_BrowseNext(UA_Server *server, UA_Session *session,
- const UA_BrowseNextRequest *request,
- UA_BrowseNextResponse *response);
- void Service_TranslateBrowsePathsToNodeIds(UA_Server *server, UA_Session *session,
- const UA_TranslateBrowsePathsToNodeIdsRequest *request,
- UA_TranslateBrowsePathsToNodeIdsResponse *response);
- void Service_TranslateBrowsePathsToNodeIds_single(UA_Server *server,
- UA_Session *session,
- const UA_BrowsePath *path,
- UA_BrowsePathResult *result);
- void Service_RegisterNodes(UA_Server *server, UA_Session *session,
- const UA_RegisterNodesRequest *request,
- UA_RegisterNodesResponse *response);
- void Service_UnregisterNodes(UA_Server *server, UA_Session *session,
- const UA_UnregisterNodesRequest *request,
- UA_UnregisterNodesResponse *response);
- void Service_Read(UA_Server *server, UA_Session *session,
- const UA_ReadRequest *request,
- UA_ReadResponse *response);
- void Service_Read_single(UA_Server *server, UA_Session *session,
- UA_TimestampsToReturn timestamps,
- const UA_ReadValueId *id, UA_DataValue *v);
- void Service_Write(UA_Server *server, UA_Session *session,
- const UA_WriteRequest *request,
- UA_WriteResponse *response);
- UA_StatusCode Service_Write_single(UA_Server *server, UA_Session *session,
- const UA_WriteValue *wvalue);
- #ifdef UA_ENABLE_METHODCALLS
- void Service_Call(UA_Server *server, UA_Session *session,
- const UA_CallRequest *request,
- UA_CallResponse *response);
- void Service_Call_single(UA_Server *server, UA_Session *session,
- const UA_CallMethodRequest *request,
- UA_CallMethodResult *result);
- #endif
- #ifdef UA_ENABLE_SUBSCRIPTIONS
- void Service_CreateMonitoredItems(UA_Server *server, UA_Session *session,
- const UA_CreateMonitoredItemsRequest *request,
- UA_CreateMonitoredItemsResponse *response);
- void Service_DeleteMonitoredItems(UA_Server *server, UA_Session *session,
- const UA_DeleteMonitoredItemsRequest *request,
- UA_DeleteMonitoredItemsResponse *response);
- void Service_ModifyMonitoredItems(UA_Server *server, UA_Session *session,
- const UA_ModifyMonitoredItemsRequest *request,
- UA_ModifyMonitoredItemsResponse *response);
- void Service_SetMonitoringMode(UA_Server *server, UA_Session *session,
- const UA_SetMonitoringModeRequest *request,
- UA_SetMonitoringModeResponse *response);
- #endif
- #ifdef UA_ENABLE_SUBSCRIPTIONS
- void Service_CreateSubscription(UA_Server *server, UA_Session *session,
- const UA_CreateSubscriptionRequest *request,
- UA_CreateSubscriptionResponse *response);
- void Service_ModifySubscription(UA_Server *server, UA_Session *session,
- const UA_ModifySubscriptionRequest *request,
- UA_ModifySubscriptionResponse *response);
- void Service_SetPublishingMode(UA_Server *server, UA_Session *session,
- const UA_SetPublishingModeRequest *request,
- UA_SetPublishingModeResponse *response);
- void Service_Publish(UA_Server *server, UA_Session *session,
- const UA_PublishRequest *request, UA_UInt32 requestId);
- void Service_Republish(UA_Server *server, UA_Session *session,
- const UA_RepublishRequest *request,
- UA_RepublishResponse *response);
- void Service_DeleteSubscriptions(UA_Server *server, UA_Session *session,
- const UA_DeleteSubscriptionsRequest *request,
- UA_DeleteSubscriptionsResponse *response);
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif
|