diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-22 19:13:44 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-03 10:29:39 +0200 |
| commit | f6061733a96314ccb732efe6c91357d66f8970af (patch) | |
| tree | 5abdb6f35d1cb78f5a46d4b7c79384070a317066 /audio/audio_int.h | |
| parent | aaa6a6f93dc88f9201b9872fa64a565d52628208 (diff) | |
| download | focaccia-qemu-f6061733a96314ccb732efe6c91357d66f8970af.tar.gz focaccia-qemu-f6061733a96314ccb732efe6c91357d66f8970af.zip | |
audio: allow returning an error from the driver init
An error is already printed by audio_driver_init, but we can make it more precise if the driver can return an Error *. Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'audio/audio_int.h')
| -rw-r--r-- | audio/audio_int.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_int.h b/audio/audio_int.h index e57ff50155..06e815de9f 100644 --- a/audio/audio_int.h +++ b/audio/audio_int.h @@ -140,7 +140,7 @@ typedef struct audio_driver audio_driver; struct audio_driver { const char *name; const char *descr; - void *(*init) (Audiodev *); + void *(*init) (Audiodev *, Error **); void (*fini) (void *); #ifdef CONFIG_GIO void (*set_dbus_server) (AudioState *s, GDBusObjectManagerServer *manager, bool p2p); |