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:
GDateTime
Send only the notices generated after this moment (NULL for all).
The data is owned by the caller of the method. timeout
-
Type:
GTimeSpan
Time, in microseconds, to wait for a new notice (zero to return immediately).
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 call when the request is satisfied.The argument can be NULL
. 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 method.