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 /*
     14  * Contains the Core-side of the "user events" service. Here we receive and
     15  * handle user events sent from the UI.
     16  */
     17 
     18 #ifndef _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H
     19 #define _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H
     20 
     21 /* Creates and initializes descriptor for the Core-side of the "user-events"
     22  * service. Note that there can be only one instance of this service in the core.
     23  * Param:
     24  *  fd - Socket descriptor for the service.
     25  * Return:
     26  *  0 on success, or < 0 on failure.
     27  */
     28 extern int userEventsImpl_create(int fd);
     29 
     30 /* Destroys the descriptor for the Core-side of the "user-events" service. */
     31 extern void userEventsImpl_destroy(void);
     32 
     33 #endif /* _ANDROID_PROTOCOL_USER_EVENTS_IMPL_H */
     34