Main Page | Data Structures | File List | Data Fields | Globals

include/timer-interface.h File Reference

#include <glib/gtypes.h>
#include <time.h>

Include dependency graph for timer-interface.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef void(* TimerCallback )(gpointer user_data, gboolean delayed)
 TimerCallback: : user data set when the callback was connected.
typedef void(* TimerCancel )(gpointer user_data)
 TimerCancel: : user data set when the callback was connected.
typedef _TimerPlugin TimerPlugin
 TimerPlugin: : Boolean that indicates if alarmd is starting up.

Functions

gboolean plugin_initialize (TimerPlugin *plugin)
 plugin_initialize: : Pointer to the struct the plugin should fill.


Typedef Documentation

typedef void(* TimerCallback)(gpointer user_data, gboolean delayed)
 

TimerCallback: : user data set when the callback was connected.

: TRUE if the event is happening after supposed time.

Callback notify for timed events.

Definition at line 42 of file timer-interface.h.

typedef void(* TimerCancel)(gpointer user_data)
 

TimerCancel: : user data set when the callback was connected.

Callback called when an event is taken off the timer.

Definition at line 50 of file timer-interface.h.

typedef struct _TimerPlugin TimerPlugin
 

TimerPlugin: : Boolean that indicates if alarmd is starting up.

: Function the events should call when they put self on the timer. : Function that removes the currently timed event. : Gets the time of the currently timed event. : Indicates that the system time has changed. : Deinitializes the plugin. : Priority of the plugin. : TRUE if the plugin can power up the device. : Plugins internal data.

Struct that defines the API for a timer plugin.

Definition at line 66 of file timer-interface.h.


Function Documentation

gboolean plugin_initialize TimerPlugin plugin  ) 
 

plugin_initialize: : Pointer to the struct the plugin should fill.

Function all timer plugins should implement. Fills in the struct that describes the plugin. Returns: TRUE if plugin initialization was successful.

Definition at line 54 of file timer-gtimeout.c.

References _TimerPlugin::can_power_up, DEBUG, ENTER_FUNC, _TimerPlugin::get_time, LEAVE_FUNC, _TimerPlugin::plugin_data, _TimerPlugin::plugin_deinit, _TimerPlugin::priority, _TimerPlugin::remove_event, retu_get_time(), retu_plugin_deinit(), retu_remove_event(), retu_set_event(), retu_time_changed(), _TimerPlugin::set_event, and _TimerPlugin::time_changed.


Generated on Thu Dec 21 18:23:31 2006 for Alarmd by  doxygen 1.4.2