aboutsummaryrefslogtreecommitdiffstats
path: root/android/protocol/ui-commands.h
blob: 4e47b8302b80c2340fac5ffbc0daf7a0aaa77cb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 */