• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* Copyright (C) 2010 The Android Open Source Project
2 **
3 ** This software is licensed under the terms of the GNU General Public
4 ** License version 2, as published by the Free Software Foundation, and
5 ** may be copied, distributed, and modified under those terms.
6 **
7 ** This program is distributed in the hope that it will be useful,
8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10 ** GNU General Public License for more details.
11 */
12 
13 /*
14  * This file contains declarations of helper routines that are used to
15  * establish communication between UI and Core components of the emulator.
16  * This is a temporary file where we will collect functional dependencies
17  * between UI and Core in the process of separating UI and Core in the
18  * emulator build.
19  */
20 
21 #ifndef QEMU_ANDROID_UI_CORE_PROTOCOL_H
22 #define QEMU_ANDROID_UI_CORE_PROTOCOL_H
23 
24 /* Gets LCD density property from the core properties. */
25 int android_core_get_hw_lcd_density(void);
26 
27 /* This is temporary redeclaration for AndroidHwLightBrightnessFunc declared
28  * in android/hw-control.h We redeclare it here in order to keep type
29  * consistency between android_core_set_brightness_change_callback and
30  * light_brightness field of AndroidHwControlFuncs structure.
31  */
32 typedef void  (*AndroidHwLightBrightnessCallback)( void*       opaque,
33                                                const char* light,
34                                                int         brightness );
35 
36 /* Registers a UI callback to be called when brightness is changed by the core. */
37 void android_core_set_brightness_change_callback(AndroidHwLightBrightnessCallback callback,
38                                                  void* opaque);
39 
40 /* Returns base port assigned for the emulated system. */
41 int android_core_get_base_port(void);
42 
43 #endif  // QEMU_ANDROID_UI_CORE_PROTOCOL_H
44