]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vbox: Rewrite vboxDomainGetOSType
authorTaowei <uaedante@gmail.com>
Mon, 11 Aug 2014 10:06:34 +0000 (18:06 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 15 Aug 2014 07:25:11 +0000 (09:25 +0200)
src/vbox/vbox_common.c
src/vbox/vbox_tmpl.c
src/vbox/vbox_uniformed_api.h

index 7acd80e23250edd95cc9829a53119add76d05af2..99e1872f891f47b7ade7f34e95e2a5cc83a7447b 100644 (file)
@@ -2603,3 +2603,15 @@ int vboxDomainDestroy(virDomainPtr dom)
 {
     return vboxDomainDestroyFlags(dom, 0);
 }
+
+char *vboxDomainGetOSType(virDomainPtr dom ATTRIBUTE_UNUSED) {
+    /* Returning "hvm" always as suggested on list, cause
+     * this functions seems to be badly named and it
+     * is supposed to pass the ABI name and not the domain
+     * operating system driver as I had imagined ;)
+     */
+    char *osType;
+
+    ignore_value(VIR_STRDUP(osType, "hvm"));
+    return osType;
+}
index c1511affe31ed5ea9428fcb86b5213a722151ebd..240c8565014d3dd0e0c58e13501c3a2776b0e347 100644 (file)
@@ -933,18 +933,6 @@ vboxSocketParseAddrUtf16(vboxGlobalData *data, const PRUnichar *utf16,
     return result;
 }
 
-static char *vboxDomainGetOSType(virDomainPtr dom ATTRIBUTE_UNUSED) {
-    /* Returning "hvm" always as suggested on list, cause
-     * this functions seems to be badly named and it
-     * is supposed to pass the ABI name and not the domain
-     * operating system driver as I had imagined ;)
-     */
-    char *osType;
-
-    ignore_value(VIR_STRDUP(osType, "hvm"));
-    return osType;
-}
-
 static int vboxDomainSetMemory(virDomainPtr dom, unsigned long memory)
 {
     VBOX_OBJECT_CHECK(dom->conn, int, -1);
index 935697fbec5e158c68042962450a5921fc634a50..31a0e45b261ccb79efb78fc215e5389140d79daa 100644 (file)
@@ -429,6 +429,7 @@ int vboxDomainShutdown(virDomainPtr dom);
 int vboxDomainReboot(virDomainPtr dom, unsigned int flags);
 int vboxDomainDestroyFlags(virDomainPtr dom, unsigned int flags);
 int vboxDomainDestroy(virDomainPtr dom);
+char *vboxDomainGetOSType(virDomainPtr dom);
 
 /* Version specified functions for installing uniformed API */
 void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);