blob: 8627537b0609d1daed4dc1c895f0dd36a3759a19 [file] [log] [blame]
/* 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_PROXY_H
#define _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H
/*
* Contains the Core-side implementation of the "core-ui-control" service that is
* part of the UI control protocol. Here we send UI control commands to the UI.
*/
/* Creates and initializes descriptor for the Core-side of the "core-ui-control"
* service. Note that there can be only one instance of this service in the core.
* Param:
* fd - Socket descriptor for the proxy.
* Return:
* 0 on success, or < 0 on failure.
*/
extern int uiCmdProxy_create(int fd);
/* Destroys the descriptor for the Core-side of the "core-ui-control" service. */
extern void uiCmdProxy_destroy();
/* Changes the scale of the emulator window at runtime.
* Param:
* scale, is_dpi - New window scale parameters
* Return:
* 0 on success, or < 0 on failure.
*/
extern int uicmd_set_window_scale(double scale, int is_dpi);
#endif /* _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H */