Session.for_connection_sync


Description:

[ CCode ( has_construct_function = false ) ]
public Session.for_connection_sync (DBusConnection connection, Cancellable? cancellable = null) throws Error

Synchronously creates a new Session instance.

This may block while the QEMU instance is contacted to query for initial devices and VM status.

Parameters:

connection

a private GDBusConnetion to a QEMU instance

cancellable

a Cancellable, or null

Returns:

a Session if successful; otherwise null and throws is set.