tizen 2.3 release
[framework/system/deviced.git] / src / led / conf.h
1 /*
2  * deviced
3  *
4  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
5  *
6  * Licensed under the Apache License, Version 2.0 (the License);
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *     http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */
18
19
20 #ifndef __CONF_H__
21 #define __CONF_H__
22
23 enum {
24         DURING_LCD_ON = 0x1,
25         DURING_LCD_OFF = 0x2,
26         DURING_BOTH = DURING_LCD_ON | DURING_LCD_OFF,
27 };
28
29 struct led_mode {
30         int mode;
31         int state;
32         struct led_data {
33                 int priority;
34                 int on;
35                 int off;
36                 unsigned int color;
37                 int wave;
38                 int lcd;
39                 int duration;
40         } data;
41 };
42
43 int get_led_data(void);
44 void release_led_data(void);
45 struct led_mode *find_led_data(int mode);
46 struct led_mode *get_valid_led_data(int lcd_state);
47 void print_all_data(void);
48
49 #endif