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.

Parameters

connection

Type: GDBusConnection

A GDBusConnection.

The data is owned by the caller of the function.
io_priority

Type: int

Priority for IO operations.

cancellable

Type: GCancellable

A GCancellable or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
callback

Type: GAsyncReadyCallback

A callback to execute upon completion of the operation.

user_data

Type: gpointer

Closure data for callback.

The argument can be NULL.
The data is owned by the caller of the function.