stream_status_t stream_factory_create_stream(
const stream_factory_t *f,
stream_key_t key,
const void *args,
stream_t **out);
Create a stream_t handle from a registered factory adapter key and adapter-specific creation arguments.
f must point to a valid factory instance previously created by stream_create_factory().key must point to a registered adapter key in f.args must point to a valid argument object for the adapter selected by key.f must not be NULL.key must not be NULL.key must not be empty.args must not be NULL.out must not be NULL.STREAM_STATUS_OK.key.stream_t handle in *out.stream_destroy().STREAM_STATUS_INVALID for invalid arguments.STREAM_STATUS_NOT_FOUND if key is not registered in the factory.*out unchanged if out is not NULL.stream_factory_create_stream() delegates stream creation to the constructor stored in the descriptor registered under key.args beyond non-NULL are adapter-specific.fs_stream, may impose additional validation rules on the object designated by args.