Method

SnapdClientnotices_set_after_notice

since: 1.66

Declaration [src]

void
snapd_client_notices_set_after_notice (
  SnapdClient* client,
  SnapdNotice* notice
)

Description [src]

Allows to set the “since” parameter with nanosecond accuracy when doing a call to get the notices. This is currently needed because GDateTime has only an accuracy of 1 microsecond, but to receive notice events correctly, without loosing any of them, an accuracy of 1 nanosecond is needed in the value passed on in the since_date_time parameter.

The value is “reset” after any call to snapd_client_get_notices_*(), so it must be set again always before doing any of those calls.

Passing NULL will reset the value too, in which case the mili- and micro-seconds defined in the since_date_time parameter will be used.

Available since: 1.66

Parameters

notice

Type: SnapdNotice

The last SnapdNotice received, to get all the notices after it.

The data is owned by the caller of the method.