WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] Need another level of indirection on some result param

To: Ewan Mellor <ewan@xxxxxxxxxxxxx>, Xen-API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] Need another level of indirection on some result parameters
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Fri, 27 Oct 2006 13:58:39 -0600
Delivery-date: Fri, 27 Oct 2006 12:59:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.7 (X11/20060909)
A patch I 'informally' sent before the xen-api.hg tree was created. Resending a version based on patch submission guidelines :-).

Jim



# HG changeset patch
# User jfehlig@xxxxxxxxxxxxxxxxxxxxxxxxx
# Date 1161978745 21600
# Node ID 5a33c690f64f157a78d90b79e71e05617f0109a5
# Parent  3923a7c48e1777692f7af8eb2caf06f9c35fe1b1
Need another level of indirection for the results parameter of various 
xen_class_get_* functions.

Signed-off-by: Jim Fehlig <jfehlig@xxxxxxxxxx>

diff -r 3923a7c48e17 -r 5a33c690f64f tools/libxen/include/xen_host.h
--- a/tools/libxen/include/xen_host.h   Fri Oct 27 16:46:27 2006 +0100
+++ b/tools/libxen/include/xen_host.h   Fri Oct 27 13:52:25 2006 -0600
@@ -24,6 +24,7 @@
 #include "xen_host_decl.h"
 #include "xen_string_string_map.h"
 #include "xen_vm_decl.h"
+#include "xen_vm.h"
 
 
 /*
@@ -211,7 +212,7 @@ xen_host_get_software_version(xen_sessio
  * Get the resident_VMs field of the given host.
  */
 extern bool
-xen_host_get_resident_vms(xen_session *session, xen_vm *result, xen_host host);
+xen_host_get_resident_vms(xen_session *session, xen_vm_set **result, xen_host 
host);
 
 
 /**
diff -r 3923a7c48e17 -r 5a33c690f64f tools/libxen/include/xen_vm.h
--- a/tools/libxen/include/xen_vm.h     Fri Oct 27 16:46:27 2006 +0100
+++ b/tools/libxen/include/xen_vm.h     Fri Oct 27 13:52:25 2006 -0600
@@ -51,7 +51,7 @@ typedef struct xen_vm_set
 typedef struct xen_vm_set
 {
     size_t size;
-    xen_vm *contents[];
+    xen_vm contents[];
 } xen_vm_set;
 
 /**
diff -r 3923a7c48e17 -r 5a33c690f64f tools/libxen/src/xen_host.c
--- a/tools/libxen/src/xen_host.c       Fri Oct 27 16:46:27 2006 +0100
+++ b/tools/libxen/src/xen_host.c       Fri Oct 27 13:52:25 2006 -0600
@@ -209,7 +209,7 @@ xen_host_get_software_version(xen_sessio
 
 
 bool
-xen_host_get_resident_vms(xen_session *session, xen_vm *result, xen_host host)
+xen_host_get_resident_vms(xen_session *session, xen_vm_set **result, xen_host 
host)
 {
     abstract_value param_values[] =
         {
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-API] [PATCH] Need another level of indirection on some result parameters, Jim Fehlig <=