]> xenbits.xensource.com Git - libvirt.git/commitdiff
Internal API
authorJim Fehlig <jfehlig@novell.com>
Thu, 14 Jan 2010 01:31:14 +0000 (18:31 -0700)
committerJim Fehlig <jfehlig@novell.com>
Mon, 8 Feb 2010 17:49:42 +0000 (10:49 -0700)
Definition of internal API for virDomain{Attach,Detach}DeviceFlags.

src/driver.h

index c7e4fbf24cc2fb876effc7f40732bc8951ef78f8..08fe816e05177ebefd8827b74cbad202b24dce7c 100644 (file)
@@ -191,9 +191,17 @@ typedef int
 typedef int
         (*virDrvDomainAttachDevice)    (virDomainPtr domain,
                                          const char *xml);
+typedef int
+        (*virDrvDomainAttachDeviceFlags) (virDomainPtr domain,
+                                          const char *xml,
+                                          unsigned int flags);
 typedef int
         (*virDrvDomainDetachDevice)    (virDomainPtr domain,
                                          const char *xml);
+typedef int
+        (*virDrvDomainDetachDeviceFlags) (virDomainPtr domain,
+                                          const char *xml,
+                                          unsigned int flags);
 typedef int
         (*virDrvDomainGetAutostart)    (virDomainPtr domain,
                                          int *autostart);
@@ -419,7 +427,9 @@ struct _virDriver {
     virDrvDomainDefineXML           domainDefineXML;
     virDrvDomainUndefine            domainUndefine;
     virDrvDomainAttachDevice   domainAttachDevice;
+    virDrvDomainAttachDeviceFlags      domainAttachDeviceFlags;
     virDrvDomainDetachDevice   domainDetachDevice;
+    virDrvDomainDetachDeviceFlags      domainDetachDeviceFlags;
     virDrvDomainGetAutostart   domainGetAutostart;
     virDrvDomainSetAutostart   domainSetAutostart;
     virDrvDomainGetSchedulerType       domainGetSchedulerType;