diff options
author | Ewan Mellor <ewan@xensource.com> | 2007-04-08 23:03:16 +0100 |
---|---|---|
committer | Ewan Mellor <ewan@xensource.com> | 2007-04-08 23:03:16 +0100 |
commit | 0e20ef60f83697cf5c9e6e696e601622984db7ad (patch) | |
tree | 67b6e72a05f2a49323d2fb15bf102c8995882b21 | |
parent | b9526a2fbd96221fec6ceeb010642e8ff269ffe2 (diff) | |
download | xen-0e20ef60f83697cf5c9e6e696e601622984db7ad.tar.gz xen-0e20ef60f83697cf5c9e6e696e601622984db7ad.tar.bz2 xen-0e20ef60f83697cf5c9e6e696e601622984db7ad.zip |
Add bindings and docs for the host.dmesg_clear call.
Signed-off-by: Ewan Mellor <ewan@xensource.com>
-rw-r--r-- | docs/xen-api/xenapi-datamodel.tex | 32 | ||||
-rw-r--r-- | tools/libxen/include/xen_host.h | 11 | ||||
-rw-r--r-- | tools/libxen/src/xen_host.c | 17 |
3 files changed, 58 insertions, 2 deletions
diff --git a/docs/xen-api/xenapi-datamodel.tex b/docs/xen-api/xenapi-datamodel.tex index 01b980d8a2..2ed8ab1350 100644 --- a/docs/xen-api/xenapi-datamodel.tex +++ b/docs/xen-api/xenapi-datamodel.tex @@ -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 --git a/tools/libxen/include/xen_host.h b/tools/libxen/include/xen_host.h index 1fbe014325..a27c875687 100644 --- a/tools/libxen/include/xen_host.h +++ b/tools/libxen/include/xen_host.h @@ -414,7 +414,7 @@ xen_host_enable(xen_session *session, xen_host host); /** * 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, xen_host host); /** * 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, char **result, xen_host host); /** + * 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 --git a/tools/libxen/src/xen_host.c b/tools/libxen/src/xen_host.c index d46f061c30..2ae37fefe4 100644 --- a/tools/libxen/src/xen_host.c +++ b/tools/libxen/src/xen_host.c @@ -740,6 +740,23 @@ xen_host_dmesg(xen_session *session, char **result, xen_host host) 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) { |