Merge "add to check return value and delete incorrectly code" into tizen_2.2
[platform/core/system/system-server.git] / sys_device_noti / sys_device_noti.h
1 /*\r
2  * Copyright (c) 2012 Samsung Electronics Co., Ltd.\r
3  *\r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *\r
8  * http://www.apache.org/licenses/LICENSE-2.0\r
9  *\r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 \r
17 \r
18 #ifndef __SYS_DEVICE_NOTI_H__\r
19 #define __SYS_DEVICE_NOTI_H__\r
20 \r
21 #ifndef _\r
22 #define _(str) gettext(str)\r
23 #endif\r
24 \r
25 #ifndef gettext_noop\r
26 #define gettext_noop(str) (str)\r
27 #endif\r
28 \r
29 #ifndef N_\r
30 #define N_(str) gettext_noop(str)\r
31 #endif\r
32 \r
33 typedef enum {\r
34         CB_NOTI_BATT_CHARGE,\r
35         CB_NOTI_BATT_LOW,\r
36         CB_NOTI_BATT_FULL,\r
37         CB_NOTI_MAX\r
38 } cb_noti_type;\r
39 \r
40 typedef enum {\r
41         CB_NOTI_OFF     = 0,\r
42         CB_NOTI_ON      = 1\r
43 } cb_noti_onoff_type;\r
44 \r
45 #endif /* __SYS_DEVICE__NOTI_H__ */\r