display: Move plugin-common files to core(src/display)
[platform/core/system/deviced.git] / src / display / display-signal.h
1 /*
2  * deviced
3  *
4  * Copyright (c) 2020 Samsung Electronics Co., Ltd. All rights reserved.
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 #ifndef __DISPLAY_SIGNAL_H__
20 #define __DISPLAY_SIGNAL_H__
21
22 #include <libsyscommon/libgdbus.h>
23
24 #include "util.h"
25 #include "shared/devices.h"
26 #include "shared/device-notifier.h"
27
28 enum signal_type {
29         SIGNAL_INVALID = 0,
30         SIGNAL_PRE,
31         SIGNAL_POST,
32         SIGNAL_MAX,
33 };
34
35 void broadcast_lcd_on(enum signal_type type, enum device_flags flags);
36 void broadcast_lcd_off(enum signal_type type, enum device_flags flags);
37 void broadcast_lcd_off_late(enum device_flags flags);
38 void set_process_active(bool flag, pid_t pid);
39
40 #endif /* __DISPLAY_SIGNAL_H__ */