aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOsier Yang <jyang@redhat.com>2012-09-05 00:10:15 +0800
committerOsier Yang <jyang@redhat.com>2012-09-12 15:19:46 +0800
commitf4af202f4e3d29def5c06acfe9799071cda07ebb (patch)
treed605aba7e1783cba418a90f41581fc072a0c3b99 /include
parentdocs: mention another iaas app built on libvirt (diff)
downloadlibvirt-f4af202f4e3d29def5c06acfe9799071cda07ebb.tar.gz
libvirt-f4af202f4e3d29def5c06acfe9799071cda07ebb.tar.bz2
libvirt-f4af202f4e3d29def5c06acfe9799071cda07ebb.zip
list: Define new API virConnectListAllInterfaces
This is to list the interface objects, supported filtering flags are: active|inactive. include/libvirt/libvirt.h.in: Declare enum virConnectListAllInterfaceFlags and virConnectListAllInterfaces. python/generator.py: Skip auto-generating src/driver.h: (virDrvConnectListAllInterfaces) src/libvirt.c: Implement the public API src/libvirt_public.syms: Export the symbol to public
Diffstat (limited to 'include')
-rw-r--r--include/libvirt/libvirt.h.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
index b0d34c5f8..ca04f6cbb 100644
--- a/include/libvirt/libvirt.h.in
+++ b/include/libvirt/libvirt.h.in
@@ -2386,6 +2386,19 @@ int virConnectNumOfDefinedInterfaces (virConnectPtr conn);
int virConnectListDefinedInterfaces (virConnectPtr conn,
char **const names,
int maxnames);
+/*
+ * virConnectListAllInterfaces:
+ *
+ * Flags used to filter the returned interfaces.
+ */
+typedef enum {
+ VIR_CONNECT_LIST_INTERFACES_INACTIVE = 1 << 0,
+ VIR_CONNECT_LIST_INTERFACES_ACTIVE = 1 << 1,
+} virConnectListAllInterfacesFlags;
+
+int virConnectListAllInterfaces (virConnectPtr conn,
+ virInterfacePtr **ifaces,
+ unsigned int flags);
virInterfacePtr virInterfaceLookupByName (virConnectPtr conn,
const char *name);