LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
dynamic_buffer_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
15#ifndef LEXLEO_DYNAMIC_BUFFER_STREAM_CR_API_H
16#define LEXLEO_DYNAMIC_BUFFER_STREAM_CR_API_H
17
19
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
36
48 const osal_mem_ops_t *mem,
49 const stream_env_t *port_env);
50
64 stream_t **out,
67
94 stream_key_t key,
97 const osal_mem_ops_t *mem);
98
114 const void *ud,
115 const void *args,
116 stream_t **out);
117
118#ifdef __cplusplus
119}
120#endif
121
122#endif // LEXLEO_DYNAMIC_BUFFER_STREAM_CR_API_H
stream_status_t dynamic_buffer_stream_create_desc(stream_adapter_desc_t *out, stream_key_t key, const dynamic_buffer_stream_cfg_t *cfg, const dynamic_buffer_stream_env_t *env, const osal_mem_ops_t *mem)
Build a stream adapter descriptor for the dynamic_buffer_stream adapter.
stream_status_t dynamic_buffer_stream_create_stream(stream_t **out, const dynamic_buffer_stream_cfg_t *cfg, const dynamic_buffer_stream_env_t *env)
Create a dynamic_buffer_stream instance directly.
dynamic_buffer_stream_cfg_t dynamic_buffer_stream_default_cfg(void)
Return the default configuration for the dynamic_buffer_stream adapter.
dynamic_buffer_stream_env_t dynamic_buffer_stream_default_env(const osal_mem_ops_t *mem, const stream_env_t *port_env)
Return the default injected environment for the dynamic_buffer_stream adapter.
stream_status_t dynamic_buffer_stream_ctor(const void *ud, const void *args, stream_t **out)
Factory-compatible constructor callback for the dynamic_buffer_stream adapter.
Types used by the dynamic_buffer_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.
Configuration type for the dynamic_buffer_stream adapter.
Injected dependencies for the dynamic_buffer_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.