summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-07-19 17:09:31 +0100
committerRichard W.M. Jones <rjones@redhat.com>2012-07-19 17:12:44 +0100
commit80d102c49df440c64b744a14bf1d5f46a1c5b82b (patch)
tree237e771fe1aa59f5bb4b75f66601aba1c615b9e3
parenteca544d87d9335123077e30b7547270b6bfe0f2b (diff)
downloadlibguestfs-80d102c49df440c64b744a14bf1d5f46a1c5b82b.tar.gz
libguestfs-80d102c49df440c64b744a14bf1d5f46a1c5b82b.tar.xz
libguestfs-80d102c49df440c64b744a14bf1d5f46a1c5b82b.zip
Remove debug-cmdline API.
Note that debug* calls are not part of the stable API and can be removed or changed at any time.
-rw-r--r--generator/generator_actions.ml9
-rw-r--r--src/launch.c20
2 files changed, 0 insertions, 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
@@ -1218,15 +1218,6 @@ found or the caller has not called C<guestfs_inspect_os>.
Please read L<guestfs(3)/INSPECTION> 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", [], [];
in_docs = false;
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)