Top | ![]() |
![]() |
![]() |
![]() |
void | connection-closed | Run First |
void | connection-opened | Run First |
void | domain-added | Run First |
void | domain-removed | Run First |
gboolean gvir_connection_open (GVirConnection *conn
,GCancellable *cancellable
,GError **err
);
gboolean gvir_connection_open_read_only (GVirConnection *conn
,GCancellable *cancellable
,GError **err
);
void gvir_connection_open_async (GVirConnection *conn
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean gvir_connection_open_finish (GVirConnection *conn
,GAsyncResult *result
,GError **err
);
void gvir_connection_open_read_only_async (GVirConnection *conn
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean gvir_connection_open_read_only_finish (GVirConnection *conn
,GAsyncResult *result
,GError **err
);
gboolean gvir_connection_fetch_domains (GVirConnection *conn
,GCancellable *cancellable
,GError **err
);
void gvir_connection_fetch_domains_async (GVirConnection *conn
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean gvir_connection_fetch_domains_finish (GVirConnection *conn
,GAsyncResult *result
,GError **err
);
gchar * gvir_connection_get_hypervisor_name (GVirConnection *conn
,GError **err
);
Get name of current hypervisor used.
gulong gvir_connection_get_version (GVirConnection *conn
,GError **err
);
Get version of current hypervisor used.
GList *
gvir_connection_get_domains (GVirConnection *conn
);
Gets a list of the domains available through conn
.
List
of GVirDomain. The returned list should be freed with g_list_free()
,
after its elements have been unreffed with g_object_unref()
.
[element-type LibvirtGObject.Domain][transfer full]
GVirDomain * gvir_connection_get_domain (GVirConnection *conn
,const gchar *uuid
);
the GVirDomain, or NULL. The returned
object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirDomain * gvir_connection_find_domain_by_id (GVirConnection *conn
,gint id
);
the GVirDomain, or NULL. The returned
object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirDomain * gvir_connection_find_domain_by_name (GVirConnection *conn
,const gchar *name
);
the GVirDomain, or NULL. The returned
object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirDomain * gvir_connection_create_domain (GVirConnection *conn
,GVirConfigDomain *conf
,GError **err
);
Create the configuration file for a new persistent domain. The returned domain will initially be in the shutoff state.
conn |
a GVirConnection on which to create the domain |
|
conf |
the configuration for the new domain |
the newly created domain, or NULL if an error
occurred. The returned object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirDomain * gvir_connection_start_domain (GVirConnection *conn
,GVirConfigDomain *conf
,guint flags
,GError **err
);
Start a new transient domain without persistent configuration. The returned domain will initially be running.
conn |
a GVirConnection on which to create the domain |
|
conf |
the configuration for the new domain |
the newly created domain, or NULL if an error
occurred. The returned object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirInterface * gvir_connection_get_interface (GVirConnection *conn
,const gchar *name
);
GVirInterface * gvir_connection_find_interface_by_mac (GVirConnection *conn
,const gchar *macaddr
);
GVirNetwork * gvir_connection_get_network (GVirConnection *conn
,const gchar *uuid
);
GVirNetwork * gvir_connection_find_network_by_name (GVirConnection *conn
,const gchar *name
);
GList *
gvir_connection_get_network_filters (GVirConnection *conn
);
GVirNetworkFilter * gvir_connection_get_network_filter (GVirConnection *conn
,const gchar *uuid
);
GVirNetworkFilter * gvir_connection_find_network_filter_by_name (GVirConnection *conn
,const gchar *name
);
GList *
gvir_connection_get_node_devices (GVirConnection *conn
);
GVirNodeDevice * gvir_connection_get_node_device (GVirConnection *conn
,const gchar *name
);
GVirSecret * gvir_connection_get_secret (GVirConnection *conn
,const gchar *uuid
);
gboolean gvir_connection_fetch_storage_pools (GVirConnection *conn
,GCancellable *cancellable
,GError **err
);
void gvir_connection_fetch_storage_pools_async (GVirConnection *conn
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
gboolean gvir_connection_fetch_storage_pools_finish (GVirConnection *conn
,GAsyncResult *result
,GError **err
);
GList *
gvir_connection_get_storage_pools (GVirConnection *conn
);
Gets a list of the storage pools available through conn
.
List
of GVirStoragePool. The returned list should be freed with
g_list_free()
, after its elements have been unreffed with
g_object_unref()
.
[element-type LibvirtGObject.StoragePool][transfer full]
GVirStoragePool * gvir_connection_get_storage_pool (GVirConnection *conn
,const gchar *uuid
);
the GVirStoragePool, or NULL. The returned
object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirStoragePool * gvir_connection_find_storage_pool_by_name (GVirConnection *conn
,const gchar *name
);
the GVirStoragePool, or NULL. The returned
object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirStoragePool * gvir_connection_create_storage_pool (GVirConnection *conn
,GVirConfigStoragePool *conf
,guint flags
,GError **err
);
conn |
a GVirConnection on which to create the pool |
|
conf |
the configuration for the new storage pool |
|
flags |
the flags |
|
err |
return location for any GError |
the newly created storage pool, or NULL if an
error occurred. The returned list should be freed with g_list_free()
,
after its elements have been unreffed with g_object_unref()
.
[transfer full]
GVirStream * gvir_connection_get_stream (GVirConnection *conn
,guint flags
);
a GVirStream stream, or NULL.The returned
object should be unreffed with g_object_unref()
when no longer needed.
[transfer full]
GVirNodeInfo * gvir_connection_get_node_info (GVirConnection *conn
,GError **err
);
the info, or NULL if an error occurred. The
returned object should be unreffed with g_object_unref()
when no longer
needed.
[transfer full]
GVirConfigCapabilities * gvir_connection_get_capabilities (GVirConnection *conn
,GError **err
);
a GVirConfigCapabilities or NULL. The
returned object should be unreffed with g_object_unref()
when no longer
needed.
[transfer full]
void gvir_connection_get_capabilities_async (GVirConnection *conn
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
GVirConfigCapabilities * gvir_connection_get_capabilities_finish (GVirConnection *conn
,GAsyncResult *result
,GError **err
);
a GVirConfigCapabilities or NULL. The
returned object should be unreffed with g_object_unref()
when no longer
needed.
[transfer full]
gboolean gvir_connection_restore_domain_from_file (GVirConnection *conn
,gchar *filename
,GVirConfigDomain *custom_conf
,guint flags
,GError **err
);
Restores the domain saved with gvir_domain_save_to_file
void gvir_connection_restore_domain_from_file_async (GVirConnection *conn
,gchar *filename
,GVirConfigDomain *custom_conf
,guint flags
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronous variant of gvir_connection_restore_domain_from_file
gboolean gvir_connection_restore_domain_from_file_finish (GVirConnection *conn
,GAsyncResult *result
,GError **err
);
Finishes the operation started by gvir_restore_domain_from_file_async.
“handle”
property “handle” GVirConnectionHandle *
The connection handle.
Flags: Read / Write / Construct Only
“uri”
property“uri” gchar *
The connection URI.
Flags: Read / Write / Construct Only
Default value: NULL
“connection-closed”
signalvoid user_function (GVirConnection *gvirconnection, gpointer user_data)
Flags: Run First
“connection-opened”
signalvoid user_function (GVirConnection *gvirconnection, gpointer user_data)
Flags: Run First
“domain-added”
signalvoid user_function (GVirConnection *gvirconnection, GVirDomain *arg1, gpointer user_data)
Flags: Run First
“domain-removed”
signalvoid user_function (GVirConnection *gvirconnection, GVirDomain *arg1, gpointer user_data)
Flags: Run First