Method
IdeDeviceProviderload_async
Declaration
void
ide_device_provider_load_async (
IdeDeviceProvider* self,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Requests that the IdeDeviceProvider
asynchronously load any known devices.
This should only be called once on an IdeDeviceProvider
. It is an error
to call this function more than once for a single IdeDeviceProvider
.
IdeDeviceProvider
implementations are expected to emit the
IdeDeviceProvider::device-added
signal for each device they’ve discovered.
That should be done for known devices before returning from the asynchronous
operation so that the device manager does not need to wait for additional
devices to enter the “settled” state.
Parameters
cancellable
-
Type:
GCancellable
A
GCancellable
orNULL
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
to execute upon completion.The argument can be NULL
. user_data
-
Type:
gpointer
Closure data for
callback
.The argument can be NULL
.The data is owned by the caller of the method.