mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-30 05:21:55 -06:00
QemuOpts: Convert qemu_opt_foreach() to Error
Retain the function value for now, to permit selective conversion of its callers. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
This commit is contained in:
parent
1640b200d5
commit
71df1d8337
7 changed files with 29 additions and 18 deletions
|
@ -100,8 +100,11 @@ void qemu_opt_set_bool(QemuOpts *opts, const char *name, bool val,
|
|||
Error **errp);
|
||||
void qemu_opt_set_number(QemuOpts *opts, const char *name, int64_t val,
|
||||
Error **errp);
|
||||
typedef int (*qemu_opt_loopfunc)(const char *name, const char *value, void *opaque);
|
||||
int qemu_opt_foreach(QemuOpts *opts, qemu_opt_loopfunc func, void *opaque);
|
||||
typedef int (*qemu_opt_loopfunc)(void *opaque,
|
||||
const char *name, const char *value,
|
||||
Error **errp);
|
||||
int qemu_opt_foreach(QemuOpts *opts, qemu_opt_loopfunc func, void *opaque,
|
||||
Error **errp);
|
||||
|
||||
QemuOpts *qemu_opts_find(QemuOptsList *list, const char *id);
|
||||
QemuOpts *qemu_opts_create(QemuOptsList *list, const char *id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue