open62541 1.3.12
Open source implementation of OPC UA
Loading...
Searching...
No Matches
ua_services.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2014-2017 (c) Fraunhofer IOSB (Author: Julius Pfrommer)
6 * Copyright 2014-2017 (c) Florian Palm
7 * Copyright 2015 (c) Sten GrĂ¼ner
8 * Copyright 2014 (c) LEvertz
9 * Copyright 2015 (c) Chris Iatrou
10 * Copyright 2015 (c) Christian Fimmers
11 * Copyright 2015-2016 (c) Oleksiy Vasylyev
12 * Copyright 2017 (c) Stefan Profanter, fortiss GmbH
13 */
14
15#ifndef UA_SERVICES_H_
16#define UA_SERVICES_H_
17
18#include <open62541/server.h>
19
20#include "ua_session.h"
21
23
24
25
26typedef void (*UA_Service)(UA_Server*, UA_Session*,
27 const void *request, void *response);
28
30 const void *request, void *response);
31
32
34 const UA_FindServersRequest *request,
35 UA_FindServersResponse *response);
36
37
39 const UA_GetEndpointsRequest *request,
40 UA_GetEndpointsResponse *response);
41
42#ifdef UA_ENABLE_DISCOVERY
43
44# ifdef UA_ENABLE_DISCOVERY_MULTICAST
45
46
47void Service_FindServersOnNetwork(UA_Server *server, UA_Session *session,
48 const UA_FindServersOnNetworkRequest *request,
49 UA_FindServersOnNetworkResponse *response);
50
51# endif /* UA_ENABLE_DISCOVERY_MULTICAST */
52
53
55 const UA_RegisterServerRequest *request,
56 UA_RegisterServerResponse *response);
57
58
60 const UA_RegisterServer2Request *request,
61 UA_RegisterServer2Response *response);
62
63#endif /* UA_ENABLE_DISCOVERY */
64
65
67 const UA_OpenSecureChannelRequest *request,
69
70
72
73
75 const UA_CreateSessionRequest *request,
76 UA_CreateSessionResponse *response);
77
78
80 const UA_ActivateSessionRequest *request,
82
83
85 const UA_CloseSessionRequest *request,
86 UA_CloseSessionResponse *response);
87
88
89/** Not Implemented */
90
91
92void Service_AddNodes(UA_Server *server, UA_Session *session,
93 const UA_AddNodesRequest *request,
94 UA_AddNodesResponse *response);
95
96
98 const UA_AddReferencesRequest *request,
99 UA_AddReferencesResponse *response);
100
101
103 const UA_DeleteNodesRequest *request,
104 UA_DeleteNodesResponse *response);
105
106
108 const UA_DeleteReferencesRequest *request,
110
111
112void Service_Browse(UA_Server *server, UA_Session *session,
113 const UA_BrowseRequest *request,
114 UA_BrowseResponse *response);
115
116
118 const UA_BrowseNextRequest *request,
119 UA_BrowseNextResponse *response);
120
121
125
126
128 const UA_RegisterNodesRequest *request,
129 UA_RegisterNodesResponse *response);
130
131
133 const UA_UnregisterNodesRequest *request,
135
136
137/** Not Implemented */
138
139
140/** Not Impelemented */
141
142
143void Service_Read(UA_Server *server, UA_Session *session,
144 const UA_ReadRequest *request,
145 UA_ReadResponse *response);
146
147
148void Service_Write(UA_Server *server, UA_Session *session,
149 const UA_WriteRequest *request,
150 UA_WriteResponse *response);
151
152
153#ifdef UA_ENABLE_HISTORIZING
155 const UA_HistoryReadRequest *request,
156 UA_HistoryReadResponse *response);
157
158
159void
161 const UA_HistoryUpdateRequest *request,
162 UA_HistoryUpdateResponse *response);
163#endif
164
165
166#ifdef UA_ENABLE_METHODCALLS
167void Service_Call(UA_Server *server, UA_Session *session,
168 const UA_CallRequest *request,
169 UA_CallResponse *response);
170
171# if UA_MULTITHREADING >= 100
172void Service_CallAsync(UA_Server *server, UA_Session *session, UA_UInt32 requestId,
173 const UA_CallRequest *request, UA_CallResponse *response,
174 UA_Boolean *finished);
175#endif
176#endif
177
178#ifdef UA_ENABLE_SUBSCRIPTIONS
179
180
182 const UA_CreateMonitoredItemsRequest *request,
184
185
187 const UA_DeleteMonitoredItemsRequest *request,
189
190
192 const UA_ModifyMonitoredItemsRequest *request,
194
195
197 const UA_SetMonitoringModeRequest *request,
199
200
202 const UA_SetTriggeringRequest *request,
203 UA_SetTriggeringResponse *response);
204
205
207 const UA_CreateSubscriptionRequest *request,
209
210
212 const UA_ModifySubscriptionRequest *request,
214
215
217 const UA_SetPublishingModeRequest *request,
219
220
223 const UA_PublishRequest *request, UA_UInt32 requestId);
224
225
227 const UA_RepublishRequest *request,
228 UA_RepublishResponse *response);
229
230
232 const UA_DeleteSubscriptionsRequest *request,
234
235
237 const UA_TransferSubscriptionsRequest *request,
239
240#endif /* UA_ENABLE_SUBSCRIPTIONS */
241
243
244#endif /* UA_SERVICES_H_ */
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:89
#define _UA_END_DECLS
Definition config.h:96
_UA_BEGIN_DECLS typedef bool UA_Boolean
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Definition types.h:26
uint32_t UA_UInt32
Definition types.h:56
uint32_t UA_StatusCode
Definition types.h:77
void Service_RegisterServer2(UA_Server *server, UA_Session *session, const UA_RegisterServer2Request *request, UA_RegisterServer2Response *response)
void Service_DeleteReferences(UA_Server *server, UA_Session *session, const UA_DeleteReferencesRequest *request, UA_DeleteReferencesResponse *response)
void Service_CreateSubscription(UA_Server *server, UA_Session *session, const UA_CreateSubscriptionRequest *request, UA_CreateSubscriptionResponse *response)
void Service_RegisterServer(UA_Server *server, UA_Session *session, const UA_RegisterServerRequest *request, UA_RegisterServerResponse *response)
void Service_HistoryRead(UA_Server *server, UA_Session *session, const UA_HistoryReadRequest *request, UA_HistoryReadResponse *response)
void Service_GetEndpoints(UA_Server *server, UA_Session *session, const UA_GetEndpointsRequest *request, UA_GetEndpointsResponse *response)
void Service_HistoryUpdate(UA_Server *server, UA_Session *session, const UA_HistoryUpdateRequest *request, UA_HistoryUpdateResponse *response)
void Service_DeleteNodes(UA_Server *server, UA_Session *session, const UA_DeleteNodesRequest *request, UA_DeleteNodesResponse *response)
_UA_BEGIN_DECLS typedef void(* UA_Service)(UA_Server *, UA_Session *, const void *request, void *response)
This Source Code Form is subject to the terms of the Mozilla Public License, v.
Definition ua_services.h:26
void Service_SetPublishingMode(UA_Server *server, UA_Session *session, const UA_SetPublishingModeRequest *request, UA_SetPublishingModeResponse *response)
void Service_Browse(UA_Server *server, UA_Session *session, const UA_BrowseRequest *request, UA_BrowseResponse *response)
void Service_ModifySubscription(UA_Server *server, UA_Session *session, const UA_ModifySubscriptionRequest *request, UA_ModifySubscriptionResponse *response)
void Service_Write(UA_Server *server, UA_Session *session, const UA_WriteRequest *request, UA_WriteResponse *response)
void Service_DeleteSubscriptions(UA_Server *server, UA_Session *session, const UA_DeleteSubscriptionsRequest *request, UA_DeleteSubscriptionsResponse *response)
void Service_CloseSecureChannel(UA_Server *server, UA_SecureChannel *channel)
void Service_SetMonitoringMode(UA_Server *server, UA_Session *session, const UA_SetMonitoringModeRequest *request, UA_SetMonitoringModeResponse *response)
void Service_RegisterNodes(UA_Server *server, UA_Session *session, const UA_RegisterNodesRequest *request, UA_RegisterNodesResponse *response)
void Service_AddReferences(UA_Server *server, UA_Session *session, const UA_AddReferencesRequest *request, UA_AddReferencesResponse *response)
void Service_Call(UA_Server *server, UA_Session *session, const UA_CallRequest *request, UA_CallResponse *response)
void Service_BrowseNext(UA_Server *server, UA_Session *session, const UA_BrowseNextRequest *request, UA_BrowseNextResponse *response)
void Service_ModifyMonitoredItems(UA_Server *server, UA_Session *session, const UA_ModifyMonitoredItemsRequest *request, UA_ModifyMonitoredItemsResponse *response)
void Service_DeleteMonitoredItems(UA_Server *server, UA_Session *session, const UA_DeleteMonitoredItemsRequest *request, UA_DeleteMonitoredItemsResponse *response)
void Service_CreateMonitoredItems(UA_Server *server, UA_Session *session, const UA_CreateMonitoredItemsRequest *request, UA_CreateMonitoredItemsResponse *response)
void Service_UnregisterNodes(UA_Server *server, UA_Session *session, const UA_UnregisterNodesRequest *request, UA_UnregisterNodesResponse *response)
void Service_TranslateBrowsePathsToNodeIds(UA_Server *server, UA_Session *session, const UA_TranslateBrowsePathsToNodeIdsRequest *request, UA_TranslateBrowsePathsToNodeIdsResponse *response)
void Service_OpenSecureChannel(UA_Server *server, UA_SecureChannel *channel, const UA_OpenSecureChannelRequest *request, UA_OpenSecureChannelResponse *response)
UA_StatusCode Service_Publish(UA_Server *server, UA_Session *session, const UA_PublishRequest *request, UA_UInt32 requestId)
void Service_AddNodes(UA_Server *server, UA_Session *session, const UA_AddNodesRequest *request, UA_AddNodesResponse *response)
Not Implemented.
void Service_FindServers(UA_Server *server, UA_Session *session, const UA_FindServersRequest *request, UA_FindServersResponse *response)
void Service_TransferSubscriptions(UA_Server *server, UA_Session *session, const UA_TransferSubscriptionsRequest *request, UA_TransferSubscriptionsResponse *response)
void Service_Republish(UA_Server *server, UA_Session *session, const UA_RepublishRequest *request, UA_RepublishResponse *response)
void(* UA_ChannelService)(UA_Server *, UA_SecureChannel *, const void *request, void *response)
Definition ua_services.h:29
void Service_SetTriggering(UA_Server *server, UA_Session *session, const UA_SetTriggeringRequest *request, UA_SetTriggeringResponse *response)
void Service_CloseSession(UA_Server *server, UA_SecureChannel *channel, const UA_CloseSessionRequest *request, UA_CloseSessionResponse *response)
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, const UA_ActivateSessionRequest *request, UA_ActivateSessionResponse *response)
void Service_Read(UA_Server *server, UA_Session *session, const UA_ReadRequest *request, UA_ReadResponse *response)
Not Implemented.