Method
SnapdClientget_notices_async
since: 1.65
Declaration [src]
void
snapd_client_get_notices_async (
SnapdClient* client,
GDateTime* since_date_time,
GTimeSpan timeout,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description [src]
Asynchronously get notifications that have occurred / are occurring on the snap daemon.
The since_date_time field, being a GDateTime, has a resolution of
microseconds, so, if nanosecond resolution is needed, it is mandatory to call
snapd_client_notices_set_after_notice before calling this method.
Available since: 1.65
This method completes asynchronously. Use snapd_client_get_notices_finish() inside the GAsyncReadyCallback to obtain the result of the operation.
Parameters
since_date_time-
Type:
GDateTimeSend only the notices generated after this moment (NULL for all).
The data is owned by the caller of the method. timeout-
Type:
GTimeSpanTime, in microseconds, to wait for a new notice (zero to return immediately).
cancellable-
Type:
GCancellableA
GCancellableorNULL.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto call when the request is satisfied.The argument can be NULL. user_data-
Type:
gpointerThe data to pass to callback function.
The argument can be NULL.The data is owned by the caller of the method.