ia64/xen-unstable

changeset 14786:d1860a7c30fd

Add bindings and docs for the host.dmesg_clear call.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Sun Apr 08 23:03:16 2007 +0100 (2007-04-08)
parents 3e1181a913c9
children 51678fab4b0f
files docs/xen-api/xenapi-datamodel.tex tools/libxen/include/xen_host.h tools/libxen/src/xen_host.c
line diff
     1.1 --- a/docs/xen-api/xenapi-datamodel.tex	Tue Apr 10 15:35:37 2007 +0100
     1.2 +++ b/docs/xen-api/xenapi-datamodel.tex	Sun Apr 08 23:03:16 2007 +0100
     1.3 @@ -4919,6 +4919,38 @@ dmesg string
     1.4  \vspace{0.3cm}
     1.5  \vspace{0.3cm}
     1.6  \vspace{0.3cm}
     1.7 +\subsubsection{RPC name:~dmesg\_clear}
     1.8 +
     1.9 +{\bf Overview:} 
    1.10 +Get the host xen dmesg, and clear the buffer.
    1.11 +
    1.12 + \noindent {\bf Signature:} 
    1.13 +\begin{verbatim} string dmesg_clear (session_id s, host ref host)\end{verbatim}
    1.14 +
    1.15 +
    1.16 +\noindent{\bf Arguments:}
    1.17 +
    1.18 + 
    1.19 +\vspace{0.3cm}
    1.20 +\begin{tabular}{|c|c|p{7cm}|}
    1.21 + \hline
    1.22 +{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.23 +{\tt host ref } & host & The Host to query \\ \hline 
    1.24 +
    1.25 +\end{tabular}
    1.26 +
    1.27 +\vspace{0.3cm}
    1.28 +
    1.29 + \noindent {\bf Return Type:} 
    1.30 +{\tt 
    1.31 +string
    1.32 +}
    1.33 +
    1.34 +
    1.35 +dmesg string
    1.36 +\vspace{0.3cm}
    1.37 +\vspace{0.3cm}
    1.38 +\vspace{0.3cm}
    1.39  \subsubsection{RPC name:~list\_methods}
    1.40  
    1.41  {\bf Overview:} 
     2.1 --- a/tools/libxen/include/xen_host.h	Tue Apr 10 15:35:37 2007 +0100
     2.2 +++ b/tools/libxen/include/xen_host.h	Sun Apr 08 23:03:16 2007 +0100
     2.3 @@ -414,7 +414,7 @@ xen_host_enable(xen_session *session, xe
     2.4  
     2.5  /**
     2.6   * Shutdown the host. (This function can only be called if there are no
     2.7 - * currently running VMs on the host and it is disabled.)
     2.8 + * currently running VMs on the host and it is disabled.).
     2.9   */
    2.10  extern bool
    2.11  xen_host_shutdown(xen_session *session, xen_host host);
    2.12 @@ -422,7 +422,7 @@ xen_host_shutdown(xen_session *session, 
    2.13  
    2.14  /**
    2.15   * Reboot the host. (This function can only be called if there are no
    2.16 - * currently running VMs on the host and it is disabled.)
    2.17 + * currently running VMs on the host and it is disabled.).
    2.18   */
    2.19  extern bool
    2.20  xen_host_reboot(xen_session *session, xen_host host);
    2.21 @@ -436,6 +436,13 @@ xen_host_dmesg(xen_session *session, cha
    2.22  
    2.23  
    2.24  /**
    2.25 + * Get the host xen dmesg, and clear the buffer.
    2.26 + */
    2.27 +extern bool
    2.28 +xen_host_dmesg_clear(xen_session *session, char **result, xen_host host);
    2.29 +
    2.30 +
    2.31 +/**
    2.32   * List all supported methods.
    2.33   */
    2.34  extern bool
     3.1 --- a/tools/libxen/src/xen_host.c	Tue Apr 10 15:35:37 2007 +0100
     3.2 +++ b/tools/libxen/src/xen_host.c	Sun Apr 08 23:03:16 2007 +0100
     3.3 @@ -740,6 +740,23 @@ xen_host_dmesg(xen_session *session, cha
     3.4  
     3.5  
     3.6  bool
     3.7 +xen_host_dmesg_clear(xen_session *session, char **result, xen_host host)
     3.8 +{
     3.9 +    abstract_value param_values[] =
    3.10 +        {
    3.11 +            { .type = &abstract_type_string,
    3.12 +              .u.string_val = host }
    3.13 +        };
    3.14 +
    3.15 +    abstract_type result_type = abstract_type_string;
    3.16 +
    3.17 +    *result = NULL;
    3.18 +    XEN_CALL_("host.dmesg_clear");
    3.19 +    return session->ok;
    3.20 +}
    3.21 +
    3.22 +
    3.23 +bool
    3.24  xen_host_list_methods(xen_session *session, struct xen_string_set **result)
    3.25  {
    3.26