mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 01:43:23 +00:00
Remove no-op networking APIs from openvz driver
This commit is contained in:
parent
64b3019d69
commit
53365f4c54
@ -1,3 +1,7 @@
|
|||||||
|
Mon Jan 21 10:12:04 EST 2008 Daniel P. Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/openvz_driver.c: Remove no-op networking APIs
|
||||||
|
|
||||||
Mon Jan 21 15:03:04 CET 2008 Jim Meyering <meyering@redhat.com>
|
Mon Jan 21 15:03:04 CET 2008 Jim Meyering <meyering@redhat.com>
|
||||||
|
|
||||||
Adjust sexpr-related interfaces to be const-correct.
|
Adjust sexpr-related interfaces to be const-correct.
|
||||||
|
@ -86,14 +86,6 @@ static int openvzStartup(void);
|
|||||||
static int openvzShutdown(void);
|
static int openvzShutdown(void);
|
||||||
static int openvzReload(void);
|
static int openvzReload(void);
|
||||||
static int openvzActive(void);
|
static int openvzActive(void);
|
||||||
static int openvzCloseNetwork(virConnectPtr conn);
|
|
||||||
static virDrvOpenStatus openvzOpenNetwork(virConnectPtr conn,
|
|
||||||
const char *name ATTRIBUTE_UNUSED,
|
|
||||||
int *credtype ATTRIBUTE_UNUSED,
|
|
||||||
int ncredtype ATTRIBUTE_UNUSED,
|
|
||||||
virConnectAuthCallbackPtr cb ATTRIBUTE_UNUSED,
|
|
||||||
void *cbdata ATTRIBUTE_UNUSED,
|
|
||||||
int flags ATTRIBUTE_UNUSED);
|
|
||||||
|
|
||||||
static virDomainPtr openvzDomainDefineXML(virConnectPtr conn, const char *xml);
|
static virDomainPtr openvzDomainDefineXML(virConnectPtr conn, const char *xml);
|
||||||
static virDomainPtr openvzDomainCreateLinux(virConnectPtr conn, const char *xml,
|
static virDomainPtr openvzDomainCreateLinux(virConnectPtr conn, const char *xml,
|
||||||
@ -698,20 +690,6 @@ static int openvzActive(void) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int openvzCloseNetwork(virConnectPtr conn ATTRIBUTE_UNUSED) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static virDrvOpenStatus openvzOpenNetwork(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|
||||||
const char *name ATTRIBUTE_UNUSED,
|
|
||||||
int *credtype ATTRIBUTE_UNUSED,
|
|
||||||
int ncredtype ATTRIBUTE_UNUSED,
|
|
||||||
virConnectAuthCallbackPtr cb ATTRIBUTE_UNUSED,
|
|
||||||
void *cbdata ATTRIBUTE_UNUSED,
|
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
|
||||||
return VIR_DRV_OPEN_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
static virDriver openvzDriver = {
|
static virDriver openvzDriver = {
|
||||||
VIR_DRV_OPENVZ,
|
VIR_DRV_OPENVZ,
|
||||||
"OPENVZ",
|
"OPENVZ",
|
||||||
@ -771,27 +749,6 @@ static virDriver openvzDriver = {
|
|||||||
NULL, /* nodeGetFreeMemory */
|
NULL, /* nodeGetFreeMemory */
|
||||||
};
|
};
|
||||||
|
|
||||||
static virNetworkDriver openvzNetworkDriver = {
|
|
||||||
NULL, /* name */
|
|
||||||
openvzOpenNetwork, /* open */
|
|
||||||
openvzCloseNetwork, /* close */
|
|
||||||
NULL, /* numOfNetworks */
|
|
||||||
NULL, /* listNetworks */
|
|
||||||
NULL, /* numOfDefinedNetworks */
|
|
||||||
NULL, /* listDefinedNetworks */
|
|
||||||
NULL, /* networkLookupByUUID */
|
|
||||||
NULL, /* networkLookupByName */
|
|
||||||
NULL, /* networkCreateXML */
|
|
||||||
NULL, /* networkDefineXML */
|
|
||||||
NULL, /* networkUndefine */
|
|
||||||
NULL, /* networkCreate */
|
|
||||||
NULL, /* networkDestroy */
|
|
||||||
NULL, /* networkDumpXML */
|
|
||||||
NULL, /* networkGetBridgeName */
|
|
||||||
NULL, /* networkGetAutostart */
|
|
||||||
NULL, /* networkSetAutostart */
|
|
||||||
};
|
|
||||||
|
|
||||||
static virStateDriver openvzStateDriver = {
|
static virStateDriver openvzStateDriver = {
|
||||||
openvzStartup,
|
openvzStartup,
|
||||||
openvzShutdown,
|
openvzShutdown,
|
||||||
@ -801,7 +758,6 @@ static virStateDriver openvzStateDriver = {
|
|||||||
|
|
||||||
int openvzRegister(void) {
|
int openvzRegister(void) {
|
||||||
virRegisterDriver(&openvzDriver);
|
virRegisterDriver(&openvzDriver);
|
||||||
virRegisterNetworkDriver(&openvzNetworkDriver);
|
|
||||||
virRegisterStateDriver(&openvzStateDriver);
|
virRegisterStateDriver(&openvzStateDriver);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user