mirror of
https://github.com/open62541/open62541.git
synced 2025-06-03 04:00:21 +00:00

After some commits on the master branch compilation for macos was not working. This PR restores macos to a building state. Co-authored-by: Jón Bjarni Bjarnason <jon@centroid.is>
32 lines
853 B
C
32 lines
853 B
C
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* Copyright 2024 (c) Fraunhofer IOSB (Author: Noel Graf)
|
|
*/
|
|
|
|
#ifndef UA_FILESTORE_COMMON_H_
|
|
#define UA_FILESTORE_COMMON_H_
|
|
|
|
#include <open62541/util.h>
|
|
|
|
#ifdef UA_ENABLE_ENCRYPTION
|
|
|
|
#if defined(__linux__) || defined(UA_ARCHITECTURE_WIN32) || defined(__APPLE__)
|
|
|
|
#include "../../arch/posix/eventloop_posix.h"
|
|
|
|
UA_StatusCode
|
|
readFileToByteString(const char *const path,
|
|
UA_ByteString *data);
|
|
|
|
UA_StatusCode
|
|
writeByteStringToFile(const char *const path,
|
|
const UA_ByteString *data);
|
|
|
|
#endif /* __linux__ || UA_ARCHITECTURE_WIN32 */
|
|
|
|
#endif /* UA_ENABLE_ENCRYPTION */
|
|
|
|
#endif /* UA_FILESTORE_COMMON_H_ */
|