]> git.ipfire.org Git - thirdparty/libvirt.git/commit
list: Use virConnectListAllInterfaces in virsh
authorOsier Yang <jyang@redhat.com>
Tue, 4 Sep 2012 16:10:18 +0000 (00:10 +0800)
committerOsier Yang <jyang@redhat.com>
Wed, 12 Sep 2012 07:37:09 +0000 (15:37 +0800)
commit3c2e6472d8e7a0ccd7c6f3ff885e209e34653d3d
treeee685582165266e10ab411c4c0f1be90741df94e
parenta3cf061c824aac0c4cb06ac91ac0bff612bf0e86
list: Use virConnectListAllInterfaces in virsh

tools/virsh-interface.c:
  * vshInterfaceSorter to sort interfaces by name

  * vshInterfaceListFree to free the interface objects list.

  * vshInterfaceListCollect to collect the interface objects, trying
    to use new API first, fall back to older APIs if it's not supported.
tools/virsh-interface.c