tizen 2.3 release
[apps/livebox/data-provider-master.git] / include / setting.h
1 /*
2  * Copyright 2013  Samsung Electronics Co., Ltd
3  *
4  * Licensed under the Flora License, Version 1.1 (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://floralicense.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 extern int setting_is_lcd_off(void);
18 extern int setting_init(void);
19 extern int setting_fini(void);
20
21 enum oom_event_type {
22     OOM_TYPE_NORMAL = 0x00,
23     OOM_TYPE_LOW = 0x01,
24     OOM_ERROR = 0xFF
25 };
26
27 extern int setting_add_oom_event_callback(int (*handler)(enum oom_event_type type, void *data), void *data);
28 extern int setting_del_oom_event_callback(int (*handler)(enum oom_event_type type, void *data), void *data);
29 extern enum oom_event_type setting_oom_level(void);
30
31 /* End of a file */