direct-io.hg

changeset 12167:5bef3f695b55

uint64_t replaced with int64_t everywhere.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sat Oct 28 13:30:21 2006 +0100 (2006-10-28)
parents 819e93d30ce2
children faaa8256558b
files tools/libxen/include/xen_host_cpu.h tools/libxen/include/xen_int_float_map.h tools/libxen/include/xen_internal.h tools/libxen/include/xen_pif.h tools/libxen/include/xen_sr.h tools/libxen/include/xen_vdi.h tools/libxen/include/xen_vif.h tools/libxen/include/xen_vm.h tools/libxen/include/xen_vtpm.h tools/libxen/src/xen_common.c tools/libxen/src/xen_host_cpu.c tools/libxen/src/xen_pif.c tools/libxen/src/xen_sr.c tools/libxen/src/xen_vdi.c tools/libxen/src/xen_vif.c tools/libxen/src/xen_vm.c tools/libxen/src/xen_vtpm.c
line diff
     1.1 --- a/tools/libxen/include/xen_host_cpu.h	Sat Oct 28 12:15:40 2006 +0100
     1.2 +++ b/tools/libxen/include/xen_host_cpu.h	Sat Oct 28 13:30:21 2006 +0100
     1.3 @@ -65,9 +65,9 @@ typedef struct xen_host_cpu_record
     1.4      xen_host_cpu handle;
     1.5      char *uuid;
     1.6      struct xen_host_record_opt *host;
     1.7 -    uint64_t number;
     1.8 +    int64_t number;
     1.9      char *vendor;
    1.10 -    uint64_t speed;
    1.11 +    int64_t speed;
    1.12      char *modelname;
    1.13      struct xen_cpu_feature_set *features;
    1.14      double utilisation;
    1.15 @@ -191,7 +191,7 @@ xen_host_cpu_get_host(xen_session *sessi
    1.16   * Get the number field of the given host_cpu.
    1.17   */
    1.18  extern bool
    1.19 -xen_host_cpu_get_number(xen_session *session, uint64_t *result, xen_host_cpu host_cpu);
    1.20 +xen_host_cpu_get_number(xen_session *session, int64_t *result, xen_host_cpu host_cpu);
    1.21  
    1.22  
    1.23  /**
    1.24 @@ -205,7 +205,7 @@ xen_host_cpu_get_vendor(xen_session *ses
    1.25   * Get the speed field of the given host_cpu.
    1.26   */
    1.27  extern bool
    1.28 -xen_host_cpu_get_speed(xen_session *session, uint64_t *result, xen_host_cpu host_cpu);
    1.29 +xen_host_cpu_get_speed(xen_session *session, int64_t *result, xen_host_cpu host_cpu);
    1.30  
    1.31  
    1.32  /**
     2.1 --- a/tools/libxen/include/xen_int_float_map.h	Sat Oct 28 12:15:40 2006 +0100
     2.2 +++ b/tools/libxen/include/xen_int_float_map.h	Sat Oct 28 13:30:21 2006 +0100
     2.3 @@ -25,7 +25,7 @@
     2.4  
     2.5  typedef struct xen_int_float_map_contents
     2.6  {
     2.7 -  uint64_t key;
     2.8 +  int64_t key;
     2.9    double val;
    2.10  } xen_int_float_map_contents;
    2.11  
     3.1 --- a/tools/libxen/include/xen_internal.h	Sat Oct 28 12:15:40 2006 +0100
     3.2 +++ b/tools/libxen/include/xen_internal.h	Sat Oct 28 13:30:21 2006 +0100
     3.3 @@ -94,7 +94,7 @@ typedef struct abstract_value
     3.4      union
     3.5      {
     3.6          const char *string_val;
     3.7 -        uint64_t int_val;
     3.8 +        int64_t int_val;
     3.9          int enum_val;
    3.10          double double_val;
    3.11          bool bool_val;
     4.1 --- a/tools/libxen/include/xen_pif.h	Sat Oct 28 12:15:40 2006 +0100
     4.2 +++ b/tools/libxen/include/xen_pif.h	Sat Oct 28 13:30:21 2006 +0100
     4.3 @@ -69,7 +69,7 @@ typedef struct xen_pif_record
     4.4      struct xen_network_record_opt *network;
     4.5      struct xen_host_record_opt *host;
     4.6      char *mac;
     4.7 -    uint64_t mtu;
     4.8 +    int64_t mtu;
     4.9      char *vlan;
    4.10      double io_read_kbs;
    4.11      double io_write_kbs;
    4.12 @@ -214,7 +214,7 @@ xen_pif_get_mac(xen_session *session, ch
    4.13   * Get the MTU field of the given PIF.
    4.14   */
    4.15  extern bool
    4.16 -xen_pif_get_mtu(xen_session *session, uint64_t *result, xen_pif pif);
    4.17 +xen_pif_get_mtu(xen_session *session, int64_t *result, xen_pif pif);
    4.18  
    4.19  
    4.20  /**
    4.21 @@ -270,7 +270,7 @@ xen_pif_set_mac(xen_session *session, xe
    4.22   * Set the MTU field of the given PIF.
    4.23   */
    4.24  extern bool
    4.25 -xen_pif_set_mtu(xen_session *session, xen_pif xen_pif, uint64_t mtu);
    4.26 +xen_pif_set_mtu(xen_session *session, xen_pif xen_pif, int64_t mtu);
    4.27  
    4.28  
    4.29  /**
     5.1 --- a/tools/libxen/include/xen_sr.h	Sat Oct 28 12:15:40 2006 +0100
     5.2 +++ b/tools/libxen/include/xen_sr.h	Sat Oct 28 13:30:21 2006 +0100
     5.3 @@ -66,9 +66,9 @@ typedef struct xen_sr_record
     5.4      char *name_label;
     5.5      char *name_description;
     5.6      struct xen_vdi_record_opt_set *vdis;
     5.7 -    uint64_t virtual_allocation;
     5.8 -    uint64_t physical_utilisation;
     5.9 -    uint64_t physical_size;
    5.10 +    int64_t virtual_allocation;
    5.11 +    int64_t physical_utilisation;
    5.12 +    int64_t physical_size;
    5.13      char *type;
    5.14      char *location;
    5.15  } xen_sr_record;
    5.16 @@ -212,21 +212,21 @@ xen_sr_get_vdis(xen_session *session, st
    5.17   * Get the virtual_allocation field of the given SR.
    5.18   */
    5.19  extern bool
    5.20 -xen_sr_get_virtual_allocation(xen_session *session, uint64_t *result, xen_sr sr);
    5.21 +xen_sr_get_virtual_allocation(xen_session *session, int64_t *result, xen_sr sr);
    5.22  
    5.23  
    5.24  /**
    5.25   * Get the physical_utilisation field of the given SR.
    5.26   */
    5.27  extern bool
    5.28 -xen_sr_get_physical_utilisation(xen_session *session, uint64_t *result, xen_sr sr);
    5.29 +xen_sr_get_physical_utilisation(xen_session *session, int64_t *result, xen_sr sr);
    5.30  
    5.31  
    5.32  /**
    5.33   * Get the physical_size field of the given SR.
    5.34   */
    5.35  extern bool
    5.36 -xen_sr_get_physical_size(xen_session *session, uint64_t *result, xen_sr sr);
    5.37 +xen_sr_get_physical_size(xen_session *session, int64_t *result, xen_sr sr);
    5.38  
    5.39  
    5.40  /**
     6.1 --- a/tools/libxen/include/xen_vdi.h	Sat Oct 28 12:15:40 2006 +0100
     6.2 +++ b/tools/libxen/include/xen_vdi.h	Sat Oct 28 13:30:21 2006 +0100
     6.3 @@ -69,9 +69,9 @@ typedef struct xen_vdi_record
     6.4      char *name_description;
     6.5      struct xen_sr_record_opt *sr;
     6.6      struct xen_vbd_record_opt_set *vbds;
     6.7 -    uint64_t virtual_size;
     6.8 -    uint64_t physical_utilisation;
     6.9 -    uint64_t sector_size;
    6.10 +    int64_t virtual_size;
    6.11 +    int64_t physical_utilisation;
    6.12 +    int64_t sector_size;
    6.13      enum xen_vdi_type type;
    6.14      struct xen_vdi_record_opt *parent;
    6.15      struct xen_vdi_record_opt_set *children;
    6.16 @@ -225,21 +225,21 @@ xen_vdi_get_vbds(xen_session *session, s
    6.17   * Get the virtual_size field of the given VDI.
    6.18   */
    6.19  extern bool
    6.20 -xen_vdi_get_virtual_size(xen_session *session, uint64_t *result, xen_vdi vdi);
    6.21 +xen_vdi_get_virtual_size(xen_session *session, int64_t *result, xen_vdi vdi);
    6.22  
    6.23  
    6.24  /**
    6.25   * Get the physical_utilisation field of the given VDI.
    6.26   */
    6.27  extern bool
    6.28 -xen_vdi_get_physical_utilisation(xen_session *session, uint64_t *result, xen_vdi vdi);
    6.29 +xen_vdi_get_physical_utilisation(xen_session *session, int64_t *result, xen_vdi vdi);
    6.30  
    6.31  
    6.32  /**
    6.33   * Get the sector_size field of the given VDI.
    6.34   */
    6.35  extern bool
    6.36 -xen_vdi_get_sector_size(xen_session *session, uint64_t *result, xen_vdi vdi);
    6.37 +xen_vdi_get_sector_size(xen_session *session, int64_t *result, xen_vdi vdi);
    6.38  
    6.39  
    6.40  /**
    6.41 @@ -302,7 +302,7 @@ xen_vdi_set_sr(xen_session *session, xen
    6.42   * Set the virtual_size field of the given VDI.
    6.43   */
    6.44  extern bool
    6.45 -xen_vdi_set_virtual_size(xen_session *session, xen_vdi xen_vdi, uint64_t virtual_size);
    6.46 +xen_vdi_set_virtual_size(xen_session *session, xen_vdi xen_vdi, int64_t virtual_size);
    6.47  
    6.48  
    6.49  /**
    6.50 @@ -331,7 +331,7 @@ xen_vdi_snapshot(xen_session *session, x
    6.51   * Resize the vdi to the size.
    6.52   */
    6.53  extern bool
    6.54 -xen_vdi_resize(xen_session *session, xen_vdi vdi, uint64_t size);
    6.55 +xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size);
    6.56  
    6.57  
    6.58  #endif
     7.1 --- a/tools/libxen/include/xen_vif.h	Sat Oct 28 12:15:40 2006 +0100
     7.2 +++ b/tools/libxen/include/xen_vif.h	Sat Oct 28 13:30:21 2006 +0100
     7.3 @@ -71,7 +71,7 @@ typedef struct xen_vif_record
     7.4      struct xen_network_record_opt *network;
     7.5      struct xen_vm_record_opt *vm;
     7.6      char *mac;
     7.7 -    uint64_t mtu;
     7.8 +    int64_t mtu;
     7.9      double io_read_kbs;
    7.10      double io_write_kbs;
    7.11  } xen_vif_record;
    7.12 @@ -229,7 +229,7 @@ xen_vif_get_mac(xen_session *session, ch
    7.13   * Get the MTU field of the given VIF.
    7.14   */
    7.15  extern bool
    7.16 -xen_vif_get_mtu(xen_session *session, uint64_t *result, xen_vif vif);
    7.17 +xen_vif_get_mtu(xen_session *session, int64_t *result, xen_vif vif);
    7.18  
    7.19  
    7.20  /**
    7.21 @@ -292,7 +292,7 @@ xen_vif_set_mac(xen_session *session, xe
    7.22   * Set the MTU field of the given VIF.
    7.23   */
    7.24  extern bool
    7.25 -xen_vif_set_mtu(xen_session *session, xen_vif xen_vif, uint64_t mtu);
    7.26 +xen_vif_set_mtu(xen_session *session, xen_vif xen_vif, int64_t mtu);
    7.27  
    7.28  
    7.29  #endif
     8.1 --- a/tools/libxen/include/xen_vm.h	Sat Oct 28 12:15:40 2006 +0100
     8.2 +++ b/tools/libxen/include/xen_vm.h	Sat Oct 28 13:30:21 2006 +0100
     8.3 @@ -76,17 +76,17 @@ typedef struct xen_vm_record
     8.4      enum xen_vm_power_state power_state;
     8.5      char *name_label;
     8.6      char *name_description;
     8.7 -    uint64_t user_version;
     8.8 +    int64_t user_version;
     8.9      bool is_a_template;
    8.10      struct xen_host_record_opt *resident_on;
    8.11 -    uint64_t memory_static_max;
    8.12 -    uint64_t memory_dynamic_max;
    8.13 -    uint64_t memory_actual;
    8.14 -    uint64_t memory_dynamic_min;
    8.15 -    uint64_t memory_static_min;
    8.16 +    int64_t memory_static_max;
    8.17 +    int64_t memory_dynamic_max;
    8.18 +    int64_t memory_actual;
    8.19 +    int64_t memory_dynamic_min;
    8.20 +    int64_t memory_static_min;
    8.21      char *vcpus_policy;
    8.22      char *vcpus_params;
    8.23 -    uint64_t vcpus_number;
    8.24 +    int64_t vcpus_number;
    8.25      xen_int_float_map *vcpus_utilisation;
    8.26      struct xen_cpu_feature_set *vcpus_features_required;
    8.27      struct xen_cpu_feature_set *vcpus_features_can_use;
    8.28 @@ -255,7 +255,7 @@ xen_vm_get_name_description(xen_session 
    8.29   * Get the user_version field of the given VM.
    8.30   */
    8.31  extern bool
    8.32 -xen_vm_get_user_version(xen_session *session, uint64_t *result, xen_vm vm);
    8.33 +xen_vm_get_user_version(xen_session *session, int64_t *result, xen_vm vm);
    8.34  
    8.35  
    8.36  /**
    8.37 @@ -276,35 +276,35 @@ xen_vm_get_resident_on(xen_session *sess
    8.38   * Get the memory/static_max field of the given VM.
    8.39   */
    8.40  extern bool
    8.41 -xen_vm_get_memory_static_max(xen_session *session, uint64_t *result, xen_vm vm);
    8.42 +xen_vm_get_memory_static_max(xen_session *session, int64_t *result, xen_vm vm);
    8.43  
    8.44  
    8.45  /**
    8.46   * Get the memory/dynamic_max field of the given VM.
    8.47   */
    8.48  extern bool
    8.49 -xen_vm_get_memory_dynamic_max(xen_session *session, uint64_t *result, xen_vm vm);
    8.50 +xen_vm_get_memory_dynamic_max(xen_session *session, int64_t *result, xen_vm vm);
    8.51  
    8.52  
    8.53  /**
    8.54   * Get the memory/actual field of the given VM.
    8.55   */
    8.56  extern bool
    8.57 -xen_vm_get_memory_actual(xen_session *session, uint64_t *result, xen_vm vm);
    8.58 +xen_vm_get_memory_actual(xen_session *session, int64_t *result, xen_vm vm);
    8.59  
    8.60  
    8.61  /**
    8.62   * Get the memory/dynamic_min field of the given VM.
    8.63   */
    8.64  extern bool
    8.65 -xen_vm_get_memory_dynamic_min(xen_session *session, uint64_t *result, xen_vm vm);
    8.66 +xen_vm_get_memory_dynamic_min(xen_session *session, int64_t *result, xen_vm vm);
    8.67  
    8.68  
    8.69  /**
    8.70   * Get the memory/static_min field of the given VM.
    8.71   */
    8.72  extern bool
    8.73 -xen_vm_get_memory_static_min(xen_session *session, uint64_t *result, xen_vm vm);
    8.74 +xen_vm_get_memory_static_min(xen_session *session, int64_t *result, xen_vm vm);
    8.75  
    8.76  
    8.77  /**
    8.78 @@ -325,7 +325,7 @@ xen_vm_get_vcpus_params(xen_session *ses
    8.79   * Get the VCPUs/number field of the given VM.
    8.80   */
    8.81  extern bool
    8.82 -xen_vm_get_vcpus_number(xen_session *session, uint64_t *result, xen_vm vm);
    8.83 +xen_vm_get_vcpus_number(xen_session *session, int64_t *result, xen_vm vm);
    8.84  
    8.85  
    8.86  /**
    8.87 @@ -535,7 +535,7 @@ xen_vm_set_name_description(xen_session 
    8.88   * Set the user_version field of the given VM.
    8.89   */
    8.90  extern bool
    8.91 -xen_vm_set_user_version(xen_session *session, xen_vm xen_vm, uint64_t user_version);
    8.92 +xen_vm_set_user_version(xen_session *session, xen_vm xen_vm, int64_t user_version);
    8.93  
    8.94  
    8.95  /**
    8.96 @@ -549,14 +549,14 @@ xen_vm_set_is_a_template(xen_session *se
    8.97   * Set the memory/dynamic_max field of the given VM.
    8.98   */
    8.99  extern bool
   8.100 -xen_vm_set_memory_dynamic_max(xen_session *session, xen_vm xen_vm, uint64_t dynamic_max);
   8.101 +xen_vm_set_memory_dynamic_max(xen_session *session, xen_vm xen_vm, int64_t dynamic_max);
   8.102  
   8.103  
   8.104  /**
   8.105   * Set the memory/dynamic_min field of the given VM.
   8.106   */
   8.107  extern bool
   8.108 -xen_vm_set_memory_dynamic_min(xen_session *session, xen_vm xen_vm, uint64_t dynamic_min);
   8.109 +xen_vm_set_memory_dynamic_min(xen_session *session, xen_vm xen_vm, int64_t dynamic_min);
   8.110  
   8.111  
   8.112  /**
     9.1 --- a/tools/libxen/include/xen_vtpm.h	Sat Oct 28 12:15:40 2006 +0100
     9.2 +++ b/tools/libxen/include/xen_vtpm.h	Sat Oct 28 13:30:21 2006 +0100
     9.3 @@ -68,7 +68,7 @@ typedef struct xen_vtpm_record
     9.4      struct xen_vm_record_opt *vm;
     9.5      struct xen_vm_record_opt *backend;
     9.6      enum xen_driver_type driver;
     9.7 -    uint64_t instance;
     9.8 +    int64_t instance;
     9.9  } xen_vtpm_record;
    9.10  
    9.11  /**
    9.12 @@ -203,7 +203,7 @@ xen_vtpm_get_driver(xen_session *session
    9.13   * Get the instance field of the given VTPM.
    9.14   */
    9.15  extern bool
    9.16 -xen_vtpm_get_instance(xen_session *session, uint64_t *result, xen_vtpm vtpm);
    9.17 +xen_vtpm_get_instance(xen_session *session, int64_t *result, xen_vtpm vtpm);
    9.18  
    9.19  
    9.20  #endif
    10.1 --- a/tools/libxen/src/xen_common.c	Sat Oct 28 12:15:40 2006 +0100
    10.2 +++ b/tools/libxen/src/xen_common.c	Sat Oct 28 13:30:21 2006 +0100
    10.3 @@ -442,7 +442,7 @@ static void destring(xen_session *s, xml
    10.4          break;
    10.5  
    10.6      case INT:
    10.7 -        *((uint64_t *)value) = atoll((const char *)name);
    10.8 +        *((int64_t *)value) = atoll((const char *)name);
    10.9          break;
   10.10  
   10.11      case FLOAT:
   10.12 @@ -458,7 +458,7 @@ static void destring(xen_session *s, xml
   10.13  /**
   10.14   * result_type : STRING => value : char **, the char * is yours.
   10.15   * result_type : ENUM   => value : int *
   10.16 - * result_type : INT    => value : uint64_t *
   10.17 + * result_type : INT    => value : int64_t *
   10.18   * result_type : FLOAT  => value : double *
   10.19   * result_type : BOOL   => value : bool *
   10.20   * result_type : SET    => value : arbitrary_set **, the set is yours.
   10.21 @@ -532,7 +532,7 @@ static void parse_into(xen_session *s, x
   10.22          }
   10.23          else
   10.24          {
   10.25 -            ((uint64_t *)value)[slot] = (uint64_t)atoll((char *)string);
   10.26 +            ((int64_t *)value)[slot] = (int64_t)atoll((char *)string);
   10.27              free(string);
   10.28          }
   10.29      }
   10.30 @@ -815,7 +815,7 @@ static size_t size_of_member(const abstr
   10.31  
   10.32  /*
   10.33      case INT:
   10.34 -        return sizeof(uint64_t);
   10.35 +        return sizeof(int64_t);
   10.36  
   10.37      case FLOAT:
   10.38          return sizeof(double);
   10.39 @@ -1146,7 +1146,7 @@ add_struct_value(const struct abstract_t
   10.40  
   10.41      case INT:
   10.42      {
   10.43 -        uint64_t val = *(uint64_t *)value;
   10.44 +        int64_t val = *(int64_t *)value;
   10.45          snprintf(buf, sizeof(buf), "%"PRId64, val);
   10.46          adder(node, key, "string", buf);
   10.47      }
    11.1 --- a/tools/libxen/src/xen_host_cpu.c	Sat Oct 28 12:15:40 2006 +0100
    11.2 +++ b/tools/libxen/src/xen_host_cpu.c	Sat Oct 28 13:30:21 2006 +0100
    11.3 @@ -167,7 +167,7 @@ xen_host_cpu_get_host(xen_session *sessi
    11.4  
    11.5  
    11.6  bool
    11.7 -xen_host_cpu_get_number(xen_session *session, uint64_t *result, xen_host_cpu host_cpu)
    11.8 +xen_host_cpu_get_number(xen_session *session, int64_t *result, xen_host_cpu host_cpu)
    11.9  {
   11.10      abstract_value param_values[] =
   11.11          {
   11.12 @@ -200,7 +200,7 @@ xen_host_cpu_get_vendor(xen_session *ses
   11.13  
   11.14  
   11.15  bool
   11.16 -xen_host_cpu_get_speed(xen_session *session, uint64_t *result, xen_host_cpu host_cpu)
   11.17 +xen_host_cpu_get_speed(xen_session *session, int64_t *result, xen_host_cpu host_cpu)
   11.18  {
   11.19      abstract_value param_values[] =
   11.20          {
    12.1 --- a/tools/libxen/src/xen_pif.c	Sat Oct 28 12:15:40 2006 +0100
    12.2 +++ b/tools/libxen/src/xen_pif.c	Sat Oct 28 13:30:21 2006 +0100
    12.3 @@ -221,7 +221,7 @@ xen_pif_get_mac(xen_session *session, ch
    12.4  
    12.5  
    12.6  bool
    12.7 -xen_pif_get_mtu(xen_session *session, uint64_t *result, xen_pif pif)
    12.8 +xen_pif_get_mtu(xen_session *session, int64_t *result, xen_pif pif)
    12.9  {
   12.10      abstract_value param_values[] =
   12.11          {
   12.12 @@ -350,7 +350,7 @@ xen_pif_set_mac(xen_session *session, xe
   12.13  
   12.14  
   12.15  bool
   12.16 -xen_pif_set_mtu(xen_session *session, xen_pif xen_pif, uint64_t mtu)
   12.17 +xen_pif_set_mtu(xen_session *session, xen_pif xen_pif, int64_t mtu)
   12.18  {
   12.19      abstract_value param_values[] =
   12.20          {
    13.1 --- a/tools/libxen/src/xen_sr.c	Sat Oct 28 12:15:40 2006 +0100
    13.2 +++ b/tools/libxen/src/xen_sr.c	Sat Oct 28 13:30:21 2006 +0100
    13.3 @@ -220,7 +220,7 @@ xen_sr_get_vdis(xen_session *session, st
    13.4  
    13.5  
    13.6  bool
    13.7 -xen_sr_get_virtual_allocation(xen_session *session, uint64_t *result, xen_sr sr)
    13.8 +xen_sr_get_virtual_allocation(xen_session *session, int64_t *result, xen_sr sr)
    13.9  {
   13.10      abstract_value param_values[] =
   13.11          {
   13.12 @@ -236,7 +236,7 @@ xen_sr_get_virtual_allocation(xen_sessio
   13.13  
   13.14  
   13.15  bool
   13.16 -xen_sr_get_physical_utilisation(xen_session *session, uint64_t *result, xen_sr sr)
   13.17 +xen_sr_get_physical_utilisation(xen_session *session, int64_t *result, xen_sr sr)
   13.18  {
   13.19      abstract_value param_values[] =
   13.20          {
   13.21 @@ -252,7 +252,7 @@ xen_sr_get_physical_utilisation(xen_sess
   13.22  
   13.23  
   13.24  bool
   13.25 -xen_sr_get_physical_size(xen_session *session, uint64_t *result, xen_sr sr)
   13.26 +xen_sr_get_physical_size(xen_session *session, int64_t *result, xen_sr sr)
   13.27  {
   13.28      abstract_value param_values[] =
   13.29          {
    14.1 --- a/tools/libxen/src/xen_vdi.c	Sat Oct 28 12:15:40 2006 +0100
    14.2 +++ b/tools/libxen/src/xen_vdi.c	Sat Oct 28 13:30:21 2006 +0100
    14.3 @@ -252,7 +252,7 @@ xen_vdi_get_vbds(xen_session *session, s
    14.4  
    14.5  
    14.6  bool
    14.7 -xen_vdi_get_virtual_size(xen_session *session, uint64_t *result, xen_vdi vdi)
    14.8 +xen_vdi_get_virtual_size(xen_session *session, int64_t *result, xen_vdi vdi)
    14.9  {
   14.10      abstract_value param_values[] =
   14.11          {
   14.12 @@ -268,7 +268,7 @@ xen_vdi_get_virtual_size(xen_session *se
   14.13  
   14.14  
   14.15  bool
   14.16 -xen_vdi_get_physical_utilisation(xen_session *session, uint64_t *result, xen_vdi vdi)
   14.17 +xen_vdi_get_physical_utilisation(xen_session *session, int64_t *result, xen_vdi vdi)
   14.18  {
   14.19      abstract_value param_values[] =
   14.20          {
   14.21 @@ -284,7 +284,7 @@ xen_vdi_get_physical_utilisation(xen_ses
   14.22  
   14.23  
   14.24  bool
   14.25 -xen_vdi_get_sector_size(xen_session *session, uint64_t *result, xen_vdi vdi)
   14.26 +xen_vdi_get_sector_size(xen_session *session, int64_t *result, xen_vdi vdi)
   14.27  {
   14.28      abstract_value param_values[] =
   14.29          {
   14.30 @@ -431,7 +431,7 @@ xen_vdi_set_sr(xen_session *session, xen
   14.31  
   14.32  
   14.33  bool
   14.34 -xen_vdi_set_virtual_size(xen_session *session, xen_vdi xen_vdi, uint64_t virtual_size)
   14.35 +xen_vdi_set_virtual_size(xen_session *session, xen_vdi xen_vdi, int64_t virtual_size)
   14.36  {
   14.37      abstract_value param_values[] =
   14.38          {
   14.39 @@ -496,7 +496,7 @@ xen_vdi_snapshot(xen_session *session, x
   14.40  
   14.41  
   14.42  bool
   14.43 -xen_vdi_resize(xen_session *session, xen_vdi vdi, uint64_t size)
   14.44 +xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size)
   14.45  {
   14.46      abstract_value param_values[] =
   14.47          {
    15.1 --- a/tools/libxen/src/xen_vif.c	Sat Oct 28 12:15:40 2006 +0100
    15.2 +++ b/tools/libxen/src/xen_vif.c	Sat Oct 28 13:30:21 2006 +0100
    15.3 @@ -259,7 +259,7 @@ xen_vif_get_mac(xen_session *session, ch
    15.4  
    15.5  
    15.6  bool
    15.7 -xen_vif_get_mtu(xen_session *session, uint64_t *result, xen_vif vif)
    15.8 +xen_vif_get_mtu(xen_session *session, int64_t *result, xen_vif vif)
    15.9  {
   15.10      abstract_value param_values[] =
   15.11          {
   15.12 @@ -403,7 +403,7 @@ xen_vif_set_mac(xen_session *session, xe
   15.13  
   15.14  
   15.15  bool
   15.16 -xen_vif_set_mtu(xen_session *session, xen_vif xen_vif, uint64_t mtu)
   15.17 +xen_vif_set_mtu(xen_session *session, xen_vif xen_vif, int64_t mtu)
   15.18  {
   15.19      abstract_value param_values[] =
   15.20          {
    16.1 --- a/tools/libxen/src/xen_vm.c	Sat Oct 28 12:15:40 2006 +0100
    16.2 +++ b/tools/libxen/src/xen_vm.c	Sat Oct 28 13:30:21 2006 +0100
    16.3 @@ -348,7 +348,7 @@ xen_vm_get_name_description(xen_session 
    16.4  
    16.5  
    16.6  bool
    16.7 -xen_vm_get_user_version(xen_session *session, uint64_t *result, xen_vm vm)
    16.8 +xen_vm_get_user_version(xen_session *session, int64_t *result, xen_vm vm)
    16.9  {
   16.10      abstract_value param_values[] =
   16.11          {
   16.12 @@ -397,7 +397,7 @@ xen_vm_get_resident_on(xen_session *sess
   16.13  
   16.14  
   16.15  bool
   16.16 -xen_vm_get_memory_static_max(xen_session *session, uint64_t *result, xen_vm vm)
   16.17 +xen_vm_get_memory_static_max(xen_session *session, int64_t *result, xen_vm vm)
   16.18  {
   16.19      abstract_value param_values[] =
   16.20          {
   16.21 @@ -413,7 +413,7 @@ xen_vm_get_memory_static_max(xen_session
   16.22  
   16.23  
   16.24  bool
   16.25 -xen_vm_get_memory_dynamic_max(xen_session *session, uint64_t *result, xen_vm vm)
   16.26 +xen_vm_get_memory_dynamic_max(xen_session *session, int64_t *result, xen_vm vm)
   16.27  {
   16.28      abstract_value param_values[] =
   16.29          {
   16.30 @@ -429,7 +429,7 @@ xen_vm_get_memory_dynamic_max(xen_sessio
   16.31  
   16.32  
   16.33  bool
   16.34 -xen_vm_get_memory_actual(xen_session *session, uint64_t *result, xen_vm vm)
   16.35 +xen_vm_get_memory_actual(xen_session *session, int64_t *result, xen_vm vm)
   16.36  {
   16.37      abstract_value param_values[] =
   16.38          {
   16.39 @@ -445,7 +445,7 @@ xen_vm_get_memory_actual(xen_session *se
   16.40  
   16.41  
   16.42  bool
   16.43 -xen_vm_get_memory_dynamic_min(xen_session *session, uint64_t *result, xen_vm vm)
   16.44 +xen_vm_get_memory_dynamic_min(xen_session *session, int64_t *result, xen_vm vm)
   16.45  {
   16.46      abstract_value param_values[] =
   16.47          {
   16.48 @@ -461,7 +461,7 @@ xen_vm_get_memory_dynamic_min(xen_sessio
   16.49  
   16.50  
   16.51  bool
   16.52 -xen_vm_get_memory_static_min(xen_session *session, uint64_t *result, xen_vm vm)
   16.53 +xen_vm_get_memory_static_min(xen_session *session, int64_t *result, xen_vm vm)
   16.54  {
   16.55      abstract_value param_values[] =
   16.56          {
   16.57 @@ -511,7 +511,7 @@ xen_vm_get_vcpus_params(xen_session *ses
   16.58  
   16.59  
   16.60  bool
   16.61 -xen_vm_get_vcpus_number(xen_session *session, uint64_t *result, xen_vm vm)
   16.62 +xen_vm_get_vcpus_number(xen_session *session, int64_t *result, xen_vm vm)
   16.63  {
   16.64      abstract_value param_values[] =
   16.65          {
   16.66 @@ -1014,7 +1014,7 @@ xen_vm_set_name_description(xen_session 
   16.67  
   16.68  
   16.69  bool
   16.70 -xen_vm_set_user_version(xen_session *session, xen_vm xen_vm, uint64_t user_version)
   16.71 +xen_vm_set_user_version(xen_session *session, xen_vm xen_vm, int64_t user_version)
   16.72  {
   16.73      abstract_value param_values[] =
   16.74          {
   16.75 @@ -1046,7 +1046,7 @@ xen_vm_set_is_a_template(xen_session *se
   16.76  
   16.77  
   16.78  bool
   16.79 -xen_vm_set_memory_dynamic_max(xen_session *session, xen_vm xen_vm, uint64_t dynamic_max)
   16.80 +xen_vm_set_memory_dynamic_max(xen_session *session, xen_vm xen_vm, int64_t dynamic_max)
   16.81  {
   16.82      abstract_value param_values[] =
   16.83          {
   16.84 @@ -1062,7 +1062,7 @@ xen_vm_set_memory_dynamic_max(xen_sessio
   16.85  
   16.86  
   16.87  bool
   16.88 -xen_vm_set_memory_dynamic_min(xen_session *session, xen_vm xen_vm, uint64_t dynamic_min)
   16.89 +xen_vm_set_memory_dynamic_min(xen_session *session, xen_vm xen_vm, int64_t dynamic_min)
   16.90  {
   16.91      abstract_value param_values[] =
   16.92          {
    17.1 --- a/tools/libxen/src/xen_vtpm.c	Sat Oct 28 12:15:40 2006 +0100
    17.2 +++ b/tools/libxen/src/xen_vtpm.c	Sat Oct 28 13:30:21 2006 +0100
    17.3 @@ -190,7 +190,7 @@ xen_vtpm_get_driver(xen_session *session
    17.4  
    17.5  
    17.6  bool
    17.7 -xen_vtpm_get_instance(xen_session *session, uint64_t *result, xen_vtpm vtpm)
    17.8 +xen_vtpm_get_instance(xen_session *session, int64_t *result, xen_vtpm vtpm)
    17.9  {
   17.10      abstract_value param_values[] =
   17.11          {