add display_set_timeout api to resolve build break issue
[platform/core/system/system-server.git] / src / deviced / dd-display.h
1 /*
2  * deviced
3  *
4  * Copyright (c) 2012 - 2013 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 __DD_DISPLAY_H__
21 #define __DD_DISPLAY_H__
22
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26
27 /**
28  * @file        dd-display.h
29  * @ingroup     DEVICED_LIBRARY
30  * @brief       This file provides for control of display
31  */
32
33 #define LCD_NORMAL      0x1   /**< NORMAL state */
34 #define LCD_DIM         0x2  /**< LCD dimming state */
35 #define LCD_OFF         0x4  /**< LCD off state */
36 #define SUSPEND         0x8  /**< Sleep state */
37 #define POWER_OFF       0x16  /**< Sleep state */
38 #define SETALL (LCD_DIM | LCD_OFF | LCD_NORMAL) /*< select all state - not supported yet */
39
40 /* parameters for display_lock_state() */
41 #define STAY_CUR_STATE  0x1
42 #define GOTO_STATE_NOW  0x2
43 #define HOLD_KEY_BLOCK  0x4
44 #define STANDBY_MODE    0x8
45
46 /* paramters for display_unlock_state() */
47 #define PM_SLEEP_MARGIN 0x0     /**< keep guard time for unlock */
48 #define PM_RESET_TIMER  0x1     /**< reset timer for unlock */
49 #define PM_KEEP_TIMER   0x2     /**< keep timer for unlock */
50
51 /* parameter for display_set_timeout */
52 #define CUSTOM_TIMEOUT  0x1
53
54 int display_get_count(void);
55 int display_get_max_brightness(void);
56 int display_get_min_brightness(void);
57 int display_get_brightness(void);
58 int display_set_brightness_with_setting(int val);
59 int display_set_brightness(int val);
60 int display_release_brightness(void);
61 int display_get_acl_status(void);
62 int display_set_acl_status(int val);
63 int display_set_frame_rate(int val);
64 int display_lock_state(unsigned int, unsigned int, unsigned int);
65 int display_unlock_state(unsigned int, unsigned int);
66 int display_change_state(unsigned int);
67
68 #ifdef __cplusplus
69 }
70 #endif
71 #endif