qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 4/8] qom: interpret the return value when set


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 4/8] qom: interpret the return value when setting legacy properties
Date: Fri, 16 Dec 2011 18:19:18 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

On 12/16/2011 06:00 PM, Anthony Liguori wrote:

And perhaps it would make more sense to return Error * and make the
function name be a constructor:

Error *error_from_qdev_prop_err(int ret, DeviceState *dev,
                                 Property *prop, const char *value);

That doesn't work too well when calling it from setters. However, error_set_from_qdev_prop_error is definitely an improvement (no matter what a mouthful it is).

I need to rush now. I placed this at git://github.com/qemu/bonzini.git qom-props (commit 263e8c5), so you can play on top of it or pull it. I attach the interdiff from v2.

Paolo

Attachment: interdiff.patch
Description: Text Data


reply via email to

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