S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_filesystem.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
26#ifndef SOPC_FILESYSTEM_H_
27#define SOPC_FILESYSTEM_H_
28
29#include <stdio.h>
30#include <stdlib.h>
31#include "sopc_array.h"
32
42
51
59
61
74
87
103
113FILE* SOPC_FileSystem_fmemopen(void* buf, size_t size, const char* opentype);
114
115#endif // SOPC_FILESYSTEM_H_
A generic array implementation.
struct _SOPC_Array SOPC_Array
Definition sopc_array.h:31
SOPC_FileSystem_RemoveResult
Definition sopc_filesystem.h:44
@ SOPC_FileSystem_Remove_Error_PathInvalid
Definition sopc_filesystem.h:47
@ SOPC_FileSystem_Remove_Error_PathNotEmpty
Definition sopc_filesystem.h:46
@ SOPC_FileSystem_Remove_Error_UnknownIssue
Definition sopc_filesystem.h:49
@ SOPC_FileSystem_Remove_Error_PathPermisionDenied
Definition sopc_filesystem.h:48
@ SOPC_FileSystem_Remove_OK
Definition sopc_filesystem.h:45
struct SOPC_FileSystem_Dir SOPC_FileSystem_Dir
Definition sopc_filesystem.h:60
SOPC_FileSystem_GetDirResult
Definition sopc_filesystem.h:53
@ SOPC_FileSystem_GetDir_OK
Definition sopc_filesystem.h:54
@ SOPC_FileSystem_GetDir_Error_UnknownIssue
Definition sopc_filesystem.h:57
@ SOPC_FileSystem_GetDir_Error_PathInvalid
Definition sopc_filesystem.h:56
@ SOPC_FileSystem_GetDir_Error_InvalidParameters
Definition sopc_filesystem.h:55
SOPC_FileSystem_CreationResult
Definition sopc_filesystem.h:34
@ SOPC_FileSystem_Creation_Error_PathPrefixInvalid
Definition sopc_filesystem.h:37
@ SOPC_FileSystem_Creation_Error_PathResolutionIssue
Definition sopc_filesystem.h:38
@ SOPC_FileSystem_Creation_OK
Definition sopc_filesystem.h:35
@ SOPC_FileSystem_Creation_Error_PathAlreadyExists
Definition sopc_filesystem.h:36
@ SOPC_FileSystem_Creation_Error_UnknownIssue
Definition sopc_filesystem.h:40
@ SOPC_FileSystem_Creation_Error_PathPermisionDenied
Definition sopc_filesystem.h:39
SOPC_FileSystem_CreationResult SOPC_FileSystem_mkdir(const char *directoryPath)
Request to create a directory with the given path in the file system. Only the last item of the path ...
SOPC_FileSystem_RemoveResult SOPC_FileSystem_rmdir(const char *directoryPath)
Request to delete a directory with the given path in the file system. Only empty directory can be del...
FILE * SOPC_FileSystem_fmemopen(void *buf, size_t size, const char *opentype)
Simulates a file open using an memory buffer rather than an actual file. refer to "fmemopen" linux ma...
SOPC_FileSystem_GetDirResult SOPC_FileSystem_GetDirFilePaths(const char *directoryPath, SOPC_Array **ppFilePaths)
Request to list all the file paths of a directory with the given path in the file system.