+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>
* src/*.c: Bulk replace 'informations' with 'information' to
#define XEN_HYPERVISOR_SOCKET "/proc/xen/privcmd"
+#ifndef PROXY
static const char * xenHypervisorGetType(virConnectPtr conn);
static unsigned long xenHypervisorGetMaxMemory(virDomainPtr domain);
+#endif
static int xenHypervisorInit(void);
-#ifndef XEN_RO
+#ifndef PROXY
static virDriver xenHypervisorDriver = {
VIR_DRV_XEN_HYPERVISOR,
"Xen",
NULL, /* domainSave */
NULL /* domainRestore */
};
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/**
* virXenError:
}
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xenHypervisorRegister:
*
virRegisterDriver(&xenHypervisorDriver);
}
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/**
* xenHypervisorOpen:
return (0);
}
+#ifndef PROXY
/**
* xenHypervisorGetType:
* @conn: pointer to the Xen Hypervisor block
}
return("Xen");
}
+#endif
/**
* xenHypervisorGetVersion:
return((unsigned long) dominfo.max_pages * 4);
}
+#ifndef PROXY
/**
* xenHypervisorGetMaxMemory:
* @domain: a domain object or NULL
return(xenHypervisorGetDomMaxMemory(domain->conn, domain->handle));
}
+#endif
/**
* xenHypervisorGetDomInfo:
#include "xend_internal.h"
#include "xen_internal.h" /* for DOM0_INTERFACE_VERSION */
+#ifndef PROXY
static const char * xenDaemonGetType(virConnectPtr conn);
static int xenDaemonListDomains(virConnectPtr conn, int *ids, int maxids);
static int xenDaemonNumOfDomains(virConnectPtr conn);
static virDomainPtr xenDaemonCreateLinux(virConnectPtr conn,
const char *xmlDesc,
unsigned int flags);
+#endif
-#ifndef XEN_RO
+#ifndef PROXY
static virDriver xenDaemonDriver = {
VIR_DRV_XEN_DAEMON,
"XenDaemon",
{
virRegisterDriver(&xenDaemonDriver);
}
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/**
* xend_connection_type:
******
******
*****************************************************************/
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xend_parse_sexp_desc_os:
free(ret);
return (NULL);
}
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/**
* sexpr_to_xend_domain_info:
return (0);
}
-#ifndef XEN_RO
+#ifndef PROXY
/**
* sexpr_to_domain:
* @conn: an existing virtual connection block
virFreeDomain(conn, ret);
return(NULL);
}
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/*****************************************************************
******
******
******
*****************************************************************/
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xenDaemonOpen:
* @conn: an existing virtual connection block
xmlFreeURI(uri);
return(-1);
}
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/**
* xenDaemonClose:
"target", buf, NULL);
}
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xenDaemonDomainDumpXML:
* @domain: a domain object
return (ret);
}
-#endif /* !XEN_RO */
+#endif /* !PROXY */
/**
* xenDaemonDomainGetInfo:
return (ret);
}
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xenDaemonDomainLookupByName:
* @conn: A xend instance
return (ret);
}
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xenDaemonGetType:
* @conn: pointer to the Xen Daemon block
return(0);
}
+#ifndef PROXY
/**
* xenDaemonListDomains:
* @conn: pointer to the hypervisor connection
sexpr_free(root);
return(ret);
}
+#endif
-#ifndef XEN_RO
+#ifndef PROXY
/**
* xenDaemonLookupByID:
* @conn: pointer to the hypervisor connection