From 80d102c49df440c64b744a14bf1d5f46a1c5b82b Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Thu, 19 Jul 2012 17:09:31 +0100 Subject: Remove debug-cmdline API. Note that debug* calls are not part of the stable API and can be removed or changed at any time. --- generator/generator_actions.ml | 9 --------- src/launch.c | 20 -------------------- 2 files changed, 29 deletions(-) diff --git a/generator/generator_actions.ml b/generator/generator_actions.ml index 4edf9789..79e9fae6 100644 --- a/generator/generator_actions.ml +++ b/generator/generator_actions.ml @@ -1217,15 +1217,6 @@ found or the caller has not called C. Please read L for more details." }; - { defaults with - name = "debug_cmdline"; - style = RStringList "cmdline", [], []; - in_docs = false; - shortdesc = "debug the QEMU command line (internal use only)"; - longdesc = "\ -This returns the internal QEMU command line. 'debug' commands are -not part of the formal API and can be removed or changed at any time." }; - { defaults with name = "debug_drives"; style = RStringList "cmdline", [], []; diff --git a/src/launch.c b/src/launch.c index be834a8e..8184b57b 100644 --- a/src/launch.c +++ b/src/launch.c @@ -217,26 +217,6 @@ guestfs___rollback_drives (guestfs_h *g, struct drive **i) guestfs___free_drives(i); } -/* Internal command to return the command line. */ -char ** -guestfs__debug_cmdline (guestfs_h *g) -{ - size_t i; - char **r; - - alloc_cmdline (g); - - r = safe_malloc (g, sizeof (char *) * (g->cmdline_size + 1)); - r[0] = safe_strdup (g, g->qemu); /* g->cmdline[0] is always NULL */ - - for (i = 1; i < g->cmdline_size; ++i) - r[i] = safe_strdup (g, g->cmdline[i]); - - r[g->cmdline_size] = NULL; - - return r; /* caller frees */ -} - /* Internal command to return the list of drives. */ char ** guestfs__debug_drives (guestfs_h *g) -- cgit