Initialize Tizen 2.3
[framework/system/deviced.git] / src / led / xml.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 __XML_H__
21 #define __XML_H__
22
23 struct led_mode {
24         int mode;
25         int state;
26         struct led_data {
27                 int priority;
28                 int on;
29                 int off;
30                 unsigned int color;
31                 int wave;
32         } data;
33 };
34
35 int get_led_data(void);
36 void release_led_data(void);
37 struct led_mode *find_led_data(int mode);
38 struct led_mode *get_valid_led_data(void);
39 void print_all_data(void);
40
41 #endif