Mon Jan 22 16:17:25 IST 2007 Mark McLoughlin <markmc@redhat.com>

* src/driver.h: remove Free(), GetName(), GetID() and
	GetUUID() driver methods.

	* src/proxy_internal.c,	src/test.c, src/xen_internal.c,
	src/xend_internal.c, src/xm_internal.c,	src/xs_internal.c:
	Update driver vtables.
This commit is contained in:
Mark McLoughlin 2007-01-22 16:21:27 +00:00
parent 8f8397df7f
commit 26d6bbf3a4
8 changed files with 9 additions and 37 deletions

View File

@ -1,3 +1,12 @@
Mon Jan 22 16:17:25 IST 2007 Mark McLoughlin <markmc@redhat.com>
* src/driver.h: remove Free(), GetName(), GetID() and
GetUUID() driver methods.
* src/proxy_internal.c, src/test.c, src/xen_internal.c,
src/xend_internal.c, src/xm_internal.c, src/xs_internal.c:
Update driver vtables.
Mon Jan 22 16:24:54 CET 2007 Daniel Veillard <veillard@redhat.com> Mon Jan 22 16:24:54 CET 2007 Daniel Veillard <veillard@redhat.com>
* configure.in libvirt.spec.in docs/*.html include/libvirt/libvirt.h: * configure.in libvirt.spec.in docs/*.html include/libvirt/libvirt.h:

View File

@ -77,15 +77,6 @@ typedef int
unsigned int flags); unsigned int flags);
typedef int typedef int
(*virDrvDomainDestroy) (virDomainPtr domain); (*virDrvDomainDestroy) (virDomainPtr domain);
typedef int
(*virDrvDomainFree) (virDomainPtr domain);
typedef const char *
(*virDrvDomainGetName) (virDomainPtr domain);
typedef int
(*virDrvDomainGetID) (virDomainPtr domain);
typedef int
(*virDrvDomainGetUUID) (virDomainPtr domain,
unsigned char *uuid);
typedef char * typedef char *
(*virDrvDomainGetOSType) (virDomainPtr domain); (*virDrvDomainGetOSType) (virDomainPtr domain);
typedef unsigned long typedef unsigned long
@ -175,10 +166,6 @@ struct _virDriver {
virDrvDomainShutdown domainShutdown; virDrvDomainShutdown domainShutdown;
virDrvDomainReboot domainReboot; virDrvDomainReboot domainReboot;
virDrvDomainDestroy domainDestroy; virDrvDomainDestroy domainDestroy;
virDrvDomainFree domainFree;
virDrvDomainGetName domainGetName;
virDrvDomainGetID domainGetID;
virDrvDomainGetUUID domainGetUUID;
virDrvDomainGetOSType domainGetOSType; virDrvDomainGetOSType domainGetOSType;
virDrvDomainGetMaxMemory domainGetMaxMemory; virDrvDomainGetMaxMemory domainGetMaxMemory;
virDrvDomainSetMaxMemory domainSetMaxMemory; virDrvDomainSetMaxMemory domainSetMaxMemory;

View File

@ -63,10 +63,6 @@ static virDriver xenProxyDriver = {
NULL, /* domainShutdown */ NULL, /* domainShutdown */
NULL, /* domainReboot */ NULL, /* domainReboot */
NULL, /* domainDestroy */ NULL, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
xenProxyDomainGetOSType, /* domainGetOSType */ xenProxyDomainGetOSType, /* domainGetOSType */
xenProxyDomainGetMaxMemory, /* domainGetMaxMemory */ xenProxyDomainGetMaxMemory, /* domainGetMaxMemory */
NULL, /* domainSetMaxMemory */ NULL, /* domainSetMaxMemory */

View File

@ -107,10 +107,6 @@ static virDriver testDriver = {
testShutdownDomain, /* domainShutdown */ testShutdownDomain, /* domainShutdown */
testRebootDomain, /* domainReboot */ testRebootDomain, /* domainReboot */
testDestroyDomain, /* domainDestroy */ testDestroyDomain, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
testGetOSType, /* domainGetOSType */ testGetOSType, /* domainGetOSType */
testGetMaxMemory, /* domainGetMaxMemory */ testGetMaxMemory, /* domainGetMaxMemory */
testSetMaxMemory, /* domainSetMaxMemory */ testSetMaxMemory, /* domainSetMaxMemory */

View File

@ -437,10 +437,6 @@ static virDriver xenHypervisorDriver = {
NULL, /* domainShutdown */ NULL, /* domainShutdown */
NULL, /* domainReboot */ NULL, /* domainReboot */
xenHypervisorDestroyDomain, /* domainDestroy */ xenHypervisorDestroyDomain, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
NULL, /* domainGetOSType */ NULL, /* domainGetOSType */
xenHypervisorGetMaxMemory, /* domainGetMaxMemory */ xenHypervisorGetMaxMemory, /* domainGetMaxMemory */
xenHypervisorSetMaxMemory, /* domainSetMaxMemory */ xenHypervisorSetMaxMemory, /* domainSetMaxMemory */

View File

@ -79,10 +79,6 @@ static virDriver xenDaemonDriver = {
xenDaemonDomainShutdown, /* domainShutdown */ xenDaemonDomainShutdown, /* domainShutdown */
xenDaemonDomainReboot, /* domainReboot */ xenDaemonDomainReboot, /* domainReboot */
xenDaemonDomainDestroy, /* domainDestroy */ xenDaemonDomainDestroy, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
NULL, /* domainGetOSType */ NULL, /* domainGetOSType */
xenDaemonDomainGetMaxMemory, /* domainGetMaxMemory */ xenDaemonDomainGetMaxMemory, /* domainGetMaxMemory */
xenDaemonDomainSetMaxMemory, /* domainSetMaxMemory */ xenDaemonDomainSetMaxMemory, /* domainSetMaxMemory */

View File

@ -86,10 +86,6 @@ static virDriver xenXMDriver = {
NULL, /* domainShutdown */ NULL, /* domainShutdown */
NULL, /* domainReboot */ NULL, /* domainReboot */
NULL, /* domainDestroy */ NULL, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
NULL, /* domainGetOSType */ NULL, /* domainGetOSType */
xenXMDomainGetMaxMemory, /* domainGetMaxMemory */ xenXMDomainGetMaxMemory, /* domainGetMaxMemory */
xenXMDomainSetMaxMemory, /* domainSetMaxMemory */ xenXMDomainSetMaxMemory, /* domainSetMaxMemory */

View File

@ -57,10 +57,6 @@ static virDriver xenStoreDriver = {
xenStoreDomainShutdown, /* domainShutdown */ xenStoreDomainShutdown, /* domainShutdown */
xenStoreDomainReboot, /* domainReboot */ xenStoreDomainReboot, /* domainReboot */
NULL, /* domainDestroy */ NULL, /* domainDestroy */
NULL, /* domainFree */
NULL, /* domainGetName */
NULL, /* domainGetID */
NULL, /* domainGetUUID */
xenStoreDomainGetOSType, /* domainGetOSType */ xenStoreDomainGetOSType, /* domainGetOSType */
xenStoreDomainGetMaxMemory, /* domainGetMaxMemory */ xenStoreDomainGetMaxMemory, /* domainGetMaxMemory */
NULL, /* domainSetMaxMemory */ NULL, /* domainSetMaxMemory */