diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-01-26 11:19:19 -0800 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-01-28 09:14:01 -0800 |
commit | 777eb68eb60cac18f4b62e2e1b14a906875cbe7a (patch) | |
tree | 5850f03e01bb348ad7fc4e92dd08695416650c48 /android/protocol/ui-commands.h | |
parent | 316669d58104cb260e2ffa1848f24547b71af49c (diff) | |
download | external_qemu-777eb68eb60cac18f4b62e2e1b14a906875cbe7a.zip external_qemu-777eb68eb60cac18f4b62e2e1b14a906875cbe7a.tar.gz external_qemu-777eb68eb60cac18f4b62e2e1b14a906875cbe7a.tar.bz2 |
Refactored ui-core-control and core-ui-control protocols
Also cleaned the code up from obsolete ui-core-protocol.* and
core-ui-protocol.*
Change-Id: I194bec669d25b68a10c32b2be50bc9da50c52ebb
Diffstat (limited to 'android/protocol/ui-commands.h')
-rw-r--r-- | android/protocol/ui-commands.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/android/protocol/ui-commands.h b/android/protocol/ui-commands.h new file mode 100644 index 0000000..4e47b83 --- /dev/null +++ b/android/protocol/ui-commands.h @@ -0,0 +1,44 @@ +/* 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. +*/ + +#ifndef _ANDROID_PROTOCOL_UI_COMMANDS_H +#define _ANDROID_PROTOCOL_UI_COMMANDS_H + +/* + * Contains declarations related to the UI control commands sent by the Core and + * handled by the UI. + */ + +#include "android/protocol/ui-common.h" + +/* Sets window scale. */ +#define AUICMD_SET_WINDOWS_SCALE 1 + +/* Changes display brightness. */ +#define AUICMD_CHANGE_DISP_BRIGHTNESS 2 + +/* Formats AUICMD_SET_WINDOWS_SCALE UI control command parameters. + * Contains parameters required by android_emulator_set_window_scale routine. + */ +typedef struct UICmdSetWindowsScale { + double scale; + int is_dpi; +} UICmdSetWindowsScale; + +/* Formats AUICMD_CHANGE_DISP_BRIGHTNESS UI control command parameters. + */ +typedef struct UICmdChangeDispBrightness { + int brightness; + char light[0]; +} UICmdChangeDispBrightness; + +#endif /* _ANDROID_PROTOCOL_UI_COMMANDS_H */ |