diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-04-10 19:04:37 +0100 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-04-10 19:04:37 +0100 |
commit | f6fe1a09917542899f949f03ee91e2b7e34c384f (patch) | |
tree | 2366291236cd3a65dc3cc074aad0b3251670852d /tools/libxen/include | |
parent | 6d618d8bb6a4cf665d41de25724d42fa9dbc8bd6 (diff) | |
download | xen-f6fe1a09917542899f949f03ee91e2b7e34c384f.tar.gz xen-f6fe1a09917542899f949f03ee91e2b7e34c384f.tar.bz2 xen-f6fe1a09917542899f949f03ee91e2b7e34c384f.zip |
Added docs and bindings for VM_metrics.state.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r-- | tools/libxen/include/xen_vm_metrics.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/libxen/include/xen_vm_metrics.h b/tools/libxen/include/xen_vm_metrics.h index 4b64b5953e..6dfddf6dfd 100644 --- a/tools/libxen/include/xen_vm_metrics.h +++ b/tools/libxen/include/xen_vm_metrics.h @@ -22,6 +22,7 @@ #include "xen_common.h" #include "xen_int_float_map.h" #include "xen_int_int_map.h" +#include "xen_string_set.h" #include "xen_string_string_map.h" #include "xen_vm_metrics_decl.h" @@ -70,6 +71,7 @@ typedef struct xen_vm_metrics_record xen_int_float_map *vcpus_utilisation; xen_int_int_map *vcpus_cpu; xen_string_string_map *vcpus_params; + struct xen_string_set *state; time_t start_time; time_t last_updated; } xen_vm_metrics_record; @@ -210,6 +212,13 @@ xen_vm_metrics_get_vcpus_params(xen_session *session, xen_string_string_map **re /** + * Get the state field of the given VM_metrics. + */ +extern bool +xen_vm_metrics_get_state(xen_session *session, struct xen_string_set **result, xen_vm_metrics vm_metrics); + + +/** * Get the start_time field of the given VM_metrics. */ extern bool |