LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stdio_stream_cr_api.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
20#ifndef LEXLEO_STDIO_STREAM_CR_API_H
21#define LEXLEO_STDIO_STREAM_CR_API_H
22
24
29
31
33
34#ifdef __cplusplus
35extern "C" {
36#endif
37
49
72 const osal_stdio_ops_t *stdio_ops,
73 const osal_mem_ops_t *mem,
74 const stream_env_t *port_env);
75
115 stream_t **out,
116 const stdio_stream_args_t *args,
117 const stdio_stream_cfg_t *cfg,
118 const stdio_stream_env_t *env);
119
145 stream_key_t key,
146 const stdio_stream_cfg_t *cfg,
147 const stdio_stream_env_t *env,
148 const osal_mem_ops_t *mem);
149
169 const void *ud,
170 const void *args,
171 stream_t **out);
172
173#ifdef __cplusplus
174}
175#endif
176
177#endif // LEXLEO_STDIO_STREAM_CR_API_H
stream_status_t stdio_stream_ctor(const void *ud, const void *args, stream_t **out)
Factory-compatible constructor callback for the stdio_stream adapter.
stream_status_t stdio_stream_create_stream(stream_t **out, const stdio_stream_args_t *args, const stdio_stream_cfg_t *cfg, const stdio_stream_env_t *env)
Create a standard-I/O-backed stream instance.
stdio_stream_env_t stdio_stream_default_env(const osal_stdio_ops_t *stdio_ops, const osal_mem_ops_t *mem, const stream_env_t *port_env)
Build a default environment for the stdio_stream adapter.
stdio_stream_cfg_t stdio_stream_default_cfg(void)
Return a default configuration for the stdio_stream adapter.
stream_status_t stdio_stream_create_desc(stream_adapter_desc_t *out, stream_key_t key, const stdio_stream_cfg_t *cfg, const stdio_stream_env_t *env, const osal_mem_ops_t *mem)
Build a stream adapter descriptor for the stdio_stream adapter.
Types used by the stdio_stream Composition Root API.
Adapter-side API for constructing and binding stream_t objects.
Adapter installation contracts for the stream port.
Public key type used to identify stream adapters.
const char * stream_key_t
Public identifier type for a registered stream adapter.
Borrower-visible public types for the stream port.
stream_status_t
Public status codes used by the stream port.
Creation arguments for the stdio_stream adapter.
Configuration type for the stdio_stream adapter.
Injected dependencies for the stdio_stream adapter.
Public descriptor used to register a concrete stream adapter.
Runtime environment for the stream port.
Definition stream_env.h:35
Private handle structure for a stream_t.