Method

SnapdClientget_notices_with_filters_async

since: 1.65

Declaration [src]

void
snapd_client_get_notices_with_filters_async (
  SnapdClient* client,
  gchar* user_id,
  gchar* users,
  gchar* types,
  gchar* keys,
  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, allowing to filter the results with several options.

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_with_filters_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

user_id

Type: gchar*

Filter by this user-id (NULL for no filter).

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
users

Type: gchar*

Filter by this comma-separated list of users (NULL for no filter).

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
types

Type: gchar*

Filter by this comma-separated list of types (NULL for no filter).

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
keys

Type: gchar*

Filter by this comma-separated list of keys (NULL for no filter).

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.
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 or NULL.

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.