[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.