dac41494477d2dc196f5e54bc021333eec867bc3
[framework/system/system-server.git] / include / ss_data.h
1 /*
2  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __SS_DATA_H__
18 #define __SS_DATA_H__
19
20 #include <Ecore.h>
21 #include <unistd.h>
22
23 enum {
24         WIN_CREATE = 0,
25         WIN_SHOW,
26         WIN_DELETE,
27         WIN_MAX
28 };
29
30 #define FM_RADIO_APP            "FM_radio"
31 #define MULTIMEDIA_APP          "music"
32 #define BLUETOOTH_APP           "bluetooth"
33 #define VOICERECORDER_APP       "voicerecorder"
34
35 #define MMC_DEV                 "/dev/mmcblk"
36
37 #define VCONFKEY_INTERNAL_ADDED_USB_STORAGE     "memory/private/sysman/added_storage_uevent"
38 #define VCONFKEY_INTERNAL_REMOVED_USB_STORAGE   "memory/private/sysman/removed_storage_uevent"
39
40 #define PREDEF_CALL                     "call"
41 #define PREDEF_LOWMEM                   "lowmem"
42 #define PREDEF_LOWBAT                   "lowbat"
43 #define PREDEF_USBCON                   "usbcon"
44 #define PREDEF_POWEROFF                 "poweroff"
45 #define PREDEF_REBOOT                   "reboot"
46 #define PREDEF_PWROFF_POPUP             "pwroff-popup"
47 #define PREDEF_BACKGRD                  "backgrd"
48 #define PREDEF_FOREGRD                  "foregrd"
49 #define PREDEF_ACTIVE                   "active"
50 #define PREDEF_USB_STORAGE_ADD          "usbstorage-add"
51 #define PREDEF_USB_STORAGE_REMOVE       "usbstorage-remove"
52 #define PREDEF_INACTIVE                 "inactive"
53 #define PREDEF_HAPTIC                   "haptic"
54
55 #define OOMADJ_SET                      "oomadj_set"
56 #define LOW_MEM_ACT                     "low_mem_act"
57 #define OOM_MEM_ACT                     "oom_mem_act"
58
59 #define WARNING_LOW_BAT_ACT             "warning_low_bat_act"
60 #define CRITICAL_LOW_BAT_ACT            "critical_low_bat_act"
61 #define POWER_OFF_BAT_ACT               "power_off_bat_act"
62 #define CHARGE_BAT_ACT                  "charge_bat_act"
63 #define CHARGE_CHECK_ACT                        "charge_check_act"
64 #define CHARGE_ERROR_ACT                        "charge_error_act"
65
66 #define PREDEF_EARJACKCON               "earjack_predef_internal"
67
68 #define PREDEF_SET_DATETIME             "set_datetime"
69 #define PREDEF_SET_TIMEZONE             "set_timezone"
70
71 #define PREDEF_MOUNT_MMC                "mountmmc"
72 #define PREDEF_UNMOUNT_MMC              "unmountmmc"
73 #define PREDEF_FORMAT_MMC               "formatmmc"
74 #define PREDEF_CHECK_SMACK_MMC  "checksmackmmc"
75 #define PREDEF_CHECK_MMC                "checkmmc"
76 #define PREDEF_CHECK_MMC_PROC   "checkmmcproc"
77
78 #define PREDEF_SET_MAX_FREQUENCY        "set_max_frequency"     
79 #define PREDEF_SET_MIN_FREQUENCY        "set_min_frequency"     
80 #define PREDEF_RELEASE_MAX_FREQUENCY    "release_max_frequency" 
81 #define PREDEF_RELEASE_MIN_FREQUENCY    "release_min_frequency" 
82
83 #define PREDEF_FLIGHT_MODE              "flightmode"
84
85 #define PREDEF_DEVICE_CHANGED   "device_changed"
86 #define PREDEF_INTERNAL_POWEROFF        "internal_poweroff"
87
88 #define OOMADJ_SU                       (-17)
89 #define OOMADJ_INIT                     (-16)
90 #define OOMADJ_FOREGRD_LOCKED           (-15)
91 #define OOMADJ_FOREGRD_UNLOCKED         (-10)
92 #define OOMADJ_BACKGRD_LOCKED           (-5)
93 #define OOMADJ_BACKGRD_UNLOCKED         (1)
94
95 #define OOMADJ_APP_LIMIT                (-16)
96
97 #define MOVINAND_MOUNT_POINT            "/opt/media"
98 #define MMC_MOUNT_POINT                 "/opt/storage/sdcard"
99
100 struct ui_contention_info {
101
102 };
103
104 struct ss_main_data {
105         int sysnoti_fd;
106         int noti_fd;
107 };
108
109 #endif /* __SS_DATA_H__ */