Typedefs | |
typedef void( | osso_time_cb_f )(gpointer data) |
Functions | |
osso_return_t | osso_time_set_notification_cb (osso_context_t *osso, osso_time_cb_f *cb, gpointer data) |
osso_return_t | osso_time_set (osso_context_t *osso, time_t new_time) |
typedef void( osso_time_cb_f)(gpointer data) |
This is the type for the time change notification callback function.
data | An application specific data pointer. |
osso_return_t osso_time_set | ( | osso_context_t * | osso, | |
time_t | new_time | |||
) |
This function notifies about the changing of system time over the D-Bus system bus. The notification can be received by setting up a callback function with osso_time_set_notification_cb.
osso | The library context as returned by osso_initialize. | |
new_time | The new time in epoch format. Must be greater than zero. |
osso_return_t osso_time_set_notification_cb | ( | osso_context_t * | osso, | |
osso_time_cb_f * | cb, | |||
gpointer | data | |||
) |
This function registers a callback that is called whenever the time is changed with this library.
osso | The library context as returned by osso_initialize. | |
cb | Function that is called when the system time is changed. | |
data | Arbitrary application specific pointer that will be passed to the callback and ignored by Libosso. |