LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_file_creator.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_STREAM_FILE_CREATOR_H
16#define LEXLEO_STREAM_FILE_CREATOR_H
17
19
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
38typedef struct stream_file_creator_t {
62 const void *ud,
63 const char *path,
64 uint32_t flags,
65 bool autoclose,
66 stream_t **out);
67
75 void *ud;
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif // LEXLEO_STREAM_FILE_CREATOR_H
Borrower-visible public types for the stream port.
stream_status_t
Public status codes used by the stream port.
Owner-facing creator object for file-backed streams.
void * ud
Opaque context bound to create.
stream_status_t(* create)(const void *ud, const char *path, uint32_t flags, bool autoclose, stream_t **out)
Create a file-backed stream.
Private handle structure for a stream_t.