[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: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PULL, 08/36] qapi: Remove qobject_to_X() functions |
Date: |
Thu, 12 Apr 2018 15:52:50 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
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));
--
Eric Blake, Principal Software Engineer
Red Hat, Inc. +1-919-301-3266
Virtualization: qemu.org | libvirt.org
signature.asc
Description: OpenPGP digital signature