aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen
diff options
context:
space:
mode:
authorEwan Mellor <ewan@xensource.com>2007-02-20 22:46:21 +0000
committerEwan Mellor <ewan@xensource.com>2007-02-20 22:46:21 +0000
commitc24f2b2bec4b701a7a1fc478ca2870e684150d96 (patch)
tree2a11bacbcca4de47c6cb5dda870fd4b85c6ec7ba /tools/libxen
parent1a84dd141d339bde3d33963097860f40f9553776 (diff)
downloadxen-c24f2b2bec4b701a7a1fc478ca2870e684150d96.tar.gz
xen-c24f2b2bec4b701a7a1fc478ca2870e684150d96.tar.bz2
xen-c24f2b2bec4b701a7a1fc478ca2870e684150d96.zip
Remove host.create and host.destroy -- these never made any sense.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
Diffstat (limited to 'tools/libxen')
-rw-r--r--tools/libxen/include/xen_host.h16
-rw-r--r--tools/libxen/src/xen_host.c33
2 files changed, 2 insertions, 47 deletions
diff --git a/tools/libxen/include/xen_host.h b/tools/libxen/include/xen_host.h
index 26ca29d592..e98d7e5bf9 100644
--- a/tools/libxen/include/xen_host.h
+++ b/tools/libxen/include/xen_host.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
@@ -177,20 +177,6 @@ xen_host_get_by_uuid(xen_session *session, xen_host *result, char *uuid);
/**
- * Create a new host instance, and return its handle.
- */
-extern bool
-xen_host_create(xen_session *session, xen_host *result, xen_host_record *record);
-
-
-/**
- * Destroy the specified host instance.
- */
-extern bool
-xen_host_destroy(xen_session *session, xen_host host);
-
-
-/**
* Get all the host instances with the given label.
*/
extern bool
diff --git a/tools/libxen/src/xen_host.c b/tools/libxen/src/xen_host.c
index 4a79daa90f..591d6f4be1 100644
--- a/tools/libxen/src/xen_host.c
+++ b/tools/libxen/src/xen_host.c
@@ -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
@@ -160,37 +160,6 @@ xen_host_get_by_uuid(xen_session *session, xen_host *result, char *uuid)
bool
-xen_host_create(xen_session *session, xen_host *result, xen_host_record *record)
-{
- abstract_value param_values[] =
- {
- { .type = &xen_host_record_abstract_type_,
- .u.struct_val = record }
- };
-
- abstract_type result_type = abstract_type_string;
-
- *result = NULL;
- XEN_CALL_("host.create");
- return session->ok;
-}
-
-
-bool
-xen_host_destroy(xen_session *session, xen_host host)
-{
- abstract_value param_values[] =
- {
- { .type = &abstract_type_string,
- .u.string_val = host }
- };
-
- xen_call_(session, "host.destroy", param_values, 1, NULL, NULL);
- return session->ok;
-}
-
-
-bool
xen_host_get_by_name_label(xen_session *session, struct xen_host_set **result, char *label)
{
abstract_value param_values[] =