DevicePool: Use the virConnectListAll interfaces
DevicePool: Use the virConnectListAll interfaces

  Rather than the somewhat unreliable get a count and get a list of active
names, use the newer virConnectListAll* interfaces in order to retrieve both
a count and list in one call.
  Macro USE_VIR_CONNECT_LIST_ALL_STORAGE_POOLS,
USE_VIR_CONNECT_LIST_ALL_NETWORKS and USE_VIR_CONNECT_LIST_ALL_DOMAINS are
used to activate thses functions. It require libvirt > 1.0.0, and the code
should be moved into a condition in configure later.

Signed-off-by: John Ferlan <87558058f6f829e5ec976c8ef960720af4ff9c7d@redhat.com>
Reviewed-by: Wenchao Xia <a82bded1b492a49d76e42d0788520e04e9fbf126@linux.vnet.ibm.com>
Signed-off-by: Wenchao Xia <a82bded1b492a49d76e42d0788520e04e9fbf126@linux.vnet.ibm.com>

libvirt/libvirt-cim,libvirt/libvirt-cim,libvirt/libvirt-cim