mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-18 10:35:20 +00:00
Remove init method
This commit is contained in:
parent
9d0fa40919
commit
7c24fbb00c
@ -1,3 +1,10 @@
|
|||||||
|
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>
|
Fri Feb 16 10:36:24 EST 2007 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* qemud/internal.h, qemud/qemud.c, libvirt.spec.in: Remove
|
* qemud/internal.h, qemud/qemud.c, libvirt.spec.in: Remove
|
||||||
|
@ -32,8 +32,6 @@ typedef enum {
|
|||||||
VIR_DRV_OPEN_RO = 2
|
VIR_DRV_OPEN_RO = 2
|
||||||
} virDrvOpenFlag;
|
} virDrvOpenFlag;
|
||||||
|
|
||||||
typedef int
|
|
||||||
(*virDrvInit) (void);
|
|
||||||
typedef int
|
typedef int
|
||||||
(*virDrvOpen) (virConnectPtr conn,
|
(*virDrvOpen) (virConnectPtr conn,
|
||||||
const char *name,
|
const char *name,
|
||||||
@ -150,7 +148,6 @@ struct _virDriver {
|
|||||||
int no; /* the number virDrvNo */
|
int no; /* the number virDrvNo */
|
||||||
const char * name; /* the name of the driver */
|
const char * name; /* the name of the driver */
|
||||||
unsigned long ver; /* the version of the backend */
|
unsigned long ver; /* the version of the backend */
|
||||||
virDrvInit init;
|
|
||||||
virDrvOpen open;
|
virDrvOpen open;
|
||||||
virDrvClose close;
|
virDrvClose close;
|
||||||
virDrvGetType type;
|
virDrvGetType type;
|
||||||
|
@ -46,7 +46,6 @@ static virDriver xenProxyDriver = {
|
|||||||
VIR_DRV_XEN_PROXY,
|
VIR_DRV_XEN_PROXY,
|
||||||
"XenProxy",
|
"XenProxy",
|
||||||
0,
|
0,
|
||||||
NULL, /* init */
|
|
||||||
xenProxyOpen, /* open */
|
xenProxyOpen, /* open */
|
||||||
xenProxyClose, /* close */
|
xenProxyClose, /* close */
|
||||||
NULL, /* type */
|
NULL, /* type */
|
||||||
|
@ -1097,7 +1097,6 @@ static virDriver qemuDriver = {
|
|||||||
VIR_DRV_QEMU,
|
VIR_DRV_QEMU,
|
||||||
"QEMU",
|
"QEMU",
|
||||||
LIBVIR_VERSION_NUMBER,
|
LIBVIR_VERSION_NUMBER,
|
||||||
NULL, /* init */
|
|
||||||
qemuOpen, /* open */
|
qemuOpen, /* open */
|
||||||
qemuClose, /* close */
|
qemuClose, /* close */
|
||||||
NULL, /* type */
|
NULL, /* type */
|
||||||
|
@ -90,7 +90,6 @@ static virDriver testDriver = {
|
|||||||
VIR_DRV_TEST,
|
VIR_DRV_TEST,
|
||||||
"Test",
|
"Test",
|
||||||
LIBVIR_VERSION_NUMBER,
|
LIBVIR_VERSION_NUMBER,
|
||||||
NULL, /* init */
|
|
||||||
testOpen, /* open */
|
testOpen, /* open */
|
||||||
testClose, /* close */
|
testClose, /* close */
|
||||||
NULL, /* type */
|
NULL, /* type */
|
||||||
|
@ -411,7 +411,6 @@ typedef struct xen_op_v2_dom xen_op_v2_dom;
|
|||||||
static const char * xenHypervisorGetType(virConnectPtr conn);
|
static const char * xenHypervisorGetType(virConnectPtr conn);
|
||||||
static unsigned long xenHypervisorGetMaxMemory(virDomainPtr domain);
|
static unsigned long xenHypervisorGetMaxMemory(virDomainPtr domain);
|
||||||
#endif
|
#endif
|
||||||
static int xenHypervisorInit(void);
|
|
||||||
|
|
||||||
#ifndef PROXY
|
#ifndef PROXY
|
||||||
static virDriver xenHypervisorDriver = {
|
static virDriver xenHypervisorDriver = {
|
||||||
@ -420,7 +419,6 @@ static virDriver xenHypervisorDriver = {
|
|||||||
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
||||||
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
||||||
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
||||||
xenHypervisorInit, /* init */
|
|
||||||
xenHypervisorOpen, /* open */
|
xenHypervisorOpen, /* open */
|
||||||
xenHypervisorClose, /* close */
|
xenHypervisorClose, /* close */
|
||||||
xenHypervisorGetType, /* type */
|
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
|
* Initialize the hypervisor layer. Try to detect the kind of interface
|
||||||
* used i.e. pre or post changeset 10277
|
* used i.e. pre or post changeset 10277
|
||||||
*/
|
*/
|
||||||
int xenHypervisorInit(void)
|
int
|
||||||
|
xenHypervisorInit(void)
|
||||||
{
|
{
|
||||||
int fd, ret, cmd;
|
int fd, ret, cmd;
|
||||||
hypercall_t hc;
|
hypercall_t hc;
|
||||||
|
@ -62,7 +62,6 @@ static virDriver xenDaemonDriver = {
|
|||||||
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
||||||
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
||||||
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
||||||
NULL, /* init */
|
|
||||||
xenDaemonOpen, /* open */
|
xenDaemonOpen, /* open */
|
||||||
xenDaemonClose, /* close */
|
xenDaemonClose, /* close */
|
||||||
xenDaemonGetType, /* type */
|
xenDaemonGetType, /* type */
|
||||||
|
@ -69,7 +69,6 @@ static virDriver xenXMDriver = {
|
|||||||
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
||||||
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
||||||
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
||||||
NULL, /* init */
|
|
||||||
xenXMOpen, /* open */
|
xenXMOpen, /* open */
|
||||||
xenXMClose, /* close */
|
xenXMClose, /* close */
|
||||||
xenXMGetType, /* type */
|
xenXMGetType, /* type */
|
||||||
|
@ -40,7 +40,6 @@ static virDriver xenStoreDriver = {
|
|||||||
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
(DOM0_INTERFACE_VERSION >> 24) * 1000000 +
|
||||||
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
((DOM0_INTERFACE_VERSION >> 16) & 0xFF) * 1000 +
|
||||||
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
(DOM0_INTERFACE_VERSION & 0xFFFF),
|
||||||
NULL, /* init */
|
|
||||||
xenStoreOpen, /* open */
|
xenStoreOpen, /* open */
|
||||||
xenStoreClose, /* close */
|
xenStoreClose, /* close */
|
||||||
NULL, /* type */
|
NULL, /* type */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user