mirror of
https://github.com/apache/nuttx.git
synced 2026-06-12 22:24:12 +08:00
audio: Return audio_lowerhalf_s pointer instead error code in audio_comp_initialize
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
dd70d29d4e
commit
f3d20abe07
@@ -65,14 +65,15 @@ extern "C"
|
||||
* ... - The list of the lower half audio driver.
|
||||
*
|
||||
* Returned Value:
|
||||
* Zero on success; a negated errno value on failure.
|
||||
* struct audio_lowerhalf_s* on success; NULL on failure.
|
||||
*
|
||||
* Note
|
||||
* The variable argument list must be NULL terminated.
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int audio_comp_initialize(FAR const char *name, ...);
|
||||
FAR struct audio_lowerhalf_s *audio_comp_initialize(FAR const char *name,
|
||||
...);
|
||||
|
||||
#undef EXTERN
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user