Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | Directories | File List | Namespace Members | Data Fields | Globals

alarmmgr_prv.h

Go to the documentation of this file.
00001 /********************************************************************
00002 
00003 Copyright 2006, ACCESS Systems Americas, Inc. All rights reserved.
00004 
00005 The contents of this file are subject to the Mozilla Public License Version
00006 1.1 (the "License"); you may not use this file except in compliance with
00007 the License. You may obtain a copy of the License at
00008 http://www.mozilla.org/MPL/
00009 
00010 Software distributed under the License is distributed on an "AS IS" basis,
00011 WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00012 for the specific language governing rights and limitations under the
00013 License.
00014 
00015 The Original Code is the entire contents of this file.
00016 
00017 The Initial Developer of the Original Code is ACCESS Systems Americas, Inc.
00018 
00019 Portions created by ACCESS Systems Americas, Inc. are Copyright © 2006. All
00020 Rights Reserved.
00021 
00022 Contributor(s): none.
00023 
00024 ********************************************************************/
00032 #ifndef __ALP_PRV_ALARMMGR_PRV_H__
00033 #define __ALP_PRV_ALARMMGR_PRV_H__
00034 
00035 #include <glib.h>
00036 
00037 #include <hiker/types.h>
00038 #include <hiker/traces.h>
00039 
00040 #include <hiker/alarmmgr.h>
00041 
00042 #define ALP_ALARM_MGR_SERVER_CHANNEL "alp_alarm_server"
00043 
00044 /* cmd parameter */
00045 #define ALP_ALARM_CMD_SET    1
00046 #define ALP_ALARM_CMD_CANCEL 2
00047 #define ALP_ALARM_CMD_GET    3
00048 
00049 
00050 /* debug trace */
00051 #define ALP_ALARM_TRACE   ALP_TRACE_DEFINE(ALP_CLASS_ALARM, 0x000000)
00052 
00053 #define ALP_ATL(str, ...) ALP_TM(TL(ALP_ALARM_TRACE, "%s(): " str, __PRETTY_FUNCTION__, ## __VA_ARGS__))
00054 #define ALP_AT(str, ...)  ALP_TM(T(ALP_ALARM_TRACE, "%s(): " str, __PRETTY_FUNCTION__, ## __VA_ARGS__))
00055 #define ALP_AB(str, ...)  ALP_TM(B(ALP_ALARM_TRACE, str, ## __VA_ARGS__))
00056 
00057 #ifdef __cplusplus
00058 extern "C" {
00059 #endif
00060 
00061 
00062 /*******************************************************************
00063  * Alarm Manager alarm table structures
00064  *
00065  *******************************************************************/
00066 
00067 /* An entry in the alarm table */
00068 typedef struct _AlpAlmEntryType AlpAlmEntryType;
00069 struct _AlpAlmEntryType {
00070         guint16         cmd;
00071         guint16         size;
00072         guint32         ref;
00073         guint32         alarmSeconds;
00074         gchar           appID[ALP_ALARM_MAX_APPID_SIZE+1];
00075         guint16         triggered:1; 
00076         guint16         notified:1;      
00077 };
00078 
00079 typedef AlpAlmEntryType*                AlpAlmEntryTypePtr;
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 #endif /* __ALP_PRV_ALARMMGR_PRV_H__ */

Generated on Sat Dec 16 20:29:47 2006 for hiker-0.9 by  doxygen 1.4.4