]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Added implementation of GetOSType driver to test backend
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 8 Nov 2006 18:54:57 +0000 (18:54 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 8 Nov 2006 18:54:57 +0000 (18:54 +0000)
ChangeLog
src/test.c
src/test.h

index 324a5ccdccba5d9e971bacc1577f7096bccd2b05..0afcade57adeff0fdf65d7d767800f876866d943 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Nov  8 13:00:56 EDT 2006 Daniel Berrange <berrange@redhat.com>
+
+       * src/test.c, src/test.h: Added implementation of the virDomainGetOSType
+       driver method to the test hypervisor backend.
+
 Wed Nov  8 16:58:56 CET 2006 Daniel Veillard <veillard@redhat.com>
 
        * include/libvirt/virterror.h src/virterror.c src/xend_internal.c
index 31ba0a75b9630db39b3aabd978c04f87df01e594..f3d8191d87df20784362e9d0f11b1e665c57d7a6 100644 (file)
@@ -47,7 +47,7 @@ static virDriver testDriver = {
   NULL, /* domainGetName */
   NULL, /* domainGetID */
   NULL, /* domainGetUUID */
-  NULL, /* domainGetOSType */
+  testGetOSType, /* domainGetOSType */
   testGetMaxMemory, /* domainGetMaxMemory */
   testSetMaxMemory, /* domainSetMaxMemory */
   testSetMemory, /* domainSetMemory */
@@ -989,6 +989,10 @@ int testGetDomainInfo (virDomainPtr domain,
   return (0);
 }
 
+char *testGetOSType(virDomainPtr dom ATTRIBUTE_UNUSED) {
+  return strdup("linux");
+}
+
 unsigned long testGetMaxMemory(virDomainPtr domain) {
   testCon *con;
   if ((domain == NULL) || (domain->conn == NULL) || (domain->name == NULL)) {
index 5ec669671565b54cf4535d28b1e7aa28087ccf39..0bbe93a796fc107dadc957a56e959b4c4570e911 100644 (file)
@@ -30,6 +30,7 @@ int testNumOfDomains(virConnectPtr conn);
 int testListDomains(virConnectPtr conn,
                    int *ids,
                    int maxids);
+char *testGetOSType(virDomainPtr dom);
 virDomainPtr
 testDomainCreateLinux(virConnectPtr conn, const char *xmlDesc,
                      unsigned int flags ATTRIBUTE_UNUSED);