GVirSandboxContextService

GVirSandboxContextService — Desktop application sandbox context

Synopsis

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

struct              GVirSandboxContextService;
struct              GVirSandboxContextServiceClass;
GVirSandboxContextService * gvir_sandbox_context_service_new
                                                        (GVirConnection *connection,
                                                         GVirSandboxConfigService *config);
gboolean            gvir_sandbox_context_service_define (GVirSandboxContextService *ctxt,
                                                         GError **error);
gboolean            gvir_sandbox_context_service_undefine
                                                        (GVirSandboxContextService *ctxt,
                                                         GError **error);

Object Hierarchy

  GObject
   +----GVirSandboxContext
         +----GVirSandboxContextService

Description

Provides a base class for implementing service desktop application sandboxes

The GVirSandboxContextService object extends the functionality provided by GVirSandboxContext to allow the application to display output in a service desktop.

Details

struct GVirSandboxContextService

struct GVirSandboxContextService;

struct GVirSandboxContextServiceClass

struct GVirSandboxContextServiceClass {
    GVirSandboxContextClass parent_class;

    gboolean (*define)(GVirSandboxContextService *ctxt, GError **error);
    gboolean (*undefine)(GVirSandboxContextService *ctxt, GError **error);

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

gvir_sandbox_context_service_new ()

GVirSandboxContextService * gvir_sandbox_context_service_new
                                                        (GVirConnection *connection,
                                                         GVirSandboxConfigService *config);

Create a new service application sandbox context

connection :

the libvirt connection. [transfer none]

config :

the initial configuratoion. [transfer none]

Returns :

a new service sandbox context object. [transfer full]

gvir_sandbox_context_service_define ()

gboolean            gvir_sandbox_context_service_define (GVirSandboxContextService *ctxt,
                                                         GError **error);

gvir_sandbox_context_service_undefine ()

gboolean            gvir_sandbox_context_service_undefine
                                                        (GVirSandboxContextService *ctxt,
                                                         GError **error);

See Also

GVirSandboxContext