qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 3/9] qmisc: Introduce qobject_from_va()


From: Luiz Capitulino
Subject: Re: [Qemu-devel] [PATCH 3/9] qmisc: Introduce qobject_from_va()
Date: Wed, 14 Oct 2009 10:40:06 -0300

On Tue, 13 Oct 2009 23:52:18 +0200
Markus Armbruster <address@hidden> wrote:

> Luiz Capitulino <address@hidden> writes:
> 
> > It will be used by the (to be introduced) QError module.
> >
> > Signed-off-by: Luiz Capitulino <address@hidden>
> > ---
> >  qmisc.c |   44 +++++++++++++++++++++++++++++++-------------
> >  qmisc.h |    2 ++
> >  2 files changed, 33 insertions(+), 13 deletions(-)
> >
> > diff --git a/qmisc.c b/qmisc.c
> > index 42b6f22..2bca278 100644
> > --- a/qmisc.c
> > +++ b/qmisc.c
> > @@ -172,6 +172,36 @@ static QObject *build_qobject(const char **fmt, 
> > va_list *args)
> >  }
> >  
> >  /**
> > + * qobject_from_va(): Create a QObject from the specified va_list
> > + *
> > + * Same as qobject_from_fmt(), but with a va_list argument.
> > + */
> > +QObject *qobject_from_va(const char *format, va_list va)
> > +{
> > +    va_list lva;
> > +    QObject *obj;
> > +    const char *fmt = format;
> > +
> > +    va_copy(lva, va);
> 
> 
> Why copy?  Just curious...

 Because I'm using va_arg(), not sure if matters though.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]