# HG changeset patch
# User Ewan Mellor <ewan@xxxxxxxxxxxxx>
# Date 1176069796 -3600
# Node ID d1860a7c30fd42680793d49eba9c87800bbee597
# Parent 3e1181a913c9d2e8bded5bb84bd7e3097fa07328
Add bindings and docs for the host.dmesg_clear call.
Signed-off-by: Ewan Mellor <ewan@xxxxxxxxxxxxx>
---
docs/xen-api/xenapi-datamodel.tex | 32 ++++++++++++++++++++++++++++++++
tools/libxen/include/xen_host.h | 11 +++++++++--
tools/libxen/src/xen_host.c | 17 +++++++++++++++++
3 files changed, 58 insertions(+), 2 deletions(-)
diff -r 3e1181a913c9 -r d1860a7c30fd docs/xen-api/xenapi-datamodel.tex
--- a/docs/xen-api/xenapi-datamodel.tex Tue Apr 10 15:35:37 2007 +0100
+++ b/docs/xen-api/xenapi-datamodel.tex Sun Apr 08 23:03:16 2007 +0100
@@ -4919,6 +4919,38 @@ dmesg string
\vspace{0.3cm}
\vspace{0.3cm}
\vspace{0.3cm}
+\subsubsection{RPC name:~dmesg\_clear}
+
+{\bf Overview:}
+Get the host xen dmesg, and clear the buffer.
+
+ \noindent {\bf Signature:}
+\begin{verbatim} string dmesg_clear (session_id s, host ref host)\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 } & host & The Host to query \\ \hline
+
+\end{tabular}
+
+\vspace{0.3cm}
+
+ \noindent {\bf Return Type:}
+{\tt
+string
+}
+
+
+dmesg string
+\vspace{0.3cm}
+\vspace{0.3cm}
+\vspace{0.3cm}
\subsubsection{RPC name:~list\_methods}
{\bf Overview:}
diff -r 3e1181a913c9 -r d1860a7c30fd tools/libxen/include/xen_host.h
--- a/tools/libxen/include/xen_host.h Tue Apr 10 15:35:37 2007 +0100
+++ b/tools/libxen/include/xen_host.h Sun Apr 08 23:03:16 2007 +0100
@@ -414,7 +414,7 @@ xen_host_enable(xen_session *session, xe
/**
* Shutdown the host. (This function can only be called if there are no
- * currently running VMs on the host and it is disabled.)
+ * currently running VMs on the host and it is disabled.).
*/
extern bool
xen_host_shutdown(xen_session *session, xen_host host);
@@ -422,7 +422,7 @@ xen_host_shutdown(xen_session *session,
/**
* Reboot the host. (This function can only be called if there are no
- * currently running VMs on the host and it is disabled.)
+ * currently running VMs on the host and it is disabled.).
*/
extern bool
xen_host_reboot(xen_session *session, xen_host host);
@@ -436,6 +436,13 @@ xen_host_dmesg(xen_session *session, cha
/**
+ * Get the host xen dmesg, and clear the buffer.
+ */
+extern bool
+xen_host_dmesg_clear(xen_session *session, char **result, xen_host host);
+
+
+/**
* List all supported methods.
*/
extern bool
diff -r 3e1181a913c9 -r d1860a7c30fd tools/libxen/src/xen_host.c
--- a/tools/libxen/src/xen_host.c Tue Apr 10 15:35:37 2007 +0100
+++ b/tools/libxen/src/xen_host.c Sun Apr 08 23:03:16 2007 +0100
@@ -740,6 +740,23 @@ xen_host_dmesg(xen_session *session, cha
bool
+xen_host_dmesg_clear(xen_session *session, char **result, xen_host host)
+{
+ abstract_value param_values[] =
+ {
+ { .type = &abstract_type_string,
+ .u.string_val = host }
+ };
+
+ abstract_type result_type = abstract_type_string;
+
+ *result = NULL;
+ XEN_CALL_("host.dmesg_clear");
+ return session->ok;
+}
+
+
+bool
xen_host_list_methods(xen_session *session, struct xen_string_set **result)
{
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|