Home | History | Annotate | Download | only in protocol
      1 /* Copyright (C) 2010 The Android Open Source Project
      2 **
      3 ** This software is licensed under the terms of the GNU General Public
      4 ** License version 2, as published by the Free Software Foundation, and
      5 ** may be copied, distributed, and modified under those terms.
      6 **
      7 ** This program is distributed in the hope that it will be useful,
      8 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
      9 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     10 ** GNU General Public License for more details.
     11 */
     12 
     13 #ifndef _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H
     14 #define _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H
     15 
     16 /*
     17  * Contains the Core-side implementation of the "core-ui-control" service that is
     18  * part of the UI control protocol. Here we send UI control commands to the UI.
     19  */
     20 
     21 /* Creates and initializes descriptor for the Core-side of the "core-ui-control"
     22  * service. Note that there can be only one instance of this service in the core.
     23  * Param:
     24  *  fd - Socket descriptor for the proxy.
     25  * Return:
     26  *  0 on success, or < 0 on failure.
     27  */
     28 extern int uiCmdProxy_create(int fd);
     29 
     30 /* Destroys the descriptor for the Core-side of the "core-ui-control" service. */
     31 extern void uiCmdProxy_destroy();
     32 
     33 /* Changes the scale of the emulator window at runtime.
     34  * Param:
     35  *  scale, is_dpi - New window scale parameters
     36  * Return:
     37  *  0 on success, or < 0 on failure.
     38  */
     39 extern int uicmd_set_window_scale(double scale, int is_dpi);
     40 
     41 #endif /* _ANDROID_PROTOCOL_UI_COMMANDS_PROXY_H */
     42