[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL, 08/36] qapi: Remove qobject_to_X() functions
From: |
Yuval Shaia |
Subject: |
Re: [Qemu-devel] [PULL, 08/36] qapi: Remove qobject_to_X() functions |
Date: |
Fri, 13 Apr 2018 14:33:18 +0300 |
User-agent: |
Mutt/1.9.2 (2017-12-15) |
On Thu, Apr 12, 2018 at 03:52:50PM -0500, Eric Blake wrote:
> On 04/12/2018 12:51 PM, Yuval Shaia wrote:
> > Hi Eric,
> >
> > On Mon, Mar 12, 2018 at 01:35:59PM -0500, Eric Blake wrote:
> >> From: Max Reitz <address@hidden>
> >>
> >> They are no longer needed now.
> >
> > I'm doing some off-list development which use these functions.
> > Unfortunately i'm not subscribed (yet) to qemu-devel so obviously missed
> > this email.
> >
> > Is there any alternative to these functions?
>
> Yes, in the patches right before this one.
>
> >
> > My code looks something like this:
> >
> > QObject *oid;
> > unsigned long id;
> >
> > oid = qlist_pop(list);
> > id = qnum_get_uint(qobject_to_qnum(oid));
> >
>
> id = qnum_get_uint(qobject_to(QNum, oid));
Thanks,
>
> --
> Eric Blake, Principal Software Engineer
> Red Hat, Inc. +1-919-301-3266
> Virtualization: qemu.org | libvirt.org
>