stream_status_t stream_factory_add_adapter(
stream_factory_t *fact,
const stream_adapter_desc_t *desc);
Register a stream adapter descriptor into an existing stream_factory_t instance.
fact must point to a valid factory instance previously created by stream_create_factory().fact must not be NULL.desc must not be NULL.desc->key must not be NULL.desc->key must not be empty.desc->ctor must not be NULL.STREAM_STATUS_OK.desc->key.stream_factory_create_stream() with the registered key can resolve the descriptor.STREAM_STATUS_INVALID for invalid arguments.STREAM_STATUS_ALREADY_EXISTS if the key is already registered.STREAM_STATUS_FULL if the factory registration capacity is exhausted.stream_factory_create_stream().