Function
MksSessionnew_for_connection
Declaration [src]
void
mks_session_new_for_connection (
GDBusConnection* connection,
int io_priority,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Creates a MksSession which communicates using connection.
The GDBusConnection should be a private D-Bus connection to a QEMU
instance which has devices created using the “dbus” backend.
callback will be executed when the session has been created or
failed to create.
This function will not block the calling thread.
use mks_session_new_for_connection_finish() to get the result of
this operation.
This function completes asynchronously. Use mks_session_new_for_connection_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
connection-
Type:
GDBusConnectionA
GDBusConnection.The data is owned by the caller of the function. io_priority-
Type:
intPriority for IO operations.
cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackA callback to execute upon completion of the operation.
user_data-
Type:
gpointerClosure data for
callback.The argument can be NULL.The data is owned by the caller of the function.