Time


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 Documentation

typedef void( osso_time_cb_f)(gpointer data)

This is the type for the time change notification callback function.

Parameters:
data An application specific data pointer.


Function Documentation

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.

Parameters:
osso The library context as returned by osso_initialize.
new_time The new time in epoch format. Must be greater than zero.
Returns:
OSSO_OK if all goes well, OSSO_ERROR if an error occurred, or OSSO_INVALID if new_time or osso context is invalid.

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.

Parameters:
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.
Returns:
OSSO_OK if all goes well, OSSO_ERROR if an error occurred, or OSSO_INVALID if some parameter is invalid.


Generated on Wed Jan 16 15:51:05 2008 for Libosso by  doxygen 1.5.1