Function

QmiDevicenew

since: 1.0

Declaration [src]

void
qmi_device_new (
  GFile* file,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

Asynchronously creates a QmiDevice object to manage file. When the operation is finished, callback will be invoked. You can then call qmi_device_new_finish() to get the result of the operation.

Available since: 1.0

This function completes asynchronously. Use qmi_device_new_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

file

Type: GFile

A GFile.

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

Type: GCancellable

Optional GCancellable object, NULL to ignore.

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

Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the initialization is finished.

user_data

Type: gpointer

The data to pass to callback function.

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