1777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine/* Copyright (C) 2010 The Android Open Source Project
2777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine**
3777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** This software is licensed under the terms of the GNU General Public
4777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** License version 2, as published by the Free Software Foundation, and
5777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** may be copied, distributed, and modified under those terms.
6777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine**
7777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** This program is distributed in the hope that it will be useful,
8777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** but WITHOUT ANY WARRANTY; without even the implied warranty of
9777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine** GNU General Public License for more details.
11777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine*/
12777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine
13777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine#ifndef _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H
14777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine#define _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H
15777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine
16777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine/*
17777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * Contains the Core-side implementation of the "core-ui-control" service that is
18777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * part of the UI control protocol. Here we send UI control commands to the UI.
19777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine */
20777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine
21777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine/* Creates and initializes descriptor for the Core-side of the "core-ui-control"
22777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * service. Note that there can be only one instance of this service in the core.
23777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * Param:
24777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine *  fd - Socket descriptor for the proxy.
25777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * Return:
26777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine *  0 on success, or < 0 on failure.
27777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine */
28777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkineextern int uiCmdProxy_create(int fd);
29777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine
30777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine/* Destroys the descriptor for the Core-side of the "core-ui-control" service. */
31777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkineextern void uiCmdProxy_destroy();
32777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine
33777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine/* Changes the scale of the emulator window at runtime.
34777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * Param:
35777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine *  scale, is_dpi - New window scale parameters
36777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine * Return:
37777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine *  0 on success, or < 0 on failure.
38777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine */
39777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkineextern int uicmd_set_window_scale(double scale, int is_dpi);
40777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine
41777eb68eb60cac18f4b62e2e1b14a906875cbe7aVladimir Chtchetkine#endif /* _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H */
42