Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

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 broadcasts the time change notification event over the D-Bus.

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 The function that is called when system time is changed.
data An application specific data pointer.
Returns:
OSSO_OK if all goes well, OSSO_ERROR if an error occurred or OSSO_INVALID if some parameter is invalid.


Generated on Mon May 23 03:17:49 2005 for LibOSSO by doxygen 1.3.7