aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/include
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-02-27 00:37:27 +0000
committerEwan Mellor <ewan@xensource.com>2007-02-27 00:37:27 +0000
commitd8309d27a1423904824363930736b7ea258a562d (patch)
tree9e93f767fbd07858b645f3bb56bb9ec846833593 /tools/libxen/include
parentb3c8af5814936eb99e2377428330c9938df67e43 (diff)
downloadxen-d8309d27a1423904824363930736b7ea258a562d.tar.gz
xen-d8309d27a1423904824363930736b7ea258a562d.tar.bz2
xen-d8309d27a1423904824363930736b7ea258a562d.zip
Added some more fields to host_cpu.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/include')
-rw-r--r--tools/libxen/include/xen_host_cpu.h36
1 files changed, 19 insertions, 17 deletions
diff --git a/tools/libxen/include/xen_host_cpu.h b/tools/libxen/include/xen_host_cpu.h
index 945a7279d1..f70023f24e 100644
--- a/tools/libxen/include/xen_host_cpu.h
+++ b/tools/libxen/include/xen_host_cpu.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
@@ -25,8 +25,8 @@
/*
- * The host_cpu class.
- *
+ * The host_cpu class.
+ *
* A physical CPU.
*/
@@ -68,6 +68,8 @@ typedef struct xen_host_cpu_record
char *vendor;
int64_t speed;
char *modelname;
+ char *stepping;
+ char *flags;
double utilisation;
} xen_host_cpu_record;
@@ -165,20 +167,6 @@ xen_host_cpu_get_by_uuid(xen_session *session, xen_host_cpu *result, char *uuid)
/**
- * Create a new host_cpu instance, and return its handle.
- */
-extern bool
-xen_host_cpu_create(xen_session *session, xen_host_cpu *result, xen_host_cpu_record *record);
-
-
-/**
- * Destroy the specified host_cpu instance.
- */
-extern bool
-xen_host_cpu_destroy(xen_session *session, xen_host_cpu host_cpu);
-
-
-/**
* Get the uuid field of the given host_cpu.
*/
extern bool
@@ -221,6 +209,20 @@ xen_host_cpu_get_modelname(xen_session *session, char **result, xen_host_cpu hos
/**
+ * Get the stepping field of the given host_cpu.
+ */
+extern bool
+xen_host_cpu_get_stepping(xen_session *session, char **result, xen_host_cpu host_cpu);
+
+
+/**
+ * Get the flags field of the given host_cpu.
+ */
+extern bool
+xen_host_cpu_get_flags(xen_session *session, char **result, xen_host_cpu host_cpu);
+
+
+/**
* Get the utilisation field of the given host_cpu.
*/
extern bool