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:
GFileA
GFile.The data is owned by the caller of the function. cancellable-
Type:
GCancellableOptional
GCancellableobject,NULLto ignore.The argument can be NULL.The data is owned by the caller of the function. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the initialization is finished. user_data-
Type:
gpointerThe data to pass to callback function.
The argument can be NULL.The data is owned by the caller of the function.