[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 1/2] Add opt_set_bool function
From: |
M. Mohan Kumar |
Subject: |
Re: [Qemu-devel] [PATCH 1/2] Add opt_set_bool function |
Date: |
Fri, 14 Oct 2011 09:54:38 +0530 |
User-agent: |
KMail/1.13.7 (Linux/2.6.40.3-0.fc15.x86_64; KDE/4.6.5; x86_64; ; ) |
Andreas,
I will repost the patch with boolean type change.
--
Regards,
M. Mohan Kumar
On Wednesday, October 12, 2011 09:47:48 PM Andreas Färber wrote:
> Am 12.10.2011 09:53, schrieb M. Mohan Kumar:
> > In addition to qemu_opt_set function, we need a function to set bool
> > value also.
> >
> > Signed-off-by: M. Mohan Kumar<address@hidden>
> > ---
> >
> > qemu-option.c | 35 +++++++++++++++++++++++++++++++++++
> > qemu-option.h | 1 +
> > 2 files changed, 36 insertions(+), 0 deletions(-)
> >
> > diff --git a/qemu-option.c b/qemu-option.c
> > index 105d760..d6bc908 100644
> > --- a/qemu-option.c
> > +++ b/qemu-option.c
> > @@ -636,6 +636,41 @@ int qemu_opt_set(QemuOpts *opts, const char *name,
> > const char *value)
> >
> > return 0;
> >
> > }
> >
> > +int qemu_opt_set_bool(QemuOpts *opts, const char *name, int val)
>
> Might it make sense to let qemu_opt_{get,set}_bool() use bool type?
>
> Andreas