[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Remove host.create and host.destroy -- these never made any sense.
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |