stream_status_t stream_create_factory(
stream_factory_t **out,
const stream_factory_cfg_t *cfg,
const stream_env_t *env);
Create a stream_factory_t handle from factory configuration and injected runtime dependencies.
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.STREAM_STATUS_OK.stream_factory_t handle in *out.stream_destroy_factory().STREAM_STATUS_INVALID for invalid arguments.*out unchanged if out is not NULL.stream_destroy_factory() is the matching destructor for handles created by stream_create_factory().