LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_io_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_IO_CREATOR_H
16#define LEXLEO_STREAM_IO_CREATOR_H
17
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
37
51typedef struct stream_io_creator_t {
68 const void *ud,
70 stream_t **out);
71
79 void *ud;
81
82#ifdef __cplusplus
83}
84#endif
85
86#endif // LEXLEO_STREAM_IO_CREATOR_H
stream_io_kind_t
Kind of standard I/O stream requested from a stream_io_creator_t.
@ STREAM_IO_OUTPUT
@ STREAM_IO_INPUT
@ STREAM_IO_ERR
Borrower-visible public types for the stream port.
stream_status_t
Public status codes used by the stream port.
Owner-facing creator object for standard I/O-oriented streams.
stream_status_t(* create)(const void *ud, stream_io_kind_t kind, stream_t **out)
Create a standard I/O-oriented stream.
void * ud
Opaque context bound to create.
Private handle structure for a stream_t.