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

timer-loader.h File Reference

#include "include/timer-interface.h"

Include dependency graph for timer-loader.h:

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

Go to the source code of this file.

Functions

void timer_plugins_set_startup (GSList *plugins, gboolean is_startup)
 timer_plugins_set_startup: : Plugin list as returned by load_timer_plugins.
void close_timer_plugins (GSList *plugins)
 close_timer_plugins: : Plugin list as returned by load_timer_plugins.
GSList * load_timer_plugins (const gchar *path)
 load_timer_plugins: : Directory to load the plugins from.
TimerPlugintimers_get_plugin (GSList *plugins, gboolean need_power_up)
 timers_get_plugin: : List of plugins as returned by load_timer_plugins.


Function Documentation

void close_timer_plugins GSList *  plugins  ) 
 

close_timer_plugins: : Plugin list as returned by load_timer_plugins.

Closes all plugins and frees all data.

Definition at line 154 of file timer-loader.c.

References _module_foreach_free().

Referenced by init_queue().

GSList* load_timer_plugins const gchar *  path  ) 
 

load_timer_plugins: : Directory to load the plugins from.

Loads all timer plugins from given directory. Gets the plugin priorities and closes all but the highest priority power up and non power up ones. Returns: List of plugins.

Definition at line 56 of file timer-loader.c.

References _module_free(), _module_load(), _timer_plugin_compare(), _TimerPlugin::can_power_up, _TimerPlugin::get_time, _TimerPlugin::is_startup, _TimerModule::loaded, _TimerModule::module_path, _TimerModule::plugin, _TimerPlugin::plugin_data, _TimerPlugin::plugin_deinit, _TimerPlugin::remove_event, and _TimerPlugin::set_event.

Referenced by init_queue().

void timer_plugins_set_startup GSList *  plugins,
gboolean  is_startup
 

timer_plugins_set_startup: : Plugin list as returned by load_timer_plugins.

: Boolean indicating the startup status of alarmd.

Sets the is_startup field for each plugin.

Definition at line 166 of file timer-loader.c.

References _set_startup().

Referenced by init_queue().

TimerPlugin* timers_get_plugin GSList *  plugins,
gboolean  need_power_up
 

timers_get_plugin: : List of plugins as returned by load_timer_plugins.

: TRUE if the plugin wanted should have the power up functionality.

Gets one plugin (and loads it if necessary) from the list. The one with the highest priority is returned. Returns: The highest priority plugin.

Definition at line 122 of file timer-loader.c.

References _module_load(), _TimerPlugin::can_power_up, and _TimerModule::plugin.

Referenced by init_queue().


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