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 /* 14 * Contains the UI-side of the "user events" service. Here we send user events 15 * to the Core. 16 */ 17 18 #ifndef _ANDROID_PROTOCOL_USER_EVENTS_PROXY_H 19 #define _ANDROID_PROTOCOL_USER_EVENTS_PROXY_H 20 21 /* Creates and initializes descriptor for the UI-side of the "user-events" 22 * service. Note that there can be only one instance of this service in the UI. 23 * Param: 24 * console_socket - Addresses Core's console. 25 * Return: 26 * 0 on success, or < 0 on failure. 27 */ 28 extern int userEventsProxy_create(SockAddress* console_socket); 29 30 /* Destroys the UI-side of the "user-events". */ 31 extern void userEventsProxy_destroy(void); 32 33 #endif /* _ANDROID_PROTOCOL_USER_EVENTS_PROXY_H */ 34