/* Copyright (C) 2010 The Android Open Source Project ** ** This software is licensed under the terms of the GNU General Public ** License version 2, as published by the Free Software Foundation, and ** may be copied, distributed, and modified under those terms. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. */ /* * This file contains declarations of helper routines that are used to * establish communication between UI and Core components of the emulator. * This is a temporary file where we will collect functional dependencies * between UI and Core in the process of separating UI and Core in the * emulator build. */ #ifndef QEMU_ANDROID_UI_CORE_PROTOCOL_H #define QEMU_ANDROID_UI_CORE_PROTOCOL_H /* Gets LCD density property from the core properties. */ int android_core_get_hw_lcd_density(void); /* This is temporary redeclaration for AndroidHwLightBrightnessFunc declared * in android/hw-control.h We redeclare it here in order to keep type * consistency between android_core_set_brightness_change_callback and * light_brightness field of AndroidHwControlFuncs structure. */ typedef void (*AndroidHwLightBrightnessCallback)( void* opaque, const char* light, int brightness ); /* Registers a UI callback to be called when brightness is changed by the core. */ void android_core_set_brightness_change_callback(AndroidHwLightBrightnessCallback callback, void* opaque); /* Returns base port assigned for the emulated system. */ int android_core_get_base_port(void); #endif // QEMU_ANDROID_UI_CORE_PROTOCOL_H