mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
drivers: prefer unsigned int for flags
Now that the public APIs always use unsigned flags, the internal driver callbacks might as well do likewise. * src/driver.h (vrDrvOpen, virDrvDomainCoreDump) (virDrvDomainGetXMLDesc, virDrvNetworkGetXMLDesc) (virDrvNWFilterGetXMLDesc): Update type. * src/remote/remote_protocol.x (remote_open_args) (remote_domain_core_dump_args, remote_domain_get_xml_desc_args) (remote_network_get_xml_desc_args) (remote_nwfilter_get_xml_desc_args): Likewise. * src/test/test_driver.c: Update clients. * src/remote/remote_driver.c: Likewise. * src/xen/xen_hypervisor.c: Likewise. * src/xen/xen_hypervisor.h: Likewise. * src/xen/xen_driver.c: Likewise. * src/xen/xend_internal.c: Likewise. * src/xen/xend_internal.h: Likewise. * src/xen/xm_internal.c: Likewise. * src/xen/xm_internal.h: Likewise. * src/xen/xs_internal.c: Likewise. * src/xen/xs_internal.h: Likewise. * src/xen/xen_inotify.c: Likewise. * src/xen/xen_inotify.h: Likewise. * src/phyp/phyp_driver.c: Likewise. * src/openvz/openvz_driver.c: Likewise. * src/vmware/vmware_driver.c: Likewise. * src/vbox/vbox_driver.c: Likewise. * src/vbox/vbox_tmpl.c: Likewise. * src/xenapi/xenapi_driver.c: Likewise. * src/esx/esx_driver.c: Likewise. * src/esx/esx_interface_driver.c: Likewise. * src/esx/esx_network_driver.c: Likewise. * src/esx/esx_storage_driver.c: Likewise. * src/esx/esx_device_monitor.c: Likewise. * src/esx/esx_secret_driver.c: Likewise. * src/esx/esx_nwfilter_driver.c: Likewise. * src/interface/netcf_driver.c: Likewise. * src/nwfilter/nwfilter_driver.c: Likewise. * src/libxl/libxl_driver.c: Likewise. * src/qemu/qemu_driver.c: Likewise. * src/lxc/lxc_driver.c: Likewise. * src/uml/uml_driver.c: Likewise. * src/network/bridge_driver.c: Likewise. * src/secret/secret_driver.c: Likewise. * src/storage/storage_driver.c: Likewise. * src/node_device/node_device_hal.c: Likewise. * src/node_device/node_device_udev.c: Likewise. * src/remote_protocol-structs: Likewise.
This commit is contained in:
parent
18d561c7a4
commit
1740c38116
10
src/driver.h
10
src/driver.h
@ -66,7 +66,7 @@ typedef enum {
|
|||||||
typedef virDrvOpenStatus
|
typedef virDrvOpenStatus
|
||||||
(*virDrvOpen) (virConnectPtr conn,
|
(*virDrvOpen) (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth,
|
virConnectAuthPtr auth,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
typedef int
|
typedef int
|
||||||
(*virDrvClose) (virConnectPtr conn);
|
(*virDrvClose) (virConnectPtr conn);
|
||||||
typedef int
|
typedef int
|
||||||
@ -183,7 +183,7 @@ typedef int
|
|||||||
typedef int
|
typedef int
|
||||||
(*virDrvDomainCoreDump) (virDomainPtr domain,
|
(*virDrvDomainCoreDump) (virDomainPtr domain,
|
||||||
const char *to,
|
const char *to,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
typedef char *
|
typedef char *
|
||||||
(*virDrvDomainScreenshot) (virDomainPtr domain,
|
(*virDrvDomainScreenshot) (virDomainPtr domain,
|
||||||
virStreamPtr stream,
|
virStreamPtr stream,
|
||||||
@ -191,7 +191,7 @@ typedef char *
|
|||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
typedef char *
|
typedef char *
|
||||||
(*virDrvDomainGetXMLDesc) (virDomainPtr dom,
|
(*virDrvDomainGetXMLDesc) (virDomainPtr dom,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
typedef char *
|
typedef char *
|
||||||
(*virDrvConnectDomainXMLFromNative) (virConnectPtr conn,
|
(*virDrvConnectDomainXMLFromNative) (virConnectPtr conn,
|
||||||
const char *nativeFormat,
|
const char *nativeFormat,
|
||||||
@ -829,7 +829,7 @@ typedef int
|
|||||||
(*virDrvNetworkDestroy) (virNetworkPtr network);
|
(*virDrvNetworkDestroy) (virNetworkPtr network);
|
||||||
typedef char *
|
typedef char *
|
||||||
(*virDrvNetworkGetXMLDesc) (virNetworkPtr network,
|
(*virDrvNetworkGetXMLDesc) (virNetworkPtr network,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
typedef char *
|
typedef char *
|
||||||
(*virDrvNetworkGetBridgeName) (virNetworkPtr network);
|
(*virDrvNetworkGetBridgeName) (virNetworkPtr network);
|
||||||
typedef int
|
typedef int
|
||||||
@ -1351,7 +1351,7 @@ typedef int
|
|||||||
|
|
||||||
typedef char *
|
typedef char *
|
||||||
(*virDrvNWFilterGetXMLDesc) (virNWFilterPtr nwfilter,
|
(*virDrvNWFilterGetXMLDesc) (virNWFilterPtr nwfilter,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
|
|
||||||
|
|
||||||
typedef struct _virNWFilterDriver virNWFilterDriver;
|
typedef struct _virNWFilterDriver virNWFilterDriver;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* esx_device_monitor.c: device monitor functions for managing VMware ESX
|
* esx_device_monitor.c: device monitor functions for managing VMware ESX
|
||||||
* host devices
|
* host devices
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -42,7 +42,7 @@
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxDeviceOpen(virConnectPtr conn,
|
esxDeviceOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_ESX) {
|
if (conn->driver->no != VIR_DRV_ESX) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -934,7 +934,8 @@ esxConnectToVCenter(esxPrivate *priv, virConnectAuthPtr auth,
|
|||||||
* socks5. The optional <port> part allows to override the default port 1080.
|
* socks5. The optional <port> part allows to override the default port 1080.
|
||||||
*/
|
*/
|
||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
|
esxOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
virDrvOpenStatus result = VIR_DRV_OPEN_ERROR;
|
virDrvOpenStatus result = VIR_DRV_OPEN_ERROR;
|
||||||
esxPrivate *priv = NULL;
|
esxPrivate *priv = NULL;
|
||||||
@ -2681,7 +2682,7 @@ esxDomainGetMaxVcpus(virDomainPtr domain)
|
|||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
esxDomainGetXMLDesc(virDomainPtr domain, int flags)
|
esxDomainGetXMLDesc(virDomainPtr domain, unsigned int flags)
|
||||||
{
|
{
|
||||||
esxPrivate *priv = domain->conn->privateData;
|
esxPrivate *priv = domain->conn->privateData;
|
||||||
esxVI_String *propertyNameList = NULL;
|
esxVI_String *propertyNameList = NULL;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* esx_interface_driver.c: interface driver functions for managing VMware ESX
|
* esx_interface_driver.c: interface driver functions for managing VMware ESX
|
||||||
* host interfaces
|
* host interfaces
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -42,7 +42,7 @@
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxInterfaceOpen(virConnectPtr conn,
|
esxInterfaceOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_ESX) {
|
if (conn->driver->no != VIR_DRV_ESX) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* esx_network_driver.c: network driver functions for managing VMware ESX
|
* esx_network_driver.c: network driver functions for managing VMware ESX
|
||||||
* host networks
|
* host networks
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -42,7 +42,7 @@
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxNetworkOpen(virConnectPtr conn,
|
esxNetworkOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_ESX) {
|
if (conn->driver->no != VIR_DRV_ESX) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* esx_nwfilter_driver.c: nwfilter driver functions for managing VMware ESX
|
* esx_nwfilter_driver.c: nwfilter driver functions for managing VMware ESX
|
||||||
* firewall rules
|
* firewall rules
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -41,7 +42,7 @@
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxNWFilterOpen(virConnectPtr conn,
|
esxNWFilterOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_ESX) {
|
if (conn->driver->no != VIR_DRV_ESX) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* esx_secret_driver.c: secret driver functions for VMware ESX secret manipulation
|
* esx_secret_driver.c: secret driver functions for VMware ESX secret manipulation
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxSecretOpen(virConnectPtr conn, virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
esxSecretOpen(virConnectPtr conn, virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_ESX) {
|
if (conn->driver->no != VIR_DRV_ESX) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
* esx_storage_driver.c: storage driver functions for managing VMware ESX
|
* esx_storage_driver.c: storage driver functions for managing VMware ESX
|
||||||
* host storage
|
* host storage
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
* Copyright (C) 2010 Matthias Bolte <matthias.bolte@googlemail.com>
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -104,7 +104,7 @@ esxStoragePoolLookupType(esxVI_Context *ctx, const char *poolName,
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
esxStorageOpen(virConnectPtr conn,
|
esxStorageOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_ESX) {
|
if (conn->driver->no != VIR_DRV_ESX) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
* interface_driver.c: backend driver methods to handle physical
|
* interface_driver.c: backend driver methods to handle physical
|
||||||
* interface configuration using the netcf library.
|
* interface configuration using the netcf library.
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2010 Red Hat, Inc.
|
* Copyright (C) 2006-2011 Red Hat, Inc.
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
* modify it under the terms of the GNU Lesser General Public
|
* modify it under the terms of the GNU Lesser General Public
|
||||||
@ -121,7 +121,7 @@ static struct netcf_if *interfaceDriverGetNetcfIF(struct netcf *ncf, virInterfac
|
|||||||
|
|
||||||
static virDrvOpenStatus interfaceOpenInterface(virConnectPtr conn,
|
static virDrvOpenStatus interfaceOpenInterface(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
struct interface_driver *driverState;
|
struct interface_driver *driverState;
|
||||||
|
|
||||||
|
@ -1059,7 +1059,7 @@ libxlActive(void)
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
libxlOpen(virConnectPtr conn,
|
libxlOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->uri == NULL) {
|
if (conn->uri == NULL) {
|
||||||
if (libxl_driver == NULL)
|
if (libxl_driver == NULL)
|
||||||
@ -1969,7 +1969,7 @@ cleanup:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
libxlDomainCoreDump(virDomainPtr dom, const char *to, int flags)
|
libxlDomainCoreDump(virDomainPtr dom, const char *to, unsigned int flags)
|
||||||
{
|
{
|
||||||
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
||||||
libxlDomainObjPrivatePtr priv;
|
libxlDomainObjPrivatePtr priv;
|
||||||
@ -2479,7 +2479,7 @@ cleanup:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
libxlDomainGetXMLDesc(virDomainPtr dom, int flags)
|
libxlDomainGetXMLDesc(virDomainPtr dom, unsigned int flags)
|
||||||
{
|
{
|
||||||
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
libxlDriverPrivatePtr driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
|
@ -110,7 +110,7 @@ static void lxcDomainEventQueue(lxc_driver_t *driver,
|
|||||||
|
|
||||||
static virDrvOpenStatus lxcOpen(virConnectPtr conn,
|
static virDrvOpenStatus lxcOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
/* Verify uri was specified */
|
/* Verify uri was specified */
|
||||||
if (conn->uri == NULL) {
|
if (conn->uri == NULL) {
|
||||||
@ -953,7 +953,7 @@ cleanup:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *lxcDomainGetXMLDesc(virDomainPtr dom,
|
static char *lxcDomainGetXMLDesc(virDomainPtr dom,
|
||||||
int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
lxc_driver_t *driver = dom->conn->privateData;
|
lxc_driver_t *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
|
@ -2010,7 +2010,7 @@ cleanup:
|
|||||||
|
|
||||||
static virDrvOpenStatus networkOpenNetwork(virConnectPtr conn,
|
static virDrvOpenStatus networkOpenNetwork(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (!driverState)
|
if (!driverState)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
@ -2415,7 +2415,9 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *networkGetXMLDesc(virNetworkPtr net, int flags ATTRIBUTE_UNUSED) {
|
static char *networkGetXMLDesc(virNetworkPtr net,
|
||||||
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
struct network_driver *driver = net->conn->networkPrivateData;
|
struct network_driver *driver = net->conn->networkPrivateData;
|
||||||
virNetworkObjPtr network;
|
virNetworkObjPtr network;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* node_device_hal.c: node device enumeration - HAL-based implementation
|
* node_device_hal.c: node device enumeration - HAL-based implementation
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2008 Virtual Iron Software, Inc.
|
* Copyright (C) 2008 Virtual Iron Software, Inc.
|
||||||
* Copyright (C) 2008 David F. Lively
|
* Copyright (C) 2008 David F. Lively
|
||||||
*
|
*
|
||||||
@ -861,7 +862,7 @@ static int halDeviceMonitorActive(void)
|
|||||||
|
|
||||||
static virDrvOpenStatus halNodeDrvOpen(virConnectPtr conn,
|
static virDrvOpenStatus halNodeDrvOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (driverState == NULL)
|
if (driverState == NULL)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -1721,7 +1721,7 @@ static int udevDeviceMonitorActive(void)
|
|||||||
|
|
||||||
static virDrvOpenStatus udevNodeDrvOpen(virConnectPtr conn,
|
static virDrvOpenStatus udevNodeDrvOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (driverState == NULL) {
|
if (driverState == NULL) {
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -272,7 +272,8 @@ cleanup:
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
nwfilterOpen(virConnectPtr conn,
|
nwfilterOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
if (!driverState)
|
if (!driverState)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
@ -411,7 +412,8 @@ cleanup:
|
|||||||
|
|
||||||
static char *
|
static char *
|
||||||
nwfilterGetXMLDesc(virNWFilterPtr obj,
|
nwfilterGetXMLDesc(virNWFilterPtr obj,
|
||||||
int flags) {
|
unsigned int flags)
|
||||||
|
{
|
||||||
virNWFilterDriverStatePtr driver = obj->conn->nwfilterPrivateData;
|
virNWFilterDriverStatePtr driver = obj->conn->nwfilterPrivateData;
|
||||||
virNWFilterObjPtr nwfilter;
|
virNWFilterObjPtr nwfilter;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
|
@ -456,7 +456,7 @@ static int openvzDomainIsUpdated(virDomainPtr dom ATTRIBUTE_UNUSED)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *openvzDomainGetXMLDesc(virDomainPtr dom, int flags) {
|
static char *openvzDomainGetXMLDesc(virDomainPtr dom, unsigned int flags) {
|
||||||
struct openvz_driver *driver = dom->conn->privateData;
|
struct openvz_driver *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
@ -1281,7 +1281,7 @@ openvzDomainSetVcpus(virDomainPtr dom, unsigned int nvcpus)
|
|||||||
|
|
||||||
static virDrvOpenStatus openvzOpen(virConnectPtr conn,
|
static virDrvOpenStatus openvzOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
struct openvz_driver *driver;
|
struct openvz_driver *driver;
|
||||||
|
|
||||||
|
@ -1128,7 +1128,7 @@ exit:
|
|||||||
|
|
||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
phypOpen(virConnectPtr conn,
|
phypOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
|
virConnectAuthPtr auth, unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
LIBSSH2_SESSION *session = NULL;
|
LIBSSH2_SESSION *session = NULL;
|
||||||
ConnectionData *connection_data = NULL;
|
ConnectionData *connection_data = NULL;
|
||||||
@ -3307,7 +3307,7 @@ cleanup:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
phypDomainGetXMLDesc(virDomainPtr dom, int flags)
|
phypDomainGetXMLDesc(virDomainPtr dom, unsigned int flags)
|
||||||
{
|
{
|
||||||
ConnectionData *connection_data = dom->conn->networkPrivateData;
|
ConnectionData *connection_data = dom->conn->networkPrivateData;
|
||||||
phyp_driverPtr phyp_driver = dom->conn->privateData;
|
phyp_driverPtr phyp_driver = dom->conn->privateData;
|
||||||
@ -3725,7 +3725,7 @@ phypDomainSetCPU(virDomainPtr dom, unsigned int nvcpus)
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
phypVIOSDriverOpen(virConnectPtr conn,
|
phypVIOSDriverOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (conn->driver->no != VIR_DRV_PHYP)
|
if (conn->driver->no != VIR_DRV_PHYP)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
@ -800,7 +800,8 @@ static int qemuDomainSnapshotSetCurrentInactive(virDomainObjPtr vm,
|
|||||||
|
|
||||||
static virDrvOpenStatus qemudOpen(virConnectPtr conn,
|
static virDrvOpenStatus qemudOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
if (conn->uri == NULL) {
|
if (conn->uri == NULL) {
|
||||||
if (qemu_driver == NULL)
|
if (qemu_driver == NULL)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
@ -2585,7 +2586,7 @@ getCompressionType(struct qemud_driver *driver)
|
|||||||
|
|
||||||
static int qemudDomainCoreDump(virDomainPtr dom,
|
static int qemudDomainCoreDump(virDomainPtr dom,
|
||||||
const char *path,
|
const char *path,
|
||||||
int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
struct qemud_driver *driver = dom->conn->privateData;
|
struct qemud_driver *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
@ -3818,7 +3819,8 @@ cleanup:
|
|||||||
|
|
||||||
|
|
||||||
static char *qemuDomainGetXMLDesc(virDomainPtr dom,
|
static char *qemuDomainGetXMLDesc(virDomainPtr dom,
|
||||||
int flags) {
|
unsigned int flags)
|
||||||
|
{
|
||||||
struct qemud_driver *driver = dom->conn->privateData;
|
struct qemud_driver *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
|
@ -286,7 +286,7 @@ static int
|
|||||||
doRemoteOpen (virConnectPtr conn,
|
doRemoteOpen (virConnectPtr conn,
|
||||||
struct private_data *priv,
|
struct private_data *priv,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
struct qparam_set *vars = NULL;
|
struct qparam_set *vars = NULL;
|
||||||
char *transport_str = NULL;
|
char *transport_str = NULL;
|
||||||
@ -741,7 +741,7 @@ remoteOpenSecondaryDriver(virConnectPtr conn,
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
remoteOpen (virConnectPtr conn,
|
remoteOpen (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth,
|
virConnectAuthPtr auth,
|
||||||
int flags)
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
struct private_data *priv;
|
struct private_data *priv;
|
||||||
int ret, rflags = 0;
|
int ret, rflags = 0;
|
||||||
@ -1989,7 +1989,7 @@ done:
|
|||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteGenericOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
remoteGenericOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
int flags, void **genericPrivateData)
|
unsigned int flags, void **genericPrivateData)
|
||||||
{
|
{
|
||||||
if (inside_daemon)
|
if (inside_daemon)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
@ -2048,7 +2048,8 @@ remoteGenericClose(virConnectPtr conn, void **genericPrivateData)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteNetworkOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
remoteNetworkOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
return remoteGenericOpen(conn, auth, flags, &conn->networkPrivateData);
|
return remoteGenericOpen(conn, auth, flags, &conn->networkPrivateData);
|
||||||
}
|
}
|
||||||
@ -2062,7 +2063,8 @@ remoteNetworkClose(virConnectPtr conn)
|
|||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteInterfaceOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
remoteInterfaceOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
return remoteGenericOpen(conn, auth, flags, &conn->interfacePrivateData);
|
return remoteGenericOpen(conn, auth, flags, &conn->interfacePrivateData);
|
||||||
}
|
}
|
||||||
@ -2076,7 +2078,8 @@ remoteInterfaceClose(virConnectPtr conn)
|
|||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteStorageOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
remoteStorageOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
return remoteGenericOpen(conn, auth, flags, &conn->storagePrivateData);
|
return remoteGenericOpen(conn, auth, flags, &conn->storagePrivateData);
|
||||||
}
|
}
|
||||||
@ -2135,7 +2138,8 @@ done:
|
|||||||
/*----------------------------------------------------------------------*/
|
/*----------------------------------------------------------------------*/
|
||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteDevMonOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
remoteDevMonOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
return remoteGenericOpen(conn, auth, flags, &conn->devMonPrivateData);
|
return remoteGenericOpen(conn, auth, flags, &conn->devMonPrivateData);
|
||||||
}
|
}
|
||||||
@ -2224,7 +2228,8 @@ done:
|
|||||||
/* ------------------------------------------------------------- */
|
/* ------------------------------------------------------------- */
|
||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteNWFilterOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
remoteNWFilterOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
return remoteGenericOpen(conn, auth, flags, &conn->nwfilterPrivateData);
|
return remoteGenericOpen(conn, auth, flags, &conn->nwfilterPrivateData);
|
||||||
}
|
}
|
||||||
@ -3145,7 +3150,8 @@ remoteDomainBuildEventControlError(virNetClientProgramPtr prog ATTRIBUTE_UNUSED,
|
|||||||
|
|
||||||
|
|
||||||
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
static virDrvOpenStatus ATTRIBUTE_NONNULL (1)
|
||||||
remoteSecretOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
remoteSecretOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags)
|
||||||
{
|
{
|
||||||
return remoteGenericOpen(conn, auth, flags, &conn->secretPrivateData);
|
return remoteGenericOpen(conn, auth, flags, &conn->secretPrivateData);
|
||||||
}
|
}
|
||||||
|
@ -358,7 +358,7 @@ struct remote_open_args {
|
|||||||
* yet do that using the remote_internal driver.
|
* yet do that using the remote_internal driver.
|
||||||
*/
|
*/
|
||||||
remote_string name;
|
remote_string name;
|
||||||
int flags;
|
unsigned int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_supports_feature_args {
|
struct remote_supports_feature_args {
|
||||||
@ -732,7 +732,7 @@ struct remote_domain_restore_args {
|
|||||||
struct remote_domain_core_dump_args {
|
struct remote_domain_core_dump_args {
|
||||||
remote_nonnull_domain dom;
|
remote_nonnull_domain dom;
|
||||||
remote_nonnull_string to;
|
remote_nonnull_string to;
|
||||||
int flags;
|
unsigned int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_domain_screenshot_args {
|
struct remote_domain_screenshot_args {
|
||||||
@ -747,7 +747,7 @@ struct remote_domain_screenshot_ret {
|
|||||||
|
|
||||||
struct remote_domain_get_xml_desc_args {
|
struct remote_domain_get_xml_desc_args {
|
||||||
remote_nonnull_domain dom;
|
remote_nonnull_domain dom;
|
||||||
int flags;
|
unsigned int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_domain_get_xml_desc_ret {
|
struct remote_domain_get_xml_desc_ret {
|
||||||
@ -1052,7 +1052,7 @@ struct remote_network_destroy_args {
|
|||||||
|
|
||||||
struct remote_network_get_xml_desc_args {
|
struct remote_network_get_xml_desc_args {
|
||||||
remote_nonnull_network net;
|
remote_nonnull_network net;
|
||||||
int flags;
|
unsigned int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_network_get_xml_desc_ret {
|
struct remote_network_get_xml_desc_ret {
|
||||||
@ -1124,7 +1124,7 @@ struct remote_nwfilter_undefine_args {
|
|||||||
|
|
||||||
struct remote_nwfilter_get_xml_desc_args {
|
struct remote_nwfilter_get_xml_desc_args {
|
||||||
remote_nonnull_nwfilter nwfilter;
|
remote_nonnull_nwfilter nwfilter;
|
||||||
int flags;
|
unsigned int flags;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct remote_nwfilter_get_xml_desc_ret {
|
struct remote_nwfilter_get_xml_desc_ret {
|
||||||
|
@ -81,7 +81,7 @@ struct remote_node_get_memory_stats {
|
|||||||
};
|
};
|
||||||
struct remote_open_args {
|
struct remote_open_args {
|
||||||
remote_string name;
|
remote_string name;
|
||||||
int flags;
|
u_int flags;
|
||||||
};
|
};
|
||||||
struct remote_supports_feature_args {
|
struct remote_supports_feature_args {
|
||||||
int feature;
|
int feature;
|
||||||
@ -422,7 +422,7 @@ struct remote_domain_restore_args {
|
|||||||
struct remote_domain_core_dump_args {
|
struct remote_domain_core_dump_args {
|
||||||
remote_nonnull_domain dom;
|
remote_nonnull_domain dom;
|
||||||
remote_nonnull_string to;
|
remote_nonnull_string to;
|
||||||
int flags;
|
u_int flags;
|
||||||
};
|
};
|
||||||
struct remote_domain_screenshot_args {
|
struct remote_domain_screenshot_args {
|
||||||
remote_nonnull_domain dom;
|
remote_nonnull_domain dom;
|
||||||
@ -434,7 +434,7 @@ struct remote_domain_screenshot_ret {
|
|||||||
};
|
};
|
||||||
struct remote_domain_get_xml_desc_args {
|
struct remote_domain_get_xml_desc_args {
|
||||||
remote_nonnull_domain dom;
|
remote_nonnull_domain dom;
|
||||||
int flags;
|
u_int flags;
|
||||||
};
|
};
|
||||||
struct remote_domain_get_xml_desc_ret {
|
struct remote_domain_get_xml_desc_ret {
|
||||||
remote_nonnull_string xml;
|
remote_nonnull_string xml;
|
||||||
@ -726,7 +726,7 @@ struct remote_network_destroy_args {
|
|||||||
};
|
};
|
||||||
struct remote_network_get_xml_desc_args {
|
struct remote_network_get_xml_desc_args {
|
||||||
remote_nonnull_network net;
|
remote_nonnull_network net;
|
||||||
int flags;
|
u_int flags;
|
||||||
};
|
};
|
||||||
struct remote_network_get_xml_desc_ret {
|
struct remote_network_get_xml_desc_ret {
|
||||||
remote_nonnull_string xml;
|
remote_nonnull_string xml;
|
||||||
@ -782,7 +782,7 @@ struct remote_nwfilter_undefine_args {
|
|||||||
};
|
};
|
||||||
struct remote_nwfilter_get_xml_desc_args {
|
struct remote_nwfilter_get_xml_desc_args {
|
||||||
remote_nonnull_nwfilter nwfilter;
|
remote_nonnull_nwfilter nwfilter;
|
||||||
int flags;
|
u_int flags;
|
||||||
};
|
};
|
||||||
struct remote_nwfilter_get_xml_desc_ret {
|
struct remote_nwfilter_get_xml_desc_ret {
|
||||||
remote_nonnull_string xml;
|
remote_nonnull_string xml;
|
||||||
|
@ -525,7 +525,7 @@ cleanup:
|
|||||||
|
|
||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
secretOpen(virConnectPtr conn, virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
secretOpen(virConnectPtr conn, virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (driverState == NULL)
|
if (driverState == NULL)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
|
@ -322,7 +322,7 @@ storagePoolLookupByVolume(virStorageVolPtr vol) {
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
storageOpen(virConnectPtr conn,
|
storageOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (!driverState)
|
if (!driverState)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
|
@ -1099,7 +1099,7 @@ static int testOpenFromFile(virConnectPtr conn,
|
|||||||
|
|
||||||
static virDrvOpenStatus testOpen(virConnectPtr conn,
|
static virDrvOpenStatus testOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
testConnPtr privconn;
|
testConnPtr privconn;
|
||||||
@ -1904,7 +1904,7 @@ cleanup:
|
|||||||
|
|
||||||
static int testDomainCoreDump(virDomainPtr domain,
|
static int testDomainCoreDump(virDomainPtr domain,
|
||||||
const char *to,
|
const char *to,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
testConnPtr privconn = domain->conn->privateData;
|
testConnPtr privconn = domain->conn->privateData;
|
||||||
int fd = -1;
|
int fd = -1;
|
||||||
@ -2350,7 +2350,7 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *testDomainGetXMLDesc(virDomainPtr domain, int flags)
|
static char *testDomainGetXMLDesc(virDomainPtr domain, unsigned int flags)
|
||||||
{
|
{
|
||||||
testConnPtr privconn = domain->conn->privateData;
|
testConnPtr privconn = domain->conn->privateData;
|
||||||
virDomainDefPtr def;
|
virDomainDefPtr def;
|
||||||
@ -2843,7 +2843,7 @@ error:
|
|||||||
|
|
||||||
static virDrvOpenStatus testOpenNetwork(virConnectPtr conn,
|
static virDrvOpenStatus testOpenNetwork(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (STRNEQ(conn->driver->name, "Test"))
|
if (STRNEQ(conn->driver->name, "Test"))
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
@ -3177,7 +3177,9 @@ cleanup:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *testNetworkGetXMLDesc(virNetworkPtr network, int flags ATTRIBUTE_UNUSED) {
|
static char *testNetworkGetXMLDesc(virNetworkPtr network,
|
||||||
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
|
{
|
||||||
testConnPtr privconn = network->conn->privateData;
|
testConnPtr privconn = network->conn->privateData;
|
||||||
virNetworkObjPtr privnet;
|
virNetworkObjPtr privnet;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
@ -3290,7 +3292,7 @@ cleanup:
|
|||||||
|
|
||||||
static virDrvOpenStatus testOpenInterface(virConnectPtr conn,
|
static virDrvOpenStatus testOpenInterface(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if (STRNEQ(conn->driver->name, "Test"))
|
if (STRNEQ(conn->driver->name, "Test"))
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
@ -3714,7 +3716,7 @@ static int testStoragePoolObjSetDefaults(virStoragePoolObjPtr pool) {
|
|||||||
|
|
||||||
static virDrvOpenStatus testStorageOpen(virConnectPtr conn,
|
static virDrvOpenStatus testStorageOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (STRNEQ(conn->driver->name, "Test"))
|
if (STRNEQ(conn->driver->name, "Test"))
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
@ -4940,7 +4942,7 @@ cleanup:
|
|||||||
/* Node device implementations */
|
/* Node device implementations */
|
||||||
static virDrvOpenStatus testDevMonOpen(virConnectPtr conn,
|
static virDrvOpenStatus testDevMonOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (STRNEQ(conn->driver->name, "Test"))
|
if (STRNEQ(conn->driver->name, "Test"))
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
@ -5394,7 +5396,7 @@ static void testDomainEventQueue(testConnPtr driver,
|
|||||||
|
|
||||||
static virDrvOpenStatus testSecretOpen(virConnectPtr conn,
|
static virDrvOpenStatus testSecretOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (STRNEQ(conn->driver->name, "Test"))
|
if (STRNEQ(conn->driver->name, "Test"))
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
@ -5410,7 +5412,7 @@ static int testSecretClose(virConnectPtr conn) {
|
|||||||
|
|
||||||
static virDrvOpenStatus testNWFilterOpen(virConnectPtr conn,
|
static virDrvOpenStatus testNWFilterOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (STRNEQ(conn->driver->name, "Test"))
|
if (STRNEQ(conn->driver->name, "Test"))
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
|
|
||||||
|
@ -946,7 +946,7 @@ static void umlShutdownVMDaemon(virConnectPtr conn ATTRIBUTE_UNUSED,
|
|||||||
|
|
||||||
static virDrvOpenStatus umlOpen(virConnectPtr conn,
|
static virDrvOpenStatus umlOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
if (conn->uri == NULL) {
|
if (conn->uri == NULL) {
|
||||||
if (uml_driver == NULL)
|
if (uml_driver == NULL)
|
||||||
return VIR_DRV_OPEN_DECLINED;
|
return VIR_DRV_OPEN_DECLINED;
|
||||||
@ -1559,7 +1559,7 @@ cleanup:
|
|||||||
|
|
||||||
|
|
||||||
static char *umlDomainGetXMLDesc(virDomainPtr dom,
|
static char *umlDomainGetXMLDesc(virDomainPtr dom,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
struct uml_driver *driver = dom->conn->privateData;
|
struct uml_driver *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2008-2009 Sun Microsystems, Inc.
|
* Copyright (C) 2008-2009 Sun Microsystems, Inc.
|
||||||
*
|
*
|
||||||
* This file is part of a free software library; you can redistribute
|
* This file is part of a free software library; you can redistribute
|
||||||
@ -142,7 +142,7 @@ int vboxRegister(void) {
|
|||||||
|
|
||||||
static virDrvOpenStatus vboxOpenDummy(virConnectPtr conn,
|
static virDrvOpenStatus vboxOpenDummy(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
uid_t uid = getuid();
|
uid_t uid = getuid();
|
||||||
|
|
||||||
if (conn->uri == NULL ||
|
if (conn->uri == NULL ||
|
||||||
|
@ -961,7 +961,7 @@ static void vboxUninitialize(vboxGlobalData *data) {
|
|||||||
|
|
||||||
static virDrvOpenStatus vboxOpen(virConnectPtr conn,
|
static virDrvOpenStatus vboxOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
vboxGlobalData *data = NULL;
|
vboxGlobalData *data = NULL;
|
||||||
uid_t uid = getuid();
|
uid_t uid = getuid();
|
||||||
|
|
||||||
@ -2130,7 +2130,7 @@ vboxDomainGetMaxVcpus(virDomainPtr dom)
|
|||||||
VIR_DOMAIN_VCPU_MAXIMUM));
|
VIR_DOMAIN_VCPU_MAXIMUM));
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *vboxDomainGetXMLDesc(virDomainPtr dom, int flags) {
|
static char *vboxDomainGetXMLDesc(virDomainPtr dom, unsigned int flags) {
|
||||||
VBOX_OBJECT_CHECK(dom->conn, char *, NULL);
|
VBOX_OBJECT_CHECK(dom->conn, char *, NULL);
|
||||||
virDomainDefPtr def = NULL;
|
virDomainDefPtr def = NULL;
|
||||||
IMachine *machine = NULL;
|
IMachine *machine = NULL;
|
||||||
@ -6938,7 +6938,7 @@ static int vboxDomainEventDeregisterAny(virConnectPtr conn,
|
|||||||
*/
|
*/
|
||||||
static virDrvOpenStatus vboxNetworkOpen(virConnectPtr conn,
|
static virDrvOpenStatus vboxNetworkOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
vboxGlobalData *data = conn->privateData;
|
vboxGlobalData *data = conn->privateData;
|
||||||
|
|
||||||
if (STRNEQ(conn->driver->name, "VBOX"))
|
if (STRNEQ(conn->driver->name, "VBOX"))
|
||||||
@ -7574,7 +7574,8 @@ static int vboxNetworkDestroy(virNetworkPtr network) {
|
|||||||
return vboxNetworkUndefineDestroy(network, false);
|
return vboxNetworkUndefineDestroy(network, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
static char *vboxNetworkGetXMLDesc(virNetworkPtr network, int flags ATTRIBUTE_UNUSED) {
|
static char *vboxNetworkGetXMLDesc(virNetworkPtr network,
|
||||||
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
VBOX_OBJECT_HOST_CHECK(network->conn, char *, NULL);
|
VBOX_OBJECT_HOST_CHECK(network->conn, char *, NULL);
|
||||||
virNetworkDefPtr def = NULL;
|
virNetworkDefPtr def = NULL;
|
||||||
virNetworkIpDefPtr ipdef = NULL;
|
virNetworkIpDefPtr ipdef = NULL;
|
||||||
@ -7749,7 +7750,7 @@ cleanup:
|
|||||||
|
|
||||||
static virDrvOpenStatus vboxStorageOpen (virConnectPtr conn,
|
static virDrvOpenStatus vboxStorageOpen (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED) {
|
unsigned int flags ATTRIBUTE_UNUSED) {
|
||||||
vboxGlobalData *data = conn->privateData;
|
vboxGlobalData *data = conn->privateData;
|
||||||
|
|
||||||
if (STRNEQ(conn->driver->name, "VBOX"))
|
if (STRNEQ(conn->driver->name, "VBOX"))
|
||||||
|
@ -74,7 +74,7 @@ vmwareDataFreeFunc(void *data)
|
|||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
vmwareOpen(virConnectPtr conn,
|
vmwareOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
struct vmware_driver *driver;
|
struct vmware_driver *driver;
|
||||||
char * vmrun = NULL;
|
char * vmrun = NULL;
|
||||||
@ -792,7 +792,7 @@ vmwareDomainIsPersistent(virDomainPtr dom)
|
|||||||
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
vmwareDomainGetXMLDesc(virDomainPtr dom, int flags)
|
vmwareDomainGetXMLDesc(virDomainPtr dom, unsigned int flags)
|
||||||
{
|
{
|
||||||
struct vmware_driver *driver = dom->conn->privateData;
|
struct vmware_driver *driver = dom->conn->privateData;
|
||||||
virDomainObjPtr vm;
|
virDomainObjPtr vm;
|
||||||
|
@ -248,7 +248,7 @@ xenUnifiedXendProbe (void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
xenUnifiedOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags)
|
xenUnifiedOpen (virConnectPtr conn, virConnectAuthPtr auth, unsigned int flags)
|
||||||
{
|
{
|
||||||
int i, ret = VIR_DRV_OPEN_DECLINED;
|
int i, ret = VIR_DRV_OPEN_DECLINED;
|
||||||
xenUnifiedPrivatePtr priv;
|
xenUnifiedPrivatePtr priv;
|
||||||
@ -1081,7 +1081,7 @@ xenUnifiedDomainRestore (virConnectPtr conn, const char *from)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
xenUnifiedDomainCoreDump (virDomainPtr dom, const char *to, int flags)
|
xenUnifiedDomainCoreDump (virDomainPtr dom, const char *to, unsigned int flags)
|
||||||
{
|
{
|
||||||
GET_PRIVATE(dom->conn);
|
GET_PRIVATE(dom->conn);
|
||||||
int i;
|
int i;
|
||||||
@ -1233,7 +1233,7 @@ xenUnifiedDomainGetMaxVcpus (virDomainPtr dom)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
xenUnifiedDomainGetXMLDesc(virDomainPtr dom, int flags)
|
xenUnifiedDomainGetXMLDesc(virDomainPtr dom, unsigned int flags)
|
||||||
{
|
{
|
||||||
GET_PRIVATE(dom->conn);
|
GET_PRIVATE(dom->conn);
|
||||||
|
|
||||||
|
@ -2201,7 +2201,7 @@ xenHypervisorInit(void)
|
|||||||
virDrvOpenStatus
|
virDrvOpenStatus
|
||||||
xenHypervisorOpen(virConnectPtr conn,
|
xenHypervisorOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
|
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
|
||||||
|
@ -37,7 +37,7 @@ char *
|
|||||||
virDrvOpenStatus
|
virDrvOpenStatus
|
||||||
xenHypervisorOpen (virConnectPtr conn,
|
xenHypervisorOpen (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth,
|
virConnectAuthPtr auth,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
int xenHypervisorClose (virConnectPtr conn);
|
int xenHypervisorClose (virConnectPtr conn);
|
||||||
int xenHypervisorGetVersion (virConnectPtr conn,
|
int xenHypervisorGetVersion (virConnectPtr conn,
|
||||||
unsigned long *hvVer);
|
unsigned long *hvVer);
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* /etc/xen
|
* /etc/xen
|
||||||
* /var/lib/xend/domains
|
* /var/lib/xend/domains
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Red Hat, Inc.
|
* Copyright (C) 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2008 VirtualIron
|
* Copyright (C) 2008 VirtualIron
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -383,7 +383,7 @@ cleanup:
|
|||||||
virDrvOpenStatus
|
virDrvOpenStatus
|
||||||
xenInotifyOpen(virConnectPtr conn,
|
xenInotifyOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
DIR *dh;
|
DIR *dh;
|
||||||
struct dirent *ent;
|
struct dirent *ent;
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* xen_inofify.h: Xen notification of xml files
|
* xen_inofify.h: Xen notification of xml files
|
||||||
*
|
*
|
||||||
|
* Copyright (C) 2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2008 VirtualIron
|
* Copyright (C) 2008 VirtualIron
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -29,7 +30,7 @@ extern struct xenUnifiedDriver xenInotifyDriver;
|
|||||||
|
|
||||||
virDrvOpenStatus xenInotifyOpen (virConnectPtr conn,
|
virDrvOpenStatus xenInotifyOpen (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth,
|
virConnectAuthPtr auth,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
int xenInotifyClose (virConnectPtr conn);
|
int xenInotifyClose (virConnectPtr conn);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1323,7 +1323,7 @@ error:
|
|||||||
virDrvOpenStatus
|
virDrvOpenStatus
|
||||||
xenDaemonOpen(virConnectPtr conn,
|
xenDaemonOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
char *port = NULL;
|
char *port = NULL;
|
||||||
int ret = VIR_DRV_OPEN_ERROR;
|
int ret = VIR_DRV_OPEN_ERROR;
|
||||||
@ -1629,7 +1629,7 @@ xenDaemonDomainSave(virDomainPtr domain, const char *filename)
|
|||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
xenDaemonDomainCoreDump(virDomainPtr domain, const char *filename,
|
xenDaemonDomainCoreDump(virDomainPtr domain, const char *filename,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
if ((domain == NULL) || (domain->conn == NULL) || (domain->name == NULL) ||
|
if ((domain == NULL) || (domain->conn == NULL) || (domain->name == NULL) ||
|
||||||
(filename == NULL)) {
|
(filename == NULL)) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* xend_internal.h
|
* xend_internal.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2008, 2010 Red Hat, Inc.
|
* Copyright (C) 2006-2008, 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2005,2006
|
* Copyright (C) 2005,2006
|
||||||
*
|
*
|
||||||
* Anthony Liguori <aliguori@us.ibm.com>
|
* Anthony Liguori <aliguori@us.ibm.com>
|
||||||
@ -95,7 +95,8 @@ xenDaemonDomainFetch(virConnectPtr xend,
|
|||||||
|
|
||||||
|
|
||||||
/* refactored ones */
|
/* refactored ones */
|
||||||
virDrvOpenStatus xenDaemonOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags);
|
virDrvOpenStatus xenDaemonOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags);
|
||||||
int xenDaemonClose(virConnectPtr conn);
|
int xenDaemonClose(virConnectPtr conn);
|
||||||
int xenDaemonGetVersion(virConnectPtr conn, unsigned long *hvVer);
|
int xenDaemonGetVersion(virConnectPtr conn, unsigned long *hvVer);
|
||||||
int xenDaemonNodeGetInfo(virConnectPtr conn, virNodeInfoPtr info);
|
int xenDaemonNodeGetInfo(virConnectPtr conn, virNodeInfoPtr info);
|
||||||
|
@ -442,7 +442,7 @@ int xenXMConfigCacheRefresh (virConnectPtr conn) {
|
|||||||
virDrvOpenStatus
|
virDrvOpenStatus
|
||||||
xenXMOpen (virConnectPtr conn,
|
xenXMOpen (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
xenUnifiedPrivatePtr priv = conn->privateData;
|
xenUnifiedPrivatePtr priv = conn->privateData;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* xm_internal.h: helper routines for dealing with inactive domains
|
* xm_internal.h: helper routines for dealing with inactive domains
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006-2007, 2010 Red Hat, Inc.
|
* Copyright (C) 2006-2007, 2010-2011 Red Hat, Inc.
|
||||||
* Copyright (C) 2006 Daniel P. Berrange
|
* Copyright (C) 2006 Daniel P. Berrange
|
||||||
*
|
*
|
||||||
* This library is free software; you can redistribute it and/or
|
* This library is free software; you can redistribute it and/or
|
||||||
@ -36,7 +36,8 @@ int xenXMConfigCacheRefresh (virConnectPtr conn);
|
|||||||
int xenXMConfigCacheAddFile(virConnectPtr conn, const char *filename);
|
int xenXMConfigCacheAddFile(virConnectPtr conn, const char *filename);
|
||||||
int xenXMConfigCacheRemoveFile(virConnectPtr conn, const char *filename);
|
int xenXMConfigCacheRemoveFile(virConnectPtr conn, const char *filename);
|
||||||
|
|
||||||
virDrvOpenStatus xenXMOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags);
|
virDrvOpenStatus xenXMOpen(virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags);
|
||||||
int xenXMClose(virConnectPtr conn);
|
int xenXMClose(virConnectPtr conn);
|
||||||
const char *xenXMGetType(virConnectPtr conn);
|
const char *xenXMGetType(virConnectPtr conn);
|
||||||
int xenXMDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info);
|
int xenXMDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info);
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* xs_internal.c: access to Xen Store
|
* xs_internal.c: access to Xen Store
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006, 2009-2010 Red Hat, Inc.
|
* Copyright (C) 2006, 2009-2011 Red Hat, Inc.
|
||||||
*
|
*
|
||||||
* See COPYING.LIB for the License of this software
|
* See COPYING.LIB for the License of this software
|
||||||
*
|
*
|
||||||
@ -267,7 +267,7 @@ virDomainGetVMInfo(virDomainPtr domain, const char *vm, const char *name)
|
|||||||
virDrvOpenStatus
|
virDrvOpenStatus
|
||||||
xenStoreOpen(virConnectPtr conn,
|
xenStoreOpen(virConnectPtr conn,
|
||||||
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
virConnectAuthPtr auth ATTRIBUTE_UNUSED,
|
||||||
int flags ATTRIBUTE_UNUSED)
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
|
xenUnifiedPrivatePtr priv = (xenUnifiedPrivatePtr) conn->privateData;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* xs_internal.h: internal API for access to XenStore
|
* xs_internal.h: internal API for access to XenStore
|
||||||
*
|
*
|
||||||
* Copyright (C) 2006, 2010 Red Hat, Inc.
|
* Copyright (C) 2006, 2010-2011 Red Hat, Inc.
|
||||||
*
|
*
|
||||||
* See COPYING.LIB for the License of this software
|
* See COPYING.LIB for the License of this software
|
||||||
*
|
*
|
||||||
@ -19,7 +19,7 @@ int xenStoreInit (void);
|
|||||||
|
|
||||||
virDrvOpenStatus xenStoreOpen (virConnectPtr conn,
|
virDrvOpenStatus xenStoreOpen (virConnectPtr conn,
|
||||||
virConnectAuthPtr auth,
|
virConnectAuthPtr auth,
|
||||||
int flags);
|
unsigned int flags);
|
||||||
int xenStoreClose (virConnectPtr conn);
|
int xenStoreClose (virConnectPtr conn);
|
||||||
int xenStoreGetDomainInfo (virDomainPtr domain,
|
int xenStoreGetDomainInfo (virDomainPtr domain,
|
||||||
virDomainInfoPtr info);
|
virDomainInfoPtr info);
|
||||||
|
@ -91,7 +91,8 @@ getCapsObject (void)
|
|||||||
* Return VIR_DRV_OPEN_SUCCESS on success, else VIR_DRV_OPEN_ERROR
|
* Return VIR_DRV_OPEN_SUCCESS on success, else VIR_DRV_OPEN_ERROR
|
||||||
*/
|
*/
|
||||||
static virDrvOpenStatus
|
static virDrvOpenStatus
|
||||||
xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth, int flags ATTRIBUTE_UNUSED)
|
xenapiOpen (virConnectPtr conn, virConnectAuthPtr auth,
|
||||||
|
unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
char *username = NULL;
|
char *username = NULL;
|
||||||
char *password = NULL;
|
char *password = NULL;
|
||||||
@ -1294,7 +1295,7 @@ xenapiDomainGetMaxVcpus (virDomainPtr dom)
|
|||||||
* Returns XML string of the domain configuration on success or -1 in case of error
|
* Returns XML string of the domain configuration on success or -1 in case of error
|
||||||
*/
|
*/
|
||||||
static char *
|
static char *
|
||||||
xenapiDomainGetXMLDesc(virDomainPtr dom, int flags ATTRIBUTE_UNUSED)
|
xenapiDomainGetXMLDesc(virDomainPtr dom, unsigned int flags ATTRIBUTE_UNUSED)
|
||||||
{
|
{
|
||||||
xen_vm vm=NULL;
|
xen_vm vm=NULL;
|
||||||
xen_vm_set *vms;
|
xen_vm_set *vms;
|
||||||
|
Loading…
Reference in New Issue
Block a user