notices_set_after_notice


Description:

[ Version ( since = "1.66" ) ]
public void notices_set_after_notice (Notice notice)

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.

Parameters:

this

a Client

notice

the last Notice received, to get all the notices after it.