[libvirt] [PATCH 15/24] maint: improve VIR_ERR_INVALID_INTERFACE usage

Eric Blake eblake at redhat.com
Wed Jan 8 19:42:04 UTC 2014


On 01/02/2014 05:19 PM, John Ferlan wrote:
> 
> 
> On 12/28/2013 11:11 AM, Eric Blake wrote:
>> When checking for a valid interface, we weren't consistent on
>> whether ew reported as VIR_FROM_NONE or VIR_FROM_INTERFACE.

s/ew/we/

>> Similar to previous patches, use a common macro to make it nicer.
>> For now, we don't need virCheckInterfaceGoto().
>>
>> * src/datatypes.h (virCheckInterfaceReturn): New macro.
>> (VIR_IS_INTERFACE, VIR_IS_CONNECTED_INTERFACE): Drop unused
>> macros.
>> * src/libvirt.c: Use macro throughout.
>> (virLibInterfaceError): Drop unused macro.
>>
>> Signed-off-by: Eric Blake <eblake at redhat.com>
>> ---
>>  src/datatypes.h | 17 +++++++++----
>>  src/libvirt.c   | 74 +++++++++++++++------------------------------------------
>>  2 files changed, 32 insertions(+), 59 deletions(-)
>>
> 
> Same concern as Networks - the virInterfaceGetName() and
> virInterfaceGetMACString() will require a connection...

And same response - I touched up the commit message to explain it better.

> 
> ACK

Pushed.


-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140108/cadacc37/attachment-0001.sig>


More information about the libvir-list mailing list