LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_install.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_INSTALL_H
16#define LEXLEO_STREAM_INSTALL_H
17
20
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
41typedef void (*ud_dtor_fn_t)(const void *ud, const osal_mem_ops_t *mem);
42
64 const void *ud,
65 const void *args,
66 stream_t **out);
67
116
117#ifdef __cplusplus
118}
119#endif
120
121#endif // LEXLEO_STREAM_INSTALL_H
stream_status_t(* stream_ctor_fn_t)(const void *ud, const void *args, stream_t **out)
Adapter constructor contract used by stream factory services.
void(* ud_dtor_fn_t)(const void *ud, const osal_mem_ops_t *mem)
Destructor for adapter-owned constructor user data.
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.
Public descriptor used to register a concrete stream adapter.
stream_key_t key
Public key used to identify the adapter.
const void * ud
Optional opaque user data bound to the constructor.
ud_dtor_fn_t ud_dtor
Optional destructor for ud.
stream_ctor_fn_t ctor
Adapter constructor used to create a stream_t.
Private handle structure for a stream_t.