S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_config_loader.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
20#ifndef SOPC_CONFIG_LOADER_H_
21#define SOPC_CONFIG_LOADER_H_
22
23#include <stdio.h>
24
25#include "sopc_user_app_itf.h"
26
27/* Parse the XML configuration file (both client and server configurations if present)
28 *
29 * \param fd Path to XML file compliant with s2opc_clientserver_config.xsd schema
30 * \param[out] config Server and Client configurations structure to be filled
31 *
32 * \return true if the parsing succeeded, false otherwise
33 * */
34bool SOPC_Config_Parse(FILE* fd, SOPC_S2OPC_Config* config);
35
36/* Parse the Server XML configuration file (server configuration only, client configuration will be ignored)
37 *
38 * \param fd Path to XML file compliant with s2opc_clientserver_config.xsd schema
39 * \param[out] serverConfig Server configuration structure to be filled
40 *
41 * \return true if the parsing succeeded, false otherwise
42 * */
43bool SOPC_ConfigServer_Parse(FILE* fd, SOPC_Server_Config* serverConfig);
44
45/* Parse the Client XML configuration file (client configuration only, server configuration will be ignored)
46 *
47 * \param fd Path to XML file compliant with s2opc_clientserver_config.xsd schema
48 * \param[out] clientConfig Client configuration structure to be filled
49 *
50 * \return true if the parsing succeeded, false otherwise
51 * */
52bool SOPC_ConfigClient_Parse(FILE* fd, SOPC_Client_Config* clientConfig);
53
54#endif /* SOPC_CONFIG_LOADER_H_ */
bool SOPC_Config_Parse(FILE *fd, SOPC_S2OPC_Config *config)
bool SOPC_ConfigServer_Parse(FILE *fd, SOPC_Server_Config *serverConfig)
bool SOPC_ConfigClient_Parse(FILE *fd, SOPC_Client_Config *clientConfig)
Contains the types to be used by the user application to use the Toolkit.
OPC UA client configuration structure.
Definition sopc_user_app_itf.h:259
S2OPC configuration.
Definition sopc_user_app_itf.h:372
OPC UA server configuration structure.
Definition sopc_user_app_itf.h:325