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

Time


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)

Variables

*typedef void( osso_time_cb_f )(gpointer data)

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.


Variable 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.


Generated on Mon Dec 18 16:43:36 2006 for Libosso by  doxygen 1.4.2