LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
fs_stream_types.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: GPL-3.0-or-later
2 * Copyright (C) 2026 Sylvain Labopin
3 */
4
15#ifndef LEXLEO_FS_STREAM_TYPES_H
16#define LEXLEO_FS_STREAM_TYPES_H
17
19
20#include "osal/file/osal_file_ops.h"
22
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
47
85
91typedef struct fs_stream_args_t {
95 const char *path;
96
100 uint32_t flags;
101
107
108#ifdef __cplusplus
109}
110#endif
111
112#endif // LEXLEO_FS_STREAM_TYPES_H
Public environment type for the stream port.
Arguments provided when creating a file-backed stream.
bool autoclose
Whether the OSAL file must be closed when the stream is destroyed.
const char * path
UTF-8 path of the target file.
uint32_t flags
OSAL file open flags.
Configuration type for the fs_stream adapter.
int reserved
Reserved configuration field.
Injected dependencies for the fs_stream adapter.
osal_file_env_t file_env
Borrowed OSAL file environment.
stream_env_t port_env
Borrowed stream port environment.
const osal_file_ops_t * file_ops
Borrowed OSAL file operations table.
Runtime environment for the stream port.
Definition stream_env.h:35