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_CORE_COMMANDS_IMPL_H 14#define _ANDROID_PROTOCOL_CORE_COMMANDS_IMPL_H 15 16/* 17 * Contains the Core-side implementation of the "ui-core-control" service that is 18 * part of the UI control protocol. Here we handle UI control commands sent by 19 * the UI to the Core. 20 */ 21 22/* Creates and initializes descriptor for the Core-side of the "ui-core-control" 23 * service. Note that there can be only one instance of this service in the core. 24 * Param: 25 * fd - Socket descriptor for the service. 26 * Return: 27 * 0 on success, or < 0 on failure. 28 */ 29extern int coreCmdImpl_create(int fd); 30 31/* Destroys the descriptor for the Core-side of the "ui-core-control" service. */ 32extern void coreCmdImpl_destroy(); 33 34#endif /* _ANDROID_PROTOCOL_CORE_COMMANDS_IMPL_H */ 35