LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
stream_create_factory() specifications

Signature

stream_status_t stream_create_factory(
    stream_factory_t **out,
    const stream_factory_cfg_t *cfg,
    const stream_env_t *env);

Purpose

Create a stream_factory_t handle from factory configuration and injected runtime dependencies.

Invalid arguments

  • out must not be NULL.
  • cfg must not be NULL.
  • env must not be NULL.
  • env->mem must not be NULL.
  • env->mem->calloc must not be NULL.
  • env->mem->free must not be NULL.

Success

Failure

  • Returns STREAM_STATUS_INVALID for invalid arguments.
  • Leaves *out unchanged if out is not NULL.

Notes