![]() |
![]() |
![]() |
Libvirt-sandbox Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <libvirt-sandbox/libvirt-sandbox.h> #define GVIR_SANDBOX_TYPE_BUILDER_HANDLE struct GVirSandboxBuilder; struct GVirSandboxBuilderClass; GVirConfigDomain * gvir_sandbox_builder_construct (GVirSandboxBuilder *builder
,GVirSandboxConfig *config
,const gchar *configdir
,GVirSandboxCleaner *cleaner
,GError **error
); GVirSandboxBuilder * gvir_sandbox_builder_for_connection (GVirConnection *connection
,GError **error
); GVirConnection * gvir_sandbox_builder_get_connection (GVirSandboxBuilder *builder
);
GObject +----GVirSandboxBuilder +----GVirSandboxBuilderContainer +----GVirSandboxBuilderMachine
Provides a base class for constructing sandboxes
The GVirSandboxBuilder objects provides the basic framework for creating GVirDomain instances from GVirSandboxConfig instances.
#define GVIR_SANDBOX_TYPE_BUILDER_HANDLE (gvir_sandbox_builder_handle_get_type ())
struct GVirSandboxBuilderClass { GObjectClass parent_class; gboolean (*construct_basic)(GVirSandboxBuilder *builder, GVirSandboxConfig *config, const gchar *configdir, GVirSandboxCleaner *cleaner, GVirConfigDomain *domain, GError **error); gboolean (*construct_os)(GVirSandboxBuilder *builder, GVirSandboxConfig *config, const gchar *configdir, GVirSandboxCleaner *cleaner, GVirConfigDomain *domain, GError **error); gboolean (*construct_features)(GVirSandboxBuilder *builder, GVirSandboxConfig *config, const gchar *configdir, GVirSandboxCleaner *cleaner, GVirConfigDomain *domain, GError **error); gboolean (*construct_devices)(GVirSandboxBuilder *builder, GVirSandboxConfig *config, const gchar *configdir, GVirSandboxCleaner *cleaner, GVirConfigDomain *domain, GError **error); gboolean (*construct_security)(GVirSandboxBuilder *builder, GVirSandboxConfig *config, const gchar *configdir, GVirSandboxCleaner *cleaner, GVirConfigDomain *domain, GError **error); gboolean (*construct_domain)(GVirSandboxBuilder *builder, GVirSandboxConfig *config, const gchar *configdir, GVirSandboxCleaner *cleaner, GVirConfigDomain *domain, GError **error); };
GVirConfigDomain * gvir_sandbox_builder_construct (GVirSandboxBuilder *builder
,GVirSandboxConfig *config
,const gchar *configdir
,GVirSandboxCleaner *cleaner
,GError **error
);
Create a domain configuration from the sandbox configuration
|
the sandbox builder. [transfer none] |
|
the sandbox configuration. [transfer none] |
|
the sandbox cleaner. [transfer none] |
|
the error location. [out] |
Returns : |
the newly built domain configuration. [transfer full] |
GVirSandboxBuilder * gvir_sandbox_builder_for_connection (GVirConnection *connection
,GError **error
);
Find and instantiate a suitable builder for sandboxes to be hosted
under the connection
.
|
the connection to host the sandbox. [transfer none] |
|
the error. [out] |
Returns : |
a new builder or NULL. [transfer full] |
GVirConnection * gvir_sandbox_builder_get_connection (GVirSandboxBuilder *builder
);
Retrieves the sandbox connection
|
the sandbox builder. [transfer none] |
Returns : |
the current connection. [transfer full] |
"connection"
property"connection" GVirConnection* : Read / Write / Construct Only
The sandbox connection.