Commit 15fb0b7e authored by Daniel P. Berrange's avatar Daniel P. Berrange

Rename gvir_sandbox_context_get_console to get_log_console

Prepare for splitting the interactive console off from the
main sandbox console, by renaming the latter to the log
console.
parent b2bdf4ca
......@@ -209,7 +209,7 @@ int main(int argc, char **argv) {
goto cleanup;
}
if (!(con = gvir_sandbox_context_get_console(ctx, &error))) {
if (!(con = gvir_sandbox_context_get_log_console(ctx, &error))) {
g_printerr(_("Unable to get log console: %s\n"),
error && error->message ? error->message : "unknown");
goto cleanup;
......
......@@ -378,7 +378,8 @@ gboolean gvir_sandbox_context_start(GVirSandboxContext *ctxt, GError **error)
if (!(gvir_sandbox_cleaner_run_post_start(priv->cleaner, NULL)))
goto error;
priv->console = GVIR_SANDBOX_CONSOLE(gvir_sandbox_console_raw_new(priv->connection, priv->domain,
priv->console = GVIR_SANDBOX_CONSOLE(gvir_sandbox_console_raw_new(priv->connection,
priv->domain,
NULL));
priv->active = TRUE;
......@@ -473,13 +474,13 @@ gboolean gvir_sandbox_context_stop(GVirSandboxContext *ctxt, GError **error)
/**
* gvir_sandbox_context_get_console:
* gvir_sandbox_context_get_log_console:
* @ctxt: (transfer none): the sandbox context
*
* Returns: (transfer full)(allow-none): the sandbox console (or NULL)
*/
GVirSandboxConsole *gvir_sandbox_context_get_console(GVirSandboxContext *ctxt,
GError **error)
GVirSandboxConsole *gvir_sandbox_context_get_log_console(GVirSandboxContext *ctxt,
GError **error)
{
GVirSandboxContextPrivate *priv = ctxt->priv;
......
......@@ -75,8 +75,8 @@ GVirDomain *gvir_sandbox_context_get_domain(GVirSandboxContext *ctxt,
GError **error);
GVirConnection *gvir_sandbox_context_get_connection(GVirSandboxContext *ctxt);
GVirSandboxConsole *gvir_sandbox_context_get_console(GVirSandboxContext *ctxt,
GError **error);
GVirSandboxConsole *gvir_sandbox_context_get_log_console(GVirSandboxContext *ctxt,
GError **error);
GVirSandboxConsole *gvir_sandbox_context_get_shell_console(GVirSandboxContext *ctxt,
GError **error);
......
......@@ -124,7 +124,7 @@ LIBVIRT_SANDBOX_0.0.1 {
gvir_sandbox_context_get_config;
gvir_sandbox_context_get_domain;
gvir_sandbox_context_get_connection;
gvir_sandbox_context_get_console;
gvir_sandbox_context_get_log_console;
gvir_sandbox_context_get_shell_console;
gvir_sandbox_context_start;
gvir_sandbox_context_stop;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment