+Fri Feb 16 11:03:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
+
+ * src/driver.h, src/proxy_internal.c, src/qemu_internal.c,
+ src/test.c, src/xen_internal.c, src/xend_internal.c,
+ src/xm_internal.c, src/xs_internal.c: Remove the unused
+ 'init' method from the internal driver API (from Rich Jones)
+
Fri Feb 16 10:36:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* qemud/internal.h, qemud/qemud.c, libvirt.spec.in: Remove
VIR_DRV_OPEN_RO = 2
} virDrvOpenFlag;
-typedef int
- (*virDrvInit) (void);
typedef int
(*virDrvOpen) (virConnectPtr conn,
const char *name,
int no; /* the number virDrvNo */
const char * name; /* the name of the driver */
unsigned long ver; /* the version of the backend */
- virDrvInit init;
virDrvOpen open;
virDrvClose close;
virDrvGetType type;
VIR_DRV_XEN_PROXY,
"XenProxy",
0,
- NULL, /* init */
xenProxyOpen, /* open */
xenProxyClose, /* close */
NULL, /* type */
VIR_DRV_QEMU,
"QEMU",
LIBVIR_VERSION_NUMBER,
- NULL, /* init */
qemuOpen, /* open */
qemuClose, /* close */
NULL, /* type */
VIR_DRV_TEST,
"Test",
LIBVIR_VERSION_NUMBER,
- NULL, /* init */
testOpen, /* open */
testClose, /* close */
NULL, /* type */
static const char * xenHypervisorGetType(virConnectPtr conn);
static unsigned long xenHypervisorGetMaxMemory(virDomainPtr domain);
#endif
-static int xenHypervisorInit(void);
#ifndef PROXY
static virDriver xenHypervisorDriver = {
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
- xenHypervisorInit, /* init */
xenHypervisorOpen, /* open */
xenHypervisorClose, /* close */
xenHypervisorGetType, /* type */
* Initialize the hypervisor layer. Try to detect the kind of interface
* used i.e. pre or post changeset 10277
*/
-int xenHypervisorInit(void)
+int
+xenHypervisorInit(void)
{
int fd, ret, cmd;
hypercall_t hc;
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
- NULL, /* init */
xenDaemonOpen, /* open */
xenDaemonClose, /* close */
xenDaemonGetType, /* type */
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
- NULL, /* init */
xenXMOpen, /* open */
xenXMClose, /* close */
xenXMGetType, /* type */
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
- NULL, /* init */
xenStoreOpen, /* open */
xenStoreClose, /* close */
NULL, /* type */