direct-io.hg

changeset 14297:dfaca81ededb

Remove crashdump.create -- this doesn't make sense.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author Ewan Mellor <ewan@xensource.com>
date Thu Mar 08 23:16:34 2007 +0000 (2007-03-08)
parents f40b13ed0e05
children e562440e0412
files docs/xen-api/xenapi-datamodel.tex tools/libxen/include/xen_crashdump.h tools/libxen/src/xen_crashdump.c
line diff
     1.1 --- a/docs/xen-api/xenapi-datamodel.tex	Thu Mar 08 22:33:47 2007 +0000
     1.2 +++ b/docs/xen-api/xenapi-datamodel.tex	Thu Mar 08 23:16:34 2007 +0000
     1.3 @@ -11885,6 +11885,38 @@ Quals & Field & Type & Description \\
     1.4  \hline
     1.5  \end{longtable}
     1.6  \subsection{Additional RPCs associated with class: crashdump}
     1.7 +\subsubsection{RPC name:~destroy}
     1.8 +
     1.9 +{\bf Overview:} 
    1.10 +Destroy the specified crashdump.
    1.11 +
    1.12 + \noindent {\bf Signature:} 
    1.13 +\begin{verbatim} void destroy (session_id s, crashdump ref self)\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 crashdump ref } & self & The crashdump to destroy \\ \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 +void
    1.32 +}
    1.33 +
    1.34 +
    1.35 +
    1.36 +\vspace{0.3cm}
    1.37 +\vspace{0.3cm}
    1.38 +\vspace{0.3cm}
    1.39  \subsubsection{RPC name:~get\_all}
    1.40  
    1.41  {\bf Overview:} 
    1.42 @@ -12002,70 +12034,6 @@ value of the field
    1.43  \vspace{0.3cm}
    1.44  \vspace{0.3cm}
    1.45  \vspace{0.3cm}
    1.46 -\subsubsection{RPC name:~create}
    1.47 -
    1.48 -{\bf Overview:} 
    1.49 -Create a new crashdump instance, and return its handle.
    1.50 -
    1.51 - \noindent {\bf Signature:} 
    1.52 -\begin{verbatim} (crashdump ref) create (session_id s, crashdump record args)\end{verbatim}
    1.53 -
    1.54 -
    1.55 -\noindent{\bf Arguments:}
    1.56 -
    1.57 - 
    1.58 -\vspace{0.3cm}
    1.59 -\begin{tabular}{|c|c|p{7cm}|}
    1.60 - \hline
    1.61 -{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.62 -{\tt crashdump record } & args & All constructor arguments \\ \hline 
    1.63 -
    1.64 -\end{tabular}
    1.65 -
    1.66 -\vspace{0.3cm}
    1.67 -
    1.68 - \noindent {\bf Return Type:} 
    1.69 -{\tt 
    1.70 -crashdump ref
    1.71 -}
    1.72 -
    1.73 -
    1.74 -reference to the newly created object
    1.75 -\vspace{0.3cm}
    1.76 -\vspace{0.3cm}
    1.77 -\vspace{0.3cm}
    1.78 -\subsubsection{RPC name:~destroy}
    1.79 -
    1.80 -{\bf Overview:} 
    1.81 -Destroy the specified crashdump instance.
    1.82 -
    1.83 - \noindent {\bf Signature:} 
    1.84 -\begin{verbatim} void destroy (session_id s, crashdump ref self)\end{verbatim}
    1.85 -
    1.86 -
    1.87 -\noindent{\bf Arguments:}
    1.88 -
    1.89 - 
    1.90 -\vspace{0.3cm}
    1.91 -\begin{tabular}{|c|c|p{7cm}|}
    1.92 - \hline
    1.93 -{\bf type} & {\bf name} & {\bf description} \\ \hline
    1.94 -{\tt crashdump ref } & self & reference to the object \\ \hline 
    1.95 -
    1.96 -\end{tabular}
    1.97 -
    1.98 -\vspace{0.3cm}
    1.99 -
   1.100 - \noindent {\bf Return Type:} 
   1.101 -{\tt 
   1.102 -void
   1.103 -}
   1.104 -
   1.105 -
   1.106 -
   1.107 -\vspace{0.3cm}
   1.108 -\vspace{0.3cm}
   1.109 -\vspace{0.3cm}
   1.110  \subsubsection{RPC name:~get\_by\_uuid}
   1.111  
   1.112  {\bf Overview:} 
     2.1 --- a/tools/libxen/include/xen_crashdump.h	Thu Mar 08 22:33:47 2007 +0000
     2.2 +++ b/tools/libxen/include/xen_crashdump.h	Thu Mar 08 23:16:34 2007 +0000
     2.3 @@ -1,5 +1,5 @@
     2.4  /*
     2.5 - * Copyright (c) 2006, XenSource Inc.
     2.6 + * Copyright (c) 2006-2007, XenSource Inc.
     2.7   *
     2.8   * This library is free software; you can redistribute it and/or
     2.9   * modify it under the terms of the GNU Lesser General Public
    2.10 @@ -162,20 +162,6 @@ xen_crashdump_get_by_uuid(xen_session *s
    2.11  
    2.12  
    2.13  /**
    2.14 - * Create a new crashdump instance, and return its handle.
    2.15 - */
    2.16 -extern bool
    2.17 -xen_crashdump_create(xen_session *session, xen_crashdump *result, xen_crashdump_record *record);
    2.18 -
    2.19 -
    2.20 -/**
    2.21 - * Destroy the specified crashdump instance.
    2.22 - */
    2.23 -extern bool
    2.24 -xen_crashdump_destroy(xen_session *session, xen_crashdump crashdump);
    2.25 -
    2.26 -
    2.27 -/**
    2.28   * Get the uuid field of the given crashdump.
    2.29   */
    2.30  extern bool
    2.31 @@ -197,6 +183,13 @@ xen_crashdump_get_vdi(xen_session *sessi
    2.32  
    2.33  
    2.34  /**
    2.35 + * Destroy the specified crashdump
    2.36 + */
    2.37 +extern bool
    2.38 +xen_crashdump_destroy(xen_session *session, xen_crashdump self);
    2.39 +
    2.40 +
    2.41 +/**
    2.42   * Return a list of all the crashdumps known to the system.
    2.43   */
    2.44  extern bool
     3.1 --- a/tools/libxen/src/xen_crashdump.c	Thu Mar 08 22:33:47 2007 +0000
     3.2 +++ b/tools/libxen/src/xen_crashdump.c	Thu Mar 08 23:16:34 2007 +0000
     3.3 @@ -1,5 +1,5 @@
     3.4  /*
     3.5 - * Copyright (c) 2006, XenSource Inc.
     3.6 + * Copyright (c) 2006-2007, XenSource Inc.
     3.7   *
     3.8   * This library is free software; you can redistribute it and/or
     3.9   * modify it under the terms of the GNU Lesser General Public
    3.10 @@ -115,37 +115,6 @@ xen_crashdump_get_by_uuid(xen_session *s
    3.11  
    3.12  
    3.13  bool
    3.14 -xen_crashdump_create(xen_session *session, xen_crashdump *result, xen_crashdump_record *record)
    3.15 -{
    3.16 -    abstract_value param_values[] =
    3.17 -        {
    3.18 -            { .type = &xen_crashdump_record_abstract_type_,
    3.19 -              .u.struct_val = record }
    3.20 -        };
    3.21 -
    3.22 -    abstract_type result_type = abstract_type_string;
    3.23 -
    3.24 -    *result = NULL;
    3.25 -    XEN_CALL_("crashdump.create");
    3.26 -    return session->ok;
    3.27 -}
    3.28 -
    3.29 -
    3.30 -bool
    3.31 -xen_crashdump_destroy(xen_session *session, xen_crashdump crashdump)
    3.32 -{
    3.33 -    abstract_value param_values[] =
    3.34 -        {
    3.35 -            { .type = &abstract_type_string,
    3.36 -              .u.string_val = crashdump }
    3.37 -        };
    3.38 -
    3.39 -    xen_call_(session, "crashdump.destroy", param_values, 1, NULL, NULL);
    3.40 -    return session->ok;
    3.41 -}
    3.42 -
    3.43 -
    3.44 -bool
    3.45  xen_crashdump_get_vm(xen_session *session, xen_vm *result, xen_crashdump crashdump)
    3.46  {
    3.47      abstract_value param_values[] =
    3.48 @@ -180,6 +149,20 @@ xen_crashdump_get_vdi(xen_session *sessi
    3.49  
    3.50  
    3.51  bool
    3.52 +xen_crashdump_destroy(xen_session *session, xen_crashdump self)
    3.53 +{
    3.54 +    abstract_value param_values[] =
    3.55 +        {
    3.56 +            { .type = &abstract_type_string,
    3.57 +              .u.string_val = self }
    3.58 +        };
    3.59 +
    3.60 +    xen_call_(session, "crashdump.destroy", param_values, 1, NULL, NULL);
    3.61 +    return session->ok;
    3.62 +}
    3.63 +
    3.64 +
    3.65 +bool
    3.66  xen_crashdump_get_all(xen_session *session, struct xen_crashdump_set **result)
    3.67  {
    3.68