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

timer-retu.c File Reference

#include <glib/gmain.h>
#include <glib/gtypes.h>
#include <dbus/dbus.h>
#include <time.h>
#include <osso-log.h>
#include <string.h>
#include <glib/gfileutils.h>
#include "rpc-retutime.h"
#include "include/timer-interface.h"
#include "debug.h"

Include dependency graph for timer-retu.c:

Go to the source code of this file.

Defines

#define RETUTIME_DBUS_SIGNAL_RULE   "type='signal',interface='org.kernel.kevent',path='/org/kernel/bus/platform/drivers/retu_rtc/alarm_expired'"
 This file is part of alarmd.
#define RETUTIME_MAX_TIME   86340

Typedefs

typedef _RetuTimerEvent RetuTimerEvent
typedef _RetuIdleEvent RetuIdleEvent

Functions

static gboolean retu_set_event (TimerPlugin *plugin, time_t wanted_time, TimerCallback cb, TimerCancel cancel, gpointer user_data)
static gboolean retu_remove_event (TimerPlugin *plugin)
static time_t retu_get_time (TimerPlugin *plugin)
static void retu_time_changed (TimerPlugin *plugin)
static void retu_plugin_deinit (TimerPlugin *plugin)
static void _clock_set_alarm (time_t alarm_time)
static gboolean _retu_event_fire (gpointer event)
static gboolean _retu_idle_event_fire (gpointer event)
gboolean plugin_initialize (TimerPlugin *plugin)
 plugin_initialize: : Pointer to the struct the plugin should fill.


Define Documentation

#define RETUTIME_DBUS_SIGNAL_RULE   "type='signal',interface='org.kernel.kevent',path='/org/kernel/bus/platform/drivers/retu_rtc/alarm_expired'"
 

This file is part of alarmd.

Contact Person: David Weinehall <david.weinehall@nokia.com>

Copyright (C) 2006 Nokia Corporation alarmd and libalarm are free software; you can redistribute them and/or modify them under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation.

alarmd and libalarm are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this software; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Definition at line 33 of file timer-retu.c.

#define RETUTIME_MAX_TIME   86340
 

Definition at line 35 of file timer-retu.c.

Referenced by _clock_set_alarm().


Typedef Documentation

typedef struct _RetuIdleEvent RetuIdleEvent
 

Definition at line 58 of file timer-retu.c.

typedef struct _RetuTimerEvent RetuTimerEvent
 

Definition at line 47 of file timer-retu.c.


Function Documentation

static void _clock_set_alarm time_t  alarm_time  )  [static]
 

Definition at line 261 of file timer-retu.c.

References ENTER_FUNC, LEAVE_FUNC, RETUTIME_MAX_TIME, and retutime_set_alarm_time().

Referenced by retu_set_event().

static gboolean _retu_event_fire gpointer  event  )  [static]
 

Definition at line 104 of file timer-retu.c.

References _RetuTimerEvent::cb, _RetuTimerEvent::cb_data, ENTER_FUNC, LEAVE_FUNC, _RetuTimerEvent::plugin, _TimerPlugin::plugin_data, retutime_ack_alarm(), retutime_disable_alarm(), and retutime_query_alarm().

Referenced by retu_set_event(), and retu_time_changed().

static gboolean _retu_idle_event_fire gpointer  event  )  [static]
 

Definition at line 90 of file timer-retu.c.

References _RetuIdleEvent::cb, _RetuIdleEvent::cb_data, _RetuIdleEvent::delayed, ENTER_FUNC, and LEAVE_FUNC.

Referenced by retu_set_event().

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 66 of file timer-retu.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.

static time_t retu_get_time TimerPlugin plugin  )  [static]
 

Definition at line 206 of file timer-retu.c.

References ENTER_FUNC, LEAVE_FUNC, _TimerPlugin::plugin_data, and _RetuTimerEvent::timer_time.

Referenced by plugin_initialize().

static void retu_plugin_deinit TimerPlugin plugin  )  [static]
 

Definition at line 220 of file timer-retu.c.

References _RetuTimerEvent::cancel, _RetuTimerEvent::cb_data, ENTER_FUNC, LEAVE_FUNC, _TimerPlugin::plugin_data, and _RetuTimerEvent::timer_id.

Referenced by plugin_initialize().

static gboolean retu_remove_event TimerPlugin plugin  )  [static]
 

Definition at line 179 of file timer-retu.c.

References _RetuTimerEvent::cancel, _RetuTimerEvent::cb_data, ENTER_FUNC, LEAVE_FUNC, _TimerPlugin::plugin_data, retutime_disable_alarm(), and _RetuTimerEvent::timer_id.

Referenced by plugin_initialize().

static gboolean retu_set_event TimerPlugin plugin,
time_t  wanted_time,
TimerCallback  cb,
TimerCancel  cancel,
gpointer  user_data
[static]
 

Definition at line 126 of file timer-retu.c.

References _clock_set_alarm(), _retu_event_fire(), _retu_idle_event_fire(), _RetuTimerEvent::cancel, _RetuTimerEvent::cb, _RetuIdleEvent::cb, _RetuTimerEvent::cb_data, _RetuIdleEvent::cb_data, DEBUG, _RetuIdleEvent::delayed, ENTER_FUNC, _TimerPlugin::is_startup, LEAVE_FUNC, _RetuTimerEvent::plugin, _TimerPlugin::plugin_data, _TimerPlugin::remove_event, _RetuTimerEvent::timer_id, and _RetuTimerEvent::timer_time.

Referenced by plugin_initialize().

static void retu_time_changed TimerPlugin plugin  )  [static]
 

Definition at line 239 of file timer-retu.c.

References _retu_event_fire(), _RetuTimerEvent::cb, _RetuTimerEvent::cb_data, ENTER_FUNC, LEAVE_FUNC, _TimerPlugin::plugin_data, _RetuTimerEvent::timer_id, and _RetuTimerEvent::timer_time.

Referenced by plugin_initialize().


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