mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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
This commit is contained 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);
|
||||
|
||||
Reference in New Issue
Block a user