GVirSandboxConfigMount

GVirSandboxConfigMount — Filesystem attachment configuration details

Synopsis

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

#define             GVIR_SANDBOX_TYPE_CONFIG_MOUNT_HANDLE
struct              GVirSandboxConfigMount;
struct              GVirSandboxConfigMountClass;
const gchar *       gvir_sandbox_config_mount_get_target
                                                        (GVirSandboxConfigMount *config);
void                gvir_sandbox_config_mount_add_include
                                                        (GVirSandboxConfigMount *config,
                                                         const gchar *srcpath,
                                                         const gchar *dstpath);
GHashTable *        gvir_sandbox_config_mount_get_includes
                                                        (GVirSandboxConfigMount *config);

Object Hierarchy

  GObject
   +----GVirSandboxConfigMount
         +----GVirSandboxConfigMountFile
         +----GVirSandboxConfigMountRam

Properties

  "target"                   gchar*                : Read / Write / Construct Only

Description

Provides an object to store information about a filesystem attachment in the sandbox

The GVirSandboxConfigMount object stores information required to attach a host filesystem to the application sandbox. The sandbox starts off with a complete view of the host filesystem. This object allows a specific area of the host filesystem to be hidden and replaced with alternate content.

Details

GVIR_SANDBOX_TYPE_CONFIG_MOUNT_HANDLE

#define GVIR_SANDBOX_TYPE_CONFIG_MOUNT_HANDLE      (gvir_sandbox_config_mount_handle_get_type ())

struct GVirSandboxConfigMount

struct GVirSandboxConfigMount;

struct GVirSandboxConfigMountClass

struct GVirSandboxConfigMountClass {
    GObjectClass parent_class;

    gpointer padding[LIBVIRT_SANDBOX_CLASS_PADDING];
};

gvir_sandbox_config_mount_get_target ()

const gchar *       gvir_sandbox_config_mount_get_target
                                                        (GVirSandboxConfigMount *config);

Retrieves the target directory for the custom mount

config :

the sandbox mount config. [transfer none]

Returns :

the target directory path. [transfer none]

gvir_sandbox_config_mount_add_include ()

void                gvir_sandbox_config_mount_add_include
                                                        (GVirSandboxConfigMount *config,
                                                         const gchar *srcpath,
                                                         const gchar *dstpath);

Request that the file srcpath from the host OS is to be copied to dstpath, relative to the target path in the sandbox.

config :

the sandbox mount config. [transfer none]

srcpath :

a file on the host. [transfer none]

dstpath :

a path within the mount. [transfer none]

gvir_sandbox_config_mount_get_includes ()

GHashTable *        gvir_sandbox_config_mount_get_includes
                                                        (GVirSandboxConfigMount *config);

Retrieves the list of all include files

config :

the sandbox mount config. [transfer none]

Returns :

the include files. [transfer none][element-type filename filename]

Property Details

The "target" property

  "target"                   gchar*                : Read / Write / Construct Only

The sandbox target directory.

Default value: NULL