On Tue, May 19, 2009 at 12:51:23PM -0400, Laine Stump wrote: > From: Laine Stump <laine@xxxxxxxxxx> > > --- > include/libvirt/libvirt.h | 50 ++++++++++++++++++++++++++++++++++++++++++ > include/libvirt/libvirt.h.in | 50 ++++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 100 insertions(+), 0 deletions(-) > > diff --git a/include/libvirt/libvirt.h b/include/libvirt/libvirt.h > index 3de3688..5835f70 100644 > --- a/include/libvirt/libvirt.h > +++ b/include/libvirt/libvirt.h > @@ -854,6 +854,56 @@ int virNetworkGetAutostart (virNetworkPtr network, > int virNetworkSetAutostart (virNetworkPtr network, > int autostart); > > +/* > + * Physical host interface configuration API > + */ > + > +/** > + * virInterface: > + * > + * a virInterface is a private structure representing a virtual interface. > + */ > +typedef struct _virInterface virInterface; > + > +/** > + * virInterfacePtr: > + * > + * a virInterfacePtr is pointer to a virInterface private structure, this is the > + * type used to reference a virtual interface in the API. > + */ > +typedef virInterface *virInterfacePtr; > + > +virConnectPtr virInterfaceGetConnect (virInterfacePtr interface); > + > +int virConnectNumOfInterfaces (virConnectPtr conn); > +int virConnectListInterfaces (virConnectPtr conn, > + char **const names, > + int maxnames); > + > +virInterfacePtr virInterfaceLookupByName (virConnectPtr conn, > + const char *name); > +virInterfacePtr virInterfaceLookupByMACString (virConnectPtr conn, > + const char *mac); > + > +const char* virInterfaceGetName (virInterfacePtr interface); > +const char* virInterfaceGetMACString (virInterfacePtr interface); > + > +char * virInterfaceGetXMLDesc (virInterfacePtr interface, > + unsigned int flags); > +virInterfacePtr virInterfaceDefineXML (virConnectPtr conn, > + const char *xmlDesc, > + unsigned int flags); > + > +int virInterfaceUndefine (virInterfacePtr interface); > + > +int virInterfaceCreate (virInterfacePtr interface, > + unsigned int flags); > + > +int virInterfaceDestroy (virInterfacePtr interface, > + unsigned int flags); > + > +int virInterfaceRef (virInterfacePtr interface); > +int virInterfaceFree (virInterfacePtr interface); > > /** > * virStoragePool: > diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in > index 6b0c1d8..60048ae 100644 > --- a/include/libvirt/libvirt.h.in > +++ b/include/libvirt/libvirt.h.in > @@ -854,6 +854,56 @@ int virNetworkGetAutostart (virNetworkPtr network, > int virNetworkSetAutostart (virNetworkPtr network, > int autostart); > > +/* > + * Physical host interface configuration API > + */ > + > +/** > + * virInterface: > + * > + * a virInterface is a private structure representing a virtual interface. > + */ > +typedef struct _virInterface virInterface; > + > +/** > + * virInterfacePtr: > + * > + * a virInterfacePtr is pointer to a virInterface private structure, this is the > + * type used to reference a virtual interface in the API. > + */ > +typedef virInterface *virInterfacePtr; > + > +virConnectPtr virInterfaceGetConnect (virInterfacePtr interface); > + > +int virConnectNumOfInterfaces (virConnectPtr conn); > +int virConnectListInterfaces (virConnectPtr conn, > + char **const names, > + int maxnames); > + > +virInterfacePtr virInterfaceLookupByName (virConnectPtr conn, > + const char *name); > +virInterfacePtr virInterfaceLookupByMACString (virConnectPtr conn, > + const char *mac); > + > +const char* virInterfaceGetName (virInterfacePtr interface); > +const char* virInterfaceGetMACString (virInterfacePtr interface); > + > +char * virInterfaceGetXMLDesc (virInterfacePtr interface, > + unsigned int flags); > +virInterfacePtr virInterfaceDefineXML (virConnectPtr conn, > + const char *xmlDesc, > + unsigned int flags); > + > +int virInterfaceUndefine (virInterfacePtr interface); > + > +int virInterfaceCreate (virInterfacePtr interface, > + unsigned int flags); > + > +int virInterfaceDestroy (virInterfacePtr interface, > + unsigned int flags); > + > +int virInterfaceRef (virInterfacePtr interface); > +int virInterfaceFree (virInterfacePtr interface); > > /** > * virStoragePool: > -- ACK Daniel -- |: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :| |: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :| -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list