os-cmpi-xen

changeset 100:891f3ab3933b

This set of patches allows the providers to be compiled with the tip of the unstable tree.
There are still two open problems
- integration with the vdi code
- NIC model.
I am seeing some Segfaults with this and I am working on fixing them.

Signed-off-by: Raj Subrahmanian <raj.subrahmanian@unisys.com>
author Jim Fehlig <jfehlig@novell.com>
date Thu Apr 19 15:52:48 2007 -0600 (2007-04-19)
parents 7ca3bbf0810a
children e3a930759ffc
files src/Xen_VirtualSystemManagementService_Resource.c src/xen_utils.c
line diff
     1.1 --- a/src/Xen_VirtualSystemManagementService_Resource.c	Thu Apr 19 15:50:09 2007 -0600
     1.2 +++ b/src/Xen_VirtualSystemManagementService_Resource.c	Thu Apr 19 15:52:48 2007 -0600
     1.3 @@ -72,7 +72,7 @@ static int populate_resource(xen_utils_s
     1.4  
     1.5     /* Get version */
     1.6     xen_host host = NULL;
     1.7 -   xen_session_get_this_host(session->xen, &host);
     1.8 +   xen_session_get_this_host(session->xen, &host, session->xen);
     1.9     xen_host_get_software_version(session->xen, &((*resource)->versions), host);
    1.10     xen_host_free(host);
    1.11     
    1.12 @@ -260,7 +260,7 @@ int Xen_VirtualSystemManagementService_d
    1.13     int rc;
    1.14     
    1.15     xen_host host;
    1.16 -   if (!xen_session_get_this_host(session->xen, &host)) {
    1.17 +   if (!xen_session_get_this_host(session->xen, &host, session->xen)) {
    1.18        /* Error description in session object. */
    1.19        return 0;
    1.20     }
    1.21 @@ -283,7 +283,7 @@ int Xen_VirtualSystemManagementService_e
    1.22     int rc;
    1.23     
    1.24     xen_host host;
    1.25 -   if (!xen_session_get_this_host(session->xen, &host)) {
    1.26 +   if (!xen_session_get_this_host(session->xen, &host, session->xen)) {
    1.27        /* Error description in session object. */
    1.28        return 0;
    1.29     }
     2.1 --- a/src/xen_utils.c	Thu Apr 19 15:50:09 2007 -0600
     2.2 +++ b/src/xen_utils.c	Thu Apr 19 15:52:48 2007 -0600
     2.3 @@ -315,7 +315,7 @@ static xen_vm_set* xen_utils_enum_domain
     2.4     xen_vm_set *resident_vms;
     2.5     char error_msg[XEN_UTILS_ERROR_BUF_LEN];
     2.6     
     2.7 -   if (!xen_session_get_this_host(session, &host)) {
     2.8 +   if (!xen_session_get_this_host(session, &host, session)) {
     2.9        /* Error description in session object. */
    2.10        XEN_UTILS_GET_ERROR_STRING(error_msg, session);
    2.11        _SBLIM_TRACE(1, ("--- xen_session_get_this_host failed: \"%s\"", error_msg));
    2.12 @@ -440,7 +440,7 @@ int xen_utils_validate_session(xen_utils
    2.13     /* Clear any errors and attempt a simple call */
    2.14     s->xen->ok = 1;
    2.15     xen_host host;
    2.16 -   if (xen_session_get_this_host(s->xen, &host) && s->xen->ok) {
    2.17 +   if (xen_session_get_this_host(s->xen, &host, s->xen) && s->xen->ok) {
    2.18        xen_host_free(host);
    2.19        return 1;
    2.20     }