GVirSandboxConsoleRpc

GVirSandboxConsoleRpc — A text mode rpc console

Functions

Signals

void exited Run First

Types and Values

Object Hierarchy

    GObject
    ╰── GVirSandboxConsole
        ╰── GVirSandboxConsoleRpc

Includes

#include <libvirt-sandbox/libvirt-sandbox.h>

Description

Provides an object to interface to the text mode console of the sandbox

The GVirSandboxConsole object provides support for interfacing to the text mode console of the sandbox. It forwards I/O between the GVirStream associated with the virtual machine's console and a local console represented by GUnixInputStream and GUnixOutputStream objects.

Functions

gvir_sandbox_console_rpc_new ()

GVirSandboxConsoleRpc *
gvir_sandbox_console_rpc_new (GVirConnection *connection,
                              GVirDomain *domain,
                              const char *devname);

Create a new sandbox rpc console from the specified configuration

Parameters

connection

the libvirt connection.

[transfer none]

domain

the libvirt domain whose console_rpc to run.

[transfer none]

devname

the console to connect to

 

Returns

a new sandbox console object.

[transfer full]

Types and Values

struct GVirSandboxConsoleRpc

struct GVirSandboxConsoleRpc;

struct GVirSandboxConsoleRpcClass

struct GVirSandboxConsoleRpcClass {
    GVirSandboxConsoleClass parent_class;

    void (*exited)(GVirSandboxConsoleRpc *console, int status);
    void (*closed)(GVirSandboxConsoleRpc *console, gboolean err);

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

GVirSandboxConsoleRpcPrivate

typedef struct _GVirSandboxConsoleRpcPrivate GVirSandboxConsoleRpcPrivate;

Signal Details

The “exited” signal

void
user_function (GVirSandboxConsoleRpc *gvirsandboxconsolerpc,
               gint                   arg1,
               gpointer               user_data)

Flags: Run First