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 sets the system and hardware time, and notifies about the changing of time over the D-BUS system bus. NOTICE: this function does not currently change the time or do anything else useful.

Parameters:
osso The library context as returned by osso_initialize.
new_time The new time in epoch format.
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 Thu Jul 6 13:33:57 2006 for LibOSSO by  doxygen 1.4.6