From: Daniel P. Berrange Date: Wed, 8 Nov 2006 18:54:57 +0000 (+0000) Subject: Added implementation of GetOSType driver to test backend X-Git-Tag: LIBVIRT_0_1_9~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c62b5f6d58095ed8d0bd4378b8f5d1ecafb1912;p=thirdparty%2Flibvirt.git Added implementation of GetOSType driver to test backend --- diff --git a/ChangeLog b/ChangeLog index 324a5ccdcc..0afcade57a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 8 13:00:56 EDT 2006 Daniel Berrange + + * 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 * include/libvirt/virterror.h src/virterror.c src/xend_internal.c diff --git a/src/test.c b/src/test.c index 31ba0a75b9..f3d8191d87 100644 --- a/src/test.c +++ b/src/test.c @@ -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)) { diff --git a/src/test.h b/src/test.h index 5ec6696715..0bbe93a796 100644 --- a/src/test.h +++ b/src/test.h @@ -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);