apply FSL(Flora Software License)
[framework/system/system-server.git] / include / ss_data.h
1 /*
2  * Copyright 2012  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.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.tizenopensource.org/license
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/Device/usbhost/added_storage_uevent"
38 #define VCONFKEY_INTERNAL_REMOVED_USB_STORAGE   "memory/Device/usbhost/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
54 #define OOMADJ_SET                      "oomadj_set"
55 #define LOW_MEM_ACT                     "low_mem_act"
56 #define OOM_MEM_ACT                     "oom_mem_act"
57
58 #define WARNING_LOW_BAT_ACT             "warning_low_bat_act"
59 #define CRITICAL_LOW_BAT_ACT            "critical_low_bat_act"
60 #define POWER_OFF_BAT_ACT               "power_off_bat_act"
61 #define CHARGE_BAT_ACT                  "charge_bat_act"
62 #define CHARGE_CHECK_ACT                        "charge_check_act"
63 #define CHARGE_ERROR_ACT                        "charge_error_act"
64
65 #define PREDEF_EARJACKCON               "earjack_predef_internal"
66
67 #define PREDEF_SET_DATETIME             "set_datetime"
68 #define PREDEF_SET_TIMEZONE             "set_timezone"
69
70 #define PREDEF_MOUNT_MMC                "mountmmc"
71 #define PREDEF_UNMOUNT_MMC              "unmountmmc"
72 #define PREDEF_FORMAT_MMC               "formatmmc"
73
74 #define PREDEF_SET_MAX_FREQUENCY        "set_max_frequency"     
75 #define PREDEF_SET_MIN_FREQUENCY        "set_min_frequency"     
76 #define PREDEF_RELEASE_MAX_FREQUENCY    "release_max_frequency" 
77 #define PREDEF_RELEASE_MIN_FREQUENCY    "release_min_frequency" 
78
79 #define OOMADJ_SU                       (-17)
80 #define OOMADJ_INIT                     (-16)
81 #define OOMADJ_FOREGRD_LOCKED           (-15)
82 #define OOMADJ_FOREGRD_UNLOCKED         (-10)
83 #define OOMADJ_BACKGRD_LOCKED           (-5)
84 #define OOMADJ_BACKGRD_UNLOCKED         (1)
85
86 #define OOMADJ_APP_LIMIT                (-16)
87
88 #define MOVINAND_MOUNT_POINT            "/opt/media"
89 #define MMC_MOUNT_POINT                 "/opt/storage/sdcard"
90
91 struct ui_contention_info {
92
93 };
94
95 struct ss_main_data {
96         int sysnoti_fd;
97         int noti_fd;
98 };
99
100 #endif /* __SS_DATA_H__ */