Adapter installation contracts for the stream port.
More...
#include "stream/borrowers/stream_types.h"#include "stream/adapters/stream_key_type.h"#include "osal/mem/osal_mem_ops.h"

Go to the source code of this file.
Data Structures | |
| struct | stream_adapter_desc_t |
| Public descriptor used to register a concrete stream adapter. More... | |
Typedefs | |
| typedef void(* | ud_dtor_fn_t) (const void *ud, const osal_mem_ops_t *mem) |
| Destructor for adapter-owned constructor user data. | |
| typedef stream_status_t(* | stream_ctor_fn_t) (const void *ud, const void *args, stream_t **out) |
| Adapter constructor contract used by stream factory services. | |
| typedef struct stream_adapter_desc_t | stream_adapter_desc_t |
| Public descriptor used to register a concrete stream adapter. | |
This header exposes the public descriptor and constructor contracts used to register concrete stream adapters into Composition Root factory services.
Definition in file stream_install.h.
| typedef struct stream_adapter_desc_t stream_adapter_desc_t |
A stream_adapter_desc_t binds:
This descriptor is typically prepared by an adapter-facing CR helper and then registered into a stream_factory_t.
| typedef stream_status_t(* stream_ctor_fn_t) (const void *ud, const void *args, stream_t **out) |
| [in] | ud | Opaque adapter-owned constructor context. |
| [in] | args | Adapter-specific creation arguments. |
| [out] | out | Receives the created stream handle. |
stream_status_t describing the construction result.Concrete stream adapters must implement this constructor signature so they can be registered through public stream_adapter_desc_t descriptors and later invoked by factory-based creation services.
Definition at line 63 of file stream_install.h.
| typedef void(* ud_dtor_fn_t) (const void *ud, const osal_mem_ops_t *mem) |
| [in] | ud | Opaque adapter-owned user data to destroy. |
| [in] | mem | Memory operations to use for destruction. |
This callback is used by factory-side services when they own adapter registration data and must release descriptor-bound user data during teardown.
Definition at line 41 of file stream_install.h.