aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/include
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-02-27 01:05:32 +0000
committerEwan Mellor <ewan@xensource.com>2007-02-27 01:05:32 +0000
commitb33bb1e4d9e834d1ca3b7341b8ceedc347f31a57 (patch)
tree86df3b996bd6af74384d86816ba8e28eb8906231 /tools/libxen/include
parentd8309d27a1423904824363930736b7ea258a562d (diff)
downloadxen-b33bb1e4d9e834d1ca3b7341b8ceedc347f31a57.tar.gz
xen-b33bb1e4d9e834d1ca3b7341b8ceedc347f31a57.tar.bz2
xen-b33bb1e4d9e834d1ca3b7341b8ceedc347f31a57.zip
Implementation of host_metrics.get_all, PIF_metrics.get_all, and docs and
bindings for many of the get_all methods elsewhere that Xend already implemented. Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r--tools/libxen/include/xen_console.h7
-rw-r--r--tools/libxen/include/xen_host_cpu.h7
-rw-r--r--tools/libxen/include/xen_host_metrics.h9
-rw-r--r--tools/libxen/include/xen_pbd.h9
-rw-r--r--tools/libxen/include/xen_pif.h9
-rw-r--r--tools/libxen/include/xen_pif_metrics.h9
-rw-r--r--tools/libxen/include/xen_vbd.h7
-rw-r--r--tools/libxen/include/xen_vbd_metrics.h7
-rw-r--r--tools/libxen/include/xen_vdi.h7
-rw-r--r--tools/libxen/include/xen_vif.h7
-rw-r--r--tools/libxen/include/xen_vif_metrics.h7
-rw-r--r--tools/libxen/include/xen_vm_guest_metrics.h7
-rw-r--r--tools/libxen/include/xen_vm_metrics.h7
13 files changed, 95 insertions, 4 deletions
diff --git a/tools/libxen/include/xen_console.h b/tools/libxen/include/xen_console.h
index ca4721c49d..5402ae9fbe 100644
--- a/tools/libxen/include/xen_console.h
+++ b/tools/libxen/include/xen_console.h
@@ -237,4 +237,11 @@ extern bool
xen_console_remove_from_other_config(xen_session *session, xen_console console, char *key);
+/**
+ * Return a list of all the consoles known to the system.
+ */
+extern bool
+xen_console_get_all(xen_session *session, struct xen_console_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_host_cpu.h b/tools/libxen/include/xen_host_cpu.h
index f70023f24e..8b6d37f5e3 100644
--- a/tools/libxen/include/xen_host_cpu.h
+++ b/tools/libxen/include/xen_host_cpu.h
@@ -229,4 +229,11 @@ extern bool
xen_host_cpu_get_utilisation(xen_session *session, double *result, xen_host_cpu host_cpu);
+/**
+ * Return a list of all the host_cpus known to the system.
+ */
+extern bool
+xen_host_cpu_get_all(xen_session *session, struct xen_host_cpu_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_host_metrics.h b/tools/libxen/include/xen_host_metrics.h
index 6ee609a9e9..37a6469e10 100644
--- a/tools/libxen/include/xen_host_metrics.h
+++ b/tools/libxen/include/xen_host_metrics.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -190,4 +190,11 @@ extern bool
xen_host_metrics_get_memory_free(xen_session *session, int64_t *result, xen_host_metrics host_metrics);
+/**
+ * Return a list of all the host_metrics instances known to the system.
+ */
+extern bool
+xen_host_metrics_get_all(xen_session *session, struct xen_host_metrics_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_pbd.h b/tools/libxen/include/xen_pbd.h
index 6d0f6b449e..335d20b2ff 100644
--- a/tools/libxen/include/xen_pbd.h
+++ b/tools/libxen/include/xen_pbd.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -213,4 +213,11 @@ extern bool
xen_pbd_get_currently_attached(xen_session *session, bool *result, xen_pbd pbd);
+/**
+ * Return a list of all the PBDs known to the system.
+ */
+extern bool
+xen_pbd_get_all(xen_session *session, struct xen_pbd_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_pif.h b/tools/libxen/include/xen_pif.h
index a4d6db7420..63fc88477b 100644
--- a/tools/libxen/include/xen_pif.h
+++ b/tools/libxen/include/xen_pif.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -267,4 +267,11 @@ extern bool
xen_pif_destroy(xen_session *session, xen_pif self);
+/**
+ * Return a list of all the PIFs known to the system.
+ */
+extern bool
+xen_pif_get_all(xen_session *session, struct xen_pif_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_pif_metrics.h b/tools/libxen/include/xen_pif_metrics.h
index 420516d8b6..9d49bc8c1d 100644
--- a/tools/libxen/include/xen_pif_metrics.h
+++ b/tools/libxen/include/xen_pif_metrics.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2006, XenSource Inc.
+ * Copyright (c) 2006-2007, XenSource Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -189,4 +189,11 @@ extern bool
xen_pif_metrics_get_io_write_kbs(xen_session *session, double *result, xen_pif_metrics pif_metrics);
+/**
+ * Return a list of all the PIF_metrics instances known to the system.
+ */
+extern bool
+xen_pif_metrics_get_all(xen_session *session, struct xen_pif_metrics_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vbd.h b/tools/libxen/include/xen_vbd.h
index e3cd7e4500..86ad38f207 100644
--- a/tools/libxen/include/xen_vbd.h
+++ b/tools/libxen/include/xen_vbd.h
@@ -357,4 +357,11 @@ extern bool
xen_vbd_media_change(xen_session *session, xen_vbd vbd, xen_vdi vdi);
+/**
+ * Return a list of all the VBDs known to the system.
+ */
+extern bool
+xen_vbd_get_all(xen_session *session, struct xen_vbd_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vbd_metrics.h b/tools/libxen/include/xen_vbd_metrics.h
index 8b3c1429d4..3cd507b31e 100644
--- a/tools/libxen/include/xen_vbd_metrics.h
+++ b/tools/libxen/include/xen_vbd_metrics.h
@@ -180,4 +180,11 @@ extern bool
xen_vbd_metrics_get_io_write_kbs(xen_session *session, double *result, xen_vbd_metrics vbd_metrics);
+/**
+ * Return a list of all the VBD_metrics instances known to the system.
+ */
+extern bool
+xen_vbd_metrics_get_all(xen_session *session, struct xen_vbd_metrics_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vdi.h b/tools/libxen/include/xen_vdi.h
index 8533df31a8..90120370d5 100644
--- a/tools/libxen/include/xen_vdi.h
+++ b/tools/libxen/include/xen_vdi.h
@@ -335,4 +335,11 @@ extern bool
xen_vdi_resize(xen_session *session, xen_vdi vdi, int64_t size);
+/**
+ * Return a list of all the VDIs known to the system.
+ */
+extern bool
+xen_vdi_get_all(xen_session *session, struct xen_vdi_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vif.h b/tools/libxen/include/xen_vif.h
index 6ef2ebdbea..05a070aff4 100644
--- a/tools/libxen/include/xen_vif.h
+++ b/tools/libxen/include/xen_vif.h
@@ -331,4 +331,11 @@ extern bool
xen_vif_remove_from_qos_algorithm_params(xen_session *session, xen_vif vif, char *key);
+/**
+ * Return a list of all the VIFs known to the system.
+ */
+extern bool
+xen_vif_get_all(xen_session *session, struct xen_vif_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vif_metrics.h b/tools/libxen/include/xen_vif_metrics.h
index 2b150d0a68..b5a26f25c6 100644
--- a/tools/libxen/include/xen_vif_metrics.h
+++ b/tools/libxen/include/xen_vif_metrics.h
@@ -180,4 +180,11 @@ extern bool
xen_vif_metrics_get_io_write_kbs(xen_session *session, double *result, xen_vif_metrics vif_metrics);
+/**
+ * Return a list of all the VIF_metrics instances known to the system.
+ */
+extern bool
+xen_vif_metrics_get_all(xen_session *session, struct xen_vif_metrics_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vm_guest_metrics.h b/tools/libxen/include/xen_vm_guest_metrics.h
index 61c6c090ea..fd328594df 100644
--- a/tools/libxen/include/xen_vm_guest_metrics.h
+++ b/tools/libxen/include/xen_vm_guest_metrics.h
@@ -224,4 +224,11 @@ extern bool
xen_vm_guest_metrics_get_other(xen_session *session, xen_string_string_map **result, xen_vm_guest_metrics vm_guest_metrics);
+/**
+ * Return a list of all the VM_guest_metrics instances known to the system.
+ */
+extern bool
+xen_vm_guest_metrics_get_all(xen_session *session, struct xen_vm_guest_metrics_set **result);
+
+
#endif
diff --git a/tools/libxen/include/xen_vm_metrics.h b/tools/libxen/include/xen_vm_metrics.h
index e3b06c214b..b03c4d4e3c 100644
--- a/tools/libxen/include/xen_vm_metrics.h
+++ b/tools/libxen/include/xen_vm_metrics.h
@@ -189,4 +189,11 @@ extern bool
xen_vm_metrics_get_vcpus_utilisation(xen_session *session, xen_int_float_map **result, xen_vm_metrics vm_metrics);
+/**
+ * Return a list of all the VM_metrics instances known to the system.
+ */
+extern bool
+xen_vm_metrics_get_all(xen_session *session, struct xen_vm_metrics_set **result);
+
+
#endif