00001 /** 00002 * This file is part of alarmd 00003 * 00004 * Contact Person: David Weinehall <david.weinehall@nokia.com> 00005 * 00006 * Copyright (C) 2006 Nokia Corporation 00007 * alarmd and libalarm are free software; you can redistribute them 00008 * and/or modify them under the terms of the GNU Lesser General Public 00009 * License version 2.1 as published by the Free Software Foundation. 00010 * 00011 * alarmd and libalarm are distributed in the hope that they will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with this software; if not, write to the Free 00018 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 00019 * 02110-1301 USA 00020 */ 00021 00022 #ifndef _INITIALIZE_H_ 00023 #define _INITIALIZE_H_ 00024 00025 #include "queue.h" 00026 #include "glib/gtypes.h" 00027 00028 /** 00029 * SECTION:initialize 00030 * @short_description: Miscellaneous initialization functions. 00031 * 00032 * Functions related to the alarmd startup. 00033 **/ 00034 00035 /** 00036 * init_queue: 00037 * @queue_file: The file the queue should be loaded from. 00038 * @next_time_file: The file the time of next alarm should be saved to. 00039 * @next_mode_file: The file the mode of next alarm should be saved to. 00040 * 00041 * Initializes alarm queue from the given file. 00042 * Returns: New AlarmdQueue filled with events. 00043 **/ 00044 AlarmdQueue *init_queue(const gchar *queue_file, const gchar *next_time_file, 00045 const gchar *next_mode_file); 00046 00047 /** 00048 * alarmd_type_init: 00049 * 00050 * Initializes all types used in alarmd. This is needed due to design. The 00051 * types need to be registered to Glib type system. 00052 **/ 00053 void alarmd_type_init(void); 00054 00055 #endif /* _INITIALIZE_H_ */