00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
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
00045 #define ALP_ALARM_CMD_SET 1
00046 #define ALP_ALARM_CMD_CANCEL 2
00047 #define ALP_ALARM_CMD_GET 3
00048
00049
00050
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
00064
00065
00066
00067
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