aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/src
diff options
context:
space:
mode:
authorewan@localhost.localdomain <ewan@localhost.localdomain>2007-04-16 16:10:39 -0400
committerewan@localhost.localdomain <ewan@localhost.localdomain>2007-04-16 16:10:39 -0400
commitf01fa26a0f4b16f0b296d30463f77f57974996dc (patch)
treee25709b8a538656911fa19186a7f3d55cfe60cd9 /tools/libxen/src
parent1d4f277da8ecdd0e858bb12d37f9c01ce5e3b266 (diff)
downloadxen-f01fa26a0f4b16f0b296d30463f77f57974996dc.tar.gz
xen-f01fa26a0f4b16f0b296d30463f77f57974996dc.tar.bz2
xen-f01fa26a0f4b16f0b296d30463f77f57974996dc.zip
Added host.enabled flag.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen/src')
-rw-r--r--tools/libxen/src/xen_host.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/libxen/src/xen_host.c b/tools/libxen/src/xen_host.c
index bc2b1f0e8b..331ed2105b 100644
--- a/tools/libxen/src/xen_host.c
+++ b/tools/libxen/src/xen_host.c
@@ -64,6 +64,9 @@ static const struct_member xen_host_record_struct_members[] =
{ .key = "API_version_vendor_implementation",
.type = &abstract_type_string_string_map,
.offset = offsetof(xen_host_record, api_version_vendor_implementation) },
+ { .key = "enabled",
+ .type = &abstract_type_bool,
+ .offset = offsetof(xen_host_record, enabled) },
{ .key = "software_version",
.type = &abstract_type_string_string_map,
.offset = offsetof(xen_host_record, software_version) },
@@ -307,6 +310,22 @@ xen_host_get_api_version_vendor_implementation(xen_session *session, xen_string_
bool
+xen_host_get_enabled(xen_session *session, bool *result, xen_host host)
+{
+ abstract_value param_values[] =
+ {
+ { .type = &abstract_type_string,
+ .u.string_val = host }
+ };
+
+ abstract_type result_type = abstract_type_bool;
+
+ XEN_CALL_("host.get_enabled");
+ return session->ok;
+}
+
+
+bool
xen_host_get_software_version(xen_session *session, xen_string_string_map **result, xen_host host)
{
abstract_value param_values[] =