1250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine/* Copyright (C) 2010 The Android Open Source Project 2250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** 3250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** This software is licensed under the terms of the GNU General Public 4250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** License version 2, as published by the Free Software Foundation, and 5250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** may be copied, distributed, and modified under those terms. 6250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** 7250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** This program is distributed in the hope that it will be useful, 8250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** but WITHOUT ANY WARRANTY; without even the implied warranty of 9250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine** GNU General Public License for more details. 11250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine*/ 12250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine 13250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine/* 14250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * Contains the Core-side of the "user events" service. Here we receive and 15250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * handle user events sent from the UI. 16250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine */ 17250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine 18250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine#ifndef _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H 19250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine#define _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H 20250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine 21250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine/* Creates and initializes descriptor for the Core-side of the "user-events" 22250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * service. Note that there can be only one instance of this service in the core. 23250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * Param: 24250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * fd - Socket descriptor for the service. 25250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * Return: 26250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine * 0 on success, or < 0 on failure. 27250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine */ 28250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkineextern int userEventsImpl_create(int fd); 29250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine 30250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine/* Destroys the descriptor for the Core-side of the "user-events" service. */ 31250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkineextern void userEventsImpl_destroy(void); 32250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine 33250b2e00af04f8407dea564e643dad4ef08b8a88Vladimir Chtchetkine#endif /* _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H */ 34