| Libvirt-designer Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct GVirDesignerDomain; struct GVirDesignerDomainClass; enum GVirDesignerDomainResources; GVirConfigDomainDisk * gvir_designer_domain_add_disk_device (GVirDesignerDomain *design,const char *devpath,GError **error); GVirConfigDomainDisk * gvir_designer_domain_add_disk_file (GVirDesignerDomain *design,const char *filepath,const char *format,GError **error); GVirConfigDomainInterface * gvir_designer_domain_add_interface_network (GVirDesignerDomain *design,const char *network,GError **error); GVirConfigCapabilities * gvir_designer_domain_get_capabilities (GVirDesignerDomain *design); GVirConfigDomain * gvir_designer_domain_get_config (GVirDesignerDomain *design); OsinfoOs * gvir_designer_domain_get_os (GVirDesignerDomain *design); OsinfoPlatform * gvir_designer_domain_get_platform (GVirDesignerDomain *design); GVirDesignerDomain * gvir_designer_domain_new (OsinfoOs *os,OsinfoPlatform *platform,GVirConfigCapabilities *caps); gboolean gvir_designer_domain_setup_container (GVirDesignerDomain *design,GError **error); gboolean gvir_designer_domain_setup_container_full (GVirDesignerDomain *design,const char *arch,GError **error); gboolean gvir_designer_domain_setup_machine (GVirDesignerDomain *design,GError **error); gboolean gvir_designer_domain_setup_machine_full (GVirDesignerDomain *design,const char *arch,GVirConfigDomainOsType ostype,GError **error); gboolean gvir_designer_domain_setup_resources (GVirDesignerDomain *design,GVirDesignerDomainResources req,GError **error); gboolean gvir_designer_domain_supports_container (GVirDesignerDomain *design); gboolean gvir_designer_domain_supports_container_full (GVirDesignerDomain *design,const char *arch); gboolean gvir_designer_domain_supports_machine (GVirDesignerDomain *design); gboolean gvir_designer_domain_supports_machine_full (GVirDesignerDomain *design,const char *arch,GVirConfigDomainOsType ostype);
"capabilities" GVirConfigCapabilities* : Read / Write / Construct Only "config" GVirConfigDomain* : Read "os" OsinfoOs* : Read / Write / Construct Only "platform" OsinfoPlatform* : Read / Write / Construct Only
struct GVirDesignerDomainClass {
GObjectClass parent_class;
gpointer padding[20];
};
typedef enum {
GVIR_DESIGNER_DOMAIN_RESOURCES_MINIMAL,
GVIR_DESIGNER_DOMAIN_RESOURCES_RECOMMENDED,
} GVirDesignerDomainResources;
GVirConfigDomainDisk * gvir_designer_domain_add_disk_device (GVirDesignerDomain *design,const char *devpath,GError **error);
Add given device as a new disk to the domain designer instance.
|
the domain designer instance. [transfer none] |
|
path to the device. [transfer none] |
|
return location for a GError, or NULL |
Returns : |
the pointer to the new disk.
If something fails NULL is returned and error is set. [transfer none]
|
GVirConfigDomainDisk * gvir_designer_domain_add_disk_file (GVirDesignerDomain *design,const char *filepath,const char *format,GError **error);
Add a new disk to the domain.
|
the domain designer instance. [transfer none] |
|
the path to a file. [transfer none] |
|
disk format. [transfer none] |
|
return location for a GError, or NULL |
Returns : |
the pointer to new disk.
If something fails NULL is returned and error is set. [transfer none]
|
GVirConfigDomainInterface * gvir_designer_domain_add_interface_network (GVirDesignerDomain *design,const char *network,GError **error);
Add new network interface card into design. The interface is
of 'network' type with network used as the source network.
|
the domain designer instance. [transfer none] |
|
network name. [transfer none] |
|
return location for a GError, or NULL |
Returns : |
the pointer to the new interface. [transfer none] |
GVirConfigCapabilities * gvir_designer_domain_get_capabilities
(GVirDesignerDomain *design);
Retrieves the capabilities object associated with the designer The object should not be modified by the caller.
|
the domain designer instance. [transfer none] |
Returns : |
the capabilities. [transfer none] |
GVirConfigDomain * gvir_designer_domain_get_config (GVirDesignerDomain *design);
Retrieves the domain config object associated with the designer The object may be modified by the caller at will, but should not be freed.
|
the domain designer instance. [transfer none] |
Returns : |
the domain config. [transfer none] |
OsinfoOs * gvir_designer_domain_get_os (GVirDesignerDomain *design);
Retrieves the operating system object associated with the designer. The object should not be modified by the caller.
|
the domain designer instance. [transfer none] |
Returns : |
the operating system. [transfer none] |
OsinfoPlatform * gvir_designer_domain_get_platform (GVirDesignerDomain *design);
Retrieves the virtualization platform object associated with the designer. The object should not be modified by the caller.
|
the domain designer instance. [transfer none] |
Returns : |
the virtualization platform. [transfer none] |
GVirDesignerDomain * gvir_designer_domain_new (OsinfoOs *os,OsinfoPlatform *platform,GVirConfigCapabilities *caps);
gboolean gvir_designer_domain_setup_container (GVirDesignerDomain *design,GError **error);
gboolean gvir_designer_domain_setup_container_full (GVirDesignerDomain *design,const char *arch,GError **error);
gboolean gvir_designer_domain_setup_machine (GVirDesignerDomain *design,GError **error);
gboolean gvir_designer_domain_setup_machine_full (GVirDesignerDomain *design,const char *arch,GVirConfigDomainOsType ostype,GError **error);
gboolean gvir_designer_domain_setup_resources (GVirDesignerDomain *design,GVirDesignerDomainResources req,GError **error);
Set minimal or recommended resources on design.
|
the domain designer instance. [transfer none] |
|
requirements to set. [transfer none] |
|
return location for a GError, or NULL |
Returns : |
TRUE when successfully set, FALSE otherwise. [transfer none] |
gboolean gvir_designer_domain_supports_container
(GVirDesignerDomain *design);
gboolean gvir_designer_domain_supports_container_full (GVirDesignerDomain *design,const char *arch);
gboolean gvir_designer_domain_supports_machine
(GVirDesignerDomain *design);
gboolean gvir_designer_domain_supports_machine_full (GVirDesignerDomain *design,const char *arch,GVirConfigDomainOsType ostype);
"capabilities" property"capabilities" GVirConfigCapabilities* : Read / Write / Construct Only
Capabilities.