提交 7c24fbb0 编写于 作者: D Daniel P. Berrange

Remove init method

上级 9d0fa409
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
......
......@@ -32,8 +32,6 @@ typedef enum {
VIR_DRV_OPEN_RO = 2
} virDrvOpenFlag;
typedef int
(*virDrvInit) (void);
typedef int
(*virDrvOpen) (virConnectPtr conn,
const char *name,
......@@ -150,7 +148,6 @@ struct _virDriver {
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;
......
......@@ -46,7 +46,6 @@ static virDriver xenProxyDriver = {
VIR_DRV_XEN_PROXY,
"XenProxy",
0,
NULL, /* init */
xenProxyOpen, /* open */
xenProxyClose, /* close */
NULL, /* type */
......
......@@ -1097,7 +1097,6 @@ static virDriver qemuDriver = {
VIR_DRV_QEMU,
"QEMU",
LIBVIR_VERSION_NUMBER,
NULL, /* init */
qemuOpen, /* open */
qemuClose, /* close */
NULL, /* type */
......
......@@ -90,7 +90,6 @@ static virDriver testDriver = {
VIR_DRV_TEST,
"Test",
LIBVIR_VERSION_NUMBER,
NULL, /* init */
testOpen, /* open */
testClose, /* close */
NULL, /* type */
......
......@@ -411,7 +411,6 @@ typedef struct xen_op_v2_dom xen_op_v2_dom;
static const char * xenHypervisorGetType(virConnectPtr conn);
static unsigned long xenHypervisorGetMaxMemory(virDomainPtr domain);
#endif
static int xenHypervisorInit(void);
#ifndef PROXY
static virDriver xenHypervisorDriver = {
......@@ -420,7 +419,6 @@ 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 */
......@@ -1127,7 +1125,8 @@ virXen_getvcpusinfo(int handle, int id, unsigned int vcpu, virVcpuInfoPtr ipt,
* 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;
......
......@@ -62,7 +62,6 @@ static virDriver xenDaemonDriver = {
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
NULL, /* init */
xenDaemonOpen, /* open */
xenDaemonClose, /* close */
xenDaemonGetType, /* type */
......
......@@ -69,7 +69,6 @@ static virDriver xenXMDriver = {
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
NULL, /* init */
xenXMOpen, /* open */
xenXMClose, /* close */
xenXMGetType, /* type */
......
......@@ -40,7 +40,6 @@ static virDriver xenStoreDriver = {
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
(DOM0_INTERFACE_VERSION & 0xFFFF),
NULL, /* init */
xenStoreOpen, /* open */
xenStoreClose, /* close */
NULL, /* type */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册