WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Remove host.create and host.destroy -- th

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Remove host.create and host.destroy -- these never made any sense.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 20 Feb 2007 19:30:19 -0800
Delivery-date: Tue, 20 Feb 2007 19:30:45 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1172011581 0
# Node ID e0e300fda3f04a75cd6bcd69afecbda8e3737cc9
# Parent  bab07bed5c0a6e4d6f41f0990ca478345ea259f8
Remove host.create and host.destroy -- these never made any sense.

Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
 docs/xen-api/xenapi-datamodel.tex |   64 --------------------------------------
 tools/libxen/include/xen_host.h   |   16 ---------
 tools/libxen/src/xen_host.c       |   33 -------------------
 tools/python/xen/xend/XendAPI.py  |    4 --
 4 files changed, 2 insertions(+), 115 deletions(-)

diff -r bab07bed5c0a -r e0e300fda3f0 docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Tue Feb 20 22:40:55 2007 +0000
+++ b/docs/xen-api/xenapi-datamodel.tex Tue Feb 20 22:46:21 2007 +0000
@@ -5381,70 +5381,6 @@ value of the field
 \vspace{0.3cm}
 \vspace{0.3cm}
 \vspace{0.3cm}
-\subsubsection{RPC name:~create}
-
-{\bf Overview:} 
-Create a new host instance, and return its handle.
-
- \noindent {\bf Signature:} 
-\begin{verbatim} (host ref) create (session_id s, host record 
args)\end{verbatim}
-
-
-\noindent{\bf Arguments:}
-
- 
-\vspace{0.3cm}
-\begin{tabular}{|c|c|p{7cm}|}
- \hline
-{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt host record } & args & All constructor arguments \\ \hline 
-
-\end{tabular}
-
-\vspace{0.3cm}
-
- \noindent {\bf Return Type:} 
-{\tt 
-host ref
-}
-
-
-reference to the newly created object
-\vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
-\subsubsection{RPC name:~destroy}
-
-{\bf Overview:} 
-Destroy the specified host instance.
-
- \noindent {\bf Signature:} 
-\begin{verbatim} void destroy (session_id s, host ref self)\end{verbatim}
-
-
-\noindent{\bf Arguments:}
-
- 
-\vspace{0.3cm}
-\begin{tabular}{|c|c|p{7cm}|}
- \hline
-{\bf type} & {\bf name} & {\bf description} \\ \hline
-{\tt host ref } & self & reference to the object \\ \hline 
-
-\end{tabular}
-
-\vspace{0.3cm}
-
- \noindent {\bf Return Type:} 
-{\tt 
-void
-}
-
-
-
-\vspace{0.3cm}
-\vspace{0.3cm}
-\vspace{0.3cm}
 \subsubsection{RPC name:~get\_by\_uuid}
 
 {\bf Overview:} 
diff -r bab07bed5c0a -r e0e300fda3f0 tools/libxen/include/xen_host.h
--- a/tools/libxen/include/xen_host.h   Tue Feb 20 22:40:55 2007 +0000
+++ b/tools/libxen/include/xen_host.h   Tue Feb 20 22:46:21 2007 +0000
@@ -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 *sessio
 
 
 /**
- * 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 -r bab07bed5c0a -r e0e300fda3f0 tools/libxen/src/xen_host.c
--- a/tools/libxen/src/xen_host.c       Tue Feb 20 22:40:55 2007 +0000
+++ b/tools/libxen/src/xen_host.c       Tue Feb 20 22:46:21 2007 +0000
@@ -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 *sessio
 
 
 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[] =
diff -r bab07bed5c0a -r e0e300fda3f0 tools/python/xen/xend/XendAPI.py
--- a/tools/python/xen/xend/XendAPI.py  Tue Feb 20 22:40:55 2007 +0000
+++ b/tools/python/xen/xend/XendAPI.py  Tue Feb 20 22:46:21 2007 +0000
@@ -680,8 +680,6 @@ class XendAPI(object):
         return xen_api_success(XendNode.instance().host_metrics_uuid)
 
     # object methods
-    def host_destroy(self, session, host_ref):
-        return xen_api_error(XEND_ERROR_UNSUPPORTED)    
     def host_disable(self, session, host_ref):
         XendDomain.instance().set_allow_new_domains(False)
         return xen_api_success_void()
@@ -715,8 +713,6 @@ class XendAPI(object):
     # class methods
     def host_get_all(self, session):
         return xen_api_success((XendNode.instance().uuid,))
-    def host_create(self, session, struct):
-        return xen_api_error(XEND_ERROR_UNSUPPORTED)
     def host_get_by_name_label(self, session, name):
         if XendNode.instance().name == name:
             return xen_api_success((XendNode.instance().uuid,))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Remove host.create and host.destroy -- these never made any sense., Xen patchbot-unstable <=