mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
* proxy/Makefile.am src/xen_internal.c src/xend_internal.c: cleanup
code when compiled for the proxy, changed the command line macro and remove warnings. Daniel
This commit is contained in:
parent
53161d7cb2
commit
c3415fbd3a
@ -1,3 +1,9 @@
|
|||||||
|
Thu Jul 20 09:05:15 EDT 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
|
* proxy/Makefile.am src/xen_internal.c src/xend_internal.c: cleanup
|
||||||
|
code when compiled for the proxy, changed the command line macro and
|
||||||
|
remove warnings.
|
||||||
|
|
||||||
Wed Jul 19 17:26:48 EDT 2006 Daniel Berrange <berrange@redhat.com>
|
Wed Jul 19 17:26:48 EDT 2006 Daniel Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
* src/*.c: Bulk replace 'informations' with 'information' to
|
* src/*.c: Bulk replace 'informations' with 'information' to
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
INCLUDES = -I$(top_builddir)/include -I@top_srcdir@/include \
|
INCLUDES = -I$(top_builddir)/include -I@top_srcdir@/include \
|
||||||
-I@top_srcdir@/proxy -I@top_srcdir@/src @LIBXML_CFLAGS@ \
|
-I@top_srcdir@/proxy -I@top_srcdir@/src @LIBXML_CFLAGS@ \
|
||||||
-DXEN_RO
|
-DPROXY
|
||||||
|
|
||||||
|
|
||||||
libexec_PROGRAMS = libvirt_proxy
|
libexec_PROGRAMS = libvirt_proxy
|
||||||
|
@ -49,11 +49,13 @@ static int hv_version = 0;
|
|||||||
|
|
||||||
#define XEN_HYPERVISOR_SOCKET "/proc/xen/privcmd"
|
#define XEN_HYPERVISOR_SOCKET "/proc/xen/privcmd"
|
||||||
|
|
||||||
|
#ifndef PROXY
|
||||||
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
|
||||||
static int xenHypervisorInit(void);
|
static int xenHypervisorInit(void);
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
static virDriver xenHypervisorDriver = {
|
static virDriver xenHypervisorDriver = {
|
||||||
VIR_DRV_XEN_HYPERVISOR,
|
VIR_DRV_XEN_HYPERVISOR,
|
||||||
"Xen",
|
"Xen",
|
||||||
@ -89,7 +91,7 @@ static virDriver xenHypervisorDriver = {
|
|||||||
NULL, /* domainSave */
|
NULL, /* domainSave */
|
||||||
NULL /* domainRestore */
|
NULL /* domainRestore */
|
||||||
};
|
};
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* virXenError:
|
* virXenError:
|
||||||
@ -177,7 +179,7 @@ done:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenHypervisorRegister:
|
* xenHypervisorRegister:
|
||||||
*
|
*
|
||||||
@ -190,7 +192,7 @@ void xenHypervisorRegister(void)
|
|||||||
|
|
||||||
virRegisterDriver(&xenHypervisorDriver);
|
virRegisterDriver(&xenHypervisorDriver);
|
||||||
}
|
}
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xenHypervisorOpen:
|
* xenHypervisorOpen:
|
||||||
@ -333,6 +335,7 @@ xenHypervisorDoOp(int handle, dom0_op_t * op)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenHypervisorGetType:
|
* xenHypervisorGetType:
|
||||||
* @conn: pointer to the Xen Hypervisor block
|
* @conn: pointer to the Xen Hypervisor block
|
||||||
@ -352,6 +355,7 @@ xenHypervisorGetType(virConnectPtr conn)
|
|||||||
}
|
}
|
||||||
return("Xen");
|
return("Xen");
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xenHypervisorGetVersion:
|
* xenHypervisorGetVersion:
|
||||||
@ -558,6 +562,7 @@ xenHypervisorGetDomMaxMemory(virConnectPtr conn, int id)
|
|||||||
return((unsigned long) dominfo.max_pages * 4);
|
return((unsigned long) dominfo.max_pages * 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenHypervisorGetMaxMemory:
|
* xenHypervisorGetMaxMemory:
|
||||||
* @domain: a domain object or NULL
|
* @domain: a domain object or NULL
|
||||||
@ -577,6 +582,7 @@ xenHypervisorGetMaxMemory(virDomainPtr domain)
|
|||||||
|
|
||||||
return(xenHypervisorGetDomMaxMemory(domain->conn, domain->handle));
|
return(xenHypervisorGetDomMaxMemory(domain->conn, domain->handle));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xenHypervisorGetDomInfo:
|
* xenHypervisorGetDomInfo:
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include "xend_internal.h"
|
#include "xend_internal.h"
|
||||||
#include "xen_internal.h" /* for DOM0_INTERFACE_VERSION */
|
#include "xen_internal.h" /* for DOM0_INTERFACE_VERSION */
|
||||||
|
|
||||||
|
#ifndef PROXY
|
||||||
static const char * xenDaemonGetType(virConnectPtr conn);
|
static const char * xenDaemonGetType(virConnectPtr conn);
|
||||||
static int xenDaemonListDomains(virConnectPtr conn, int *ids, int maxids);
|
static int xenDaemonListDomains(virConnectPtr conn, int *ids, int maxids);
|
||||||
static int xenDaemonNumOfDomains(virConnectPtr conn);
|
static int xenDaemonNumOfDomains(virConnectPtr conn);
|
||||||
@ -45,8 +46,9 @@ static virDomainPtr xenDaemonLookupByUUID(virConnectPtr conn,
|
|||||||
static virDomainPtr xenDaemonCreateLinux(virConnectPtr conn,
|
static virDomainPtr xenDaemonCreateLinux(virConnectPtr conn,
|
||||||
const char *xmlDesc,
|
const char *xmlDesc,
|
||||||
unsigned int flags);
|
unsigned int flags);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
static virDriver xenDaemonDriver = {
|
static virDriver xenDaemonDriver = {
|
||||||
VIR_DRV_XEN_DAEMON,
|
VIR_DRV_XEN_DAEMON,
|
||||||
"XenDaemon",
|
"XenDaemon",
|
||||||
@ -92,7 +94,7 @@ void xenDaemonRegister(void)
|
|||||||
{
|
{
|
||||||
virRegisterDriver(&xenDaemonDriver);
|
virRegisterDriver(&xenDaemonDriver);
|
||||||
}
|
}
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xend_connection_type:
|
* xend_connection_type:
|
||||||
@ -1357,7 +1359,7 @@ xend_log(virConnectPtr xend, char *buffer, size_t n_buffer)
|
|||||||
******
|
******
|
||||||
******
|
******
|
||||||
*****************************************************************/
|
*****************************************************************/
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xend_parse_sexp_desc_os:
|
* xend_parse_sexp_desc_os:
|
||||||
@ -1624,7 +1626,7 @@ xend_parse_sexp_desc(struct sexpr *root)
|
|||||||
free(ret);
|
free(ret);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
}
|
}
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* sexpr_to_xend_domain_info:
|
* sexpr_to_xend_domain_info:
|
||||||
@ -1707,7 +1709,7 @@ sexpr_to_xend_node_info(struct sexpr *root, virNodeInfoPtr info)
|
|||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* sexpr_to_domain:
|
* sexpr_to_domain:
|
||||||
* @conn: an existing virtual connection block
|
* @conn: an existing virtual connection block
|
||||||
@ -1753,7 +1755,7 @@ error:
|
|||||||
virFreeDomain(conn, ret);
|
virFreeDomain(conn, ret);
|
||||||
return(NULL);
|
return(NULL);
|
||||||
}
|
}
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/*****************************************************************
|
/*****************************************************************
|
||||||
******
|
******
|
||||||
@ -1766,7 +1768,7 @@ error:
|
|||||||
******
|
******
|
||||||
******
|
******
|
||||||
*****************************************************************/
|
*****************************************************************/
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenDaemonOpen:
|
* xenDaemonOpen:
|
||||||
* @conn: an existing virtual connection block
|
* @conn: an existing virtual connection block
|
||||||
@ -1854,7 +1856,7 @@ failed:
|
|||||||
xmlFreeURI(uri);
|
xmlFreeURI(uri);
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xenDaemonClose:
|
* xenDaemonClose:
|
||||||
@ -2114,7 +2116,7 @@ xenDaemonDomainSetMemory(virDomainPtr domain, unsigned long memory)
|
|||||||
"target", buf, NULL);
|
"target", buf, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenDaemonDomainDumpXML:
|
* xenDaemonDomainDumpXML:
|
||||||
* @domain: a domain object
|
* @domain: a domain object
|
||||||
@ -2145,7 +2147,7 @@ xenDaemonDomainDumpXML(virDomainPtr domain)
|
|||||||
|
|
||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
#endif /* !XEN_RO */
|
#endif /* !PROXY */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xenDaemonDomainGetInfo:
|
* xenDaemonDomainGetInfo:
|
||||||
@ -2180,7 +2182,7 @@ xenDaemonDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info)
|
|||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenDaemonDomainLookupByName:
|
* xenDaemonDomainLookupByName:
|
||||||
* @conn: A xend instance
|
* @conn: A xend instance
|
||||||
@ -2246,7 +2248,7 @@ xenDaemonNodeGetInfo(virConnectPtr conn, virNodeInfoPtr info) {
|
|||||||
return (ret);
|
return (ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenDaemonGetType:
|
* xenDaemonGetType:
|
||||||
* @conn: pointer to the Xen Daemon block
|
* @conn: pointer to the Xen Daemon block
|
||||||
@ -2318,6 +2320,7 @@ xenDaemonGetVersion(virConnectPtr conn, unsigned long *hvVer)
|
|||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenDaemonListDomains:
|
* xenDaemonListDomains:
|
||||||
* @conn: pointer to the hypervisor connection
|
* @conn: pointer to the hypervisor connection
|
||||||
@ -2394,8 +2397,9 @@ error:
|
|||||||
sexpr_free(root);
|
sexpr_free(root);
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef XEN_RO
|
#ifndef PROXY
|
||||||
/**
|
/**
|
||||||
* xenDaemonLookupByID:
|
* xenDaemonLookupByID:
|
||||||
* @conn: pointer to the hypervisor connection
|
* @conn: pointer to the hypervisor connection
|
||||||
|
Loading…
x
Reference in New Issue
Block a user