S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
libs2opc_server_runtime_variables.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
27#ifndef SOPC_RUNTIME_VARIABLES_H
28#define SOPC_RUNTIME_VARIABLES_H
29
31#include "sopc_types.h"
32#include "sopc_user_app_itf.h"
33
34typedef struct SOPC_Server_RuntimeVariables
35{
36 SOPC_Server_Config* serverConfig;
37 uint32_t secondsTillShutdown;
38 SOPC_LocalizedText shutdownReason;
39 OpcUa_ServerState server_state;
40 SOPC_DateTime startTime;
41 OpcUa_BuildInfo build_info;
42 SOPC_Byte service_level;
43 bool auditing;
44 uint32_t maximum_operations_per_request;
45 uint32_t maximum_heavy_operations_per_request;
46} SOPC_Server_RuntimeVariables;
47
60SOPC_Server_RuntimeVariables SOPC_RuntimeVariables_BuildDefault(SOPC_Toolkit_Build_Info build_info,
61 SOPC_Server_Config* server_config);
62
76SOPC_Server_RuntimeVariables SOPC_RuntimeVariables_Build(OpcUa_BuildInfo* build_info,
77 SOPC_Server_Config* server_config);
78
90OpcUa_WriteRequest* SOPC_RuntimeVariables_BuildWriteRequest(SOPC_Server_RuntimeVariables* vars);
91
102OpcUa_WriteRequest* SOPC_RuntimeVariables_BuildUpdateServerStatusWriteRequest(SOPC_Server_RuntimeVariables* vars);
103
114OpcUa_WriteRequest* SOPC_RuntimeVariables_UpdateCurrentTimeWriteRequest(SOPC_Server_RuntimeVariables* vars);
115
116#endif
uint8_t SOPC_Byte
Definition sopc_builtintypes.h:138
int64_t SOPC_DateTime
OPC UA timestamp format which is 100 nanoseconds from 1601/01/01 00:00:00 UTC.
Definition sopc_builtintypes.h:160
enum _OpcUa_ServerState OpcUa_ServerState
Contains the types to be used by the user application to use the Toolkit.
Definition sopc_builtintypes.h:234
OPC UA server configuration structure.
Definition sopc_user_app_itf.h:325
Toolkit build information.
Definition sopc_user_app_itf.h:485
Definition sopc_types.h:6403
Definition sopc_types.h:5007