summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJiwoong Im <jiwoong.im@samsung.com>2015-11-17 18:19:31 +0900
committerJiwoong Im <jiwoong.im@samsung.com>2015-11-23 13:59:58 +0900
commit20e5320aa310ec7823bc600b4cad111c8772aebf (patch)
tree24337437c74eaa553d7da9ada0cfd5827756b9b0 /include
parent26f9ea6d4f4760fdfc3d39f6f1591a110088985e (diff)
downloadalarm-manager-20e5320aa310ec7823bc600b4cad111c8772aebf.tar.gz
alarm-manager-20e5320aa310ec7823bc600b4cad111c8772aebf.tar.bz2
alarm-manager-20e5320aa310ec7823bc600b4cad111c8772aebf.zip
Change-Id: I4eb7b1ead0d56e5aa93a9eb8a31e33c8452cbb94 Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/alarm-internal.h8
-rw-r--r--include/alarm.h2
2 files changed, 10 insertions, 0 deletions
diff --git a/include/alarm-internal.h b/include/alarm-internal.h
index eaa99d9..377c5f4 100644
--- a/include/alarm-internal.h
+++ b/include/alarm-internal.h
@@ -42,6 +42,7 @@
#define MAX_SERVICE_NAME_LEN 256
#define MAX_PKG_NAME_LEN MAX_SERVICE_NAME_LEN-8
#define MAX_PKG_ID_LEN 256
+#define MIN_INEXACT_INTERVAL 600
#define SYSTEM_TIME_CHANGED "setting_time_changed"
@@ -196,6 +197,11 @@ typedef struct {
alarm_id_t alarm_id;
} __expired_alarm_t;
+typedef struct _bg_category_cb_info_t {
+ char *appid;
+ bool has_bg;
+} bg_category_cb_info_t;
+
time_t _alarm_next_duetime(__alarm_info_t *alarm_info);
bool _alarm_schedule();
bool _clear_scheduled_alarm_list();
@@ -210,6 +216,8 @@ bool _alarm_set_timer(__alarm_server_context_t *alarm_context, int timer, time_t
bool _alarm_disable_timer(__alarm_server_context_t alarm_context);
bool _init_scheduled_alarm_list();
+time_t _get_periodic_alarm_standard_time(void);
+
#ifdef _DEBUG_MODE_
#define ALARM_MGR_LOG_PRINT(FMT, ARG...) do { printf("%5d", getpid()); printf
("%s() : "FMT"\n", __FUNCTION__, ##ARG); } while (false)
diff --git a/include/alarm.h b/include/alarm.h
index b4d4796..fe34d18 100644
--- a/include/alarm.h
+++ b/include/alarm.h
@@ -186,6 +186,7 @@ typedef enum {
* This enumeration has error codes of alarm
*/
typedef enum {
+ ERR_ALARM_NOT_PERMITTED_APP = -11,
ERR_ALARM_INVALID_PARAM = -10,
/**<Invalid parameter*/
ERR_ALARM_INVALID_ID, /**<Invalid id*/
@@ -226,6 +227,7 @@ typedef enum {
#define ALARM_TYPE_DEFAULT 0x0 /*< non volatile */
#define ALARM_TYPE_VOLATILE 0x02 /*< volatile */
#define ALARM_TYPE_NOLAUNCH 0x04 /*<without launch */
+#define ALARM_TYPE_INEXACT 0x08 /*<inexact alarm */
/**