• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_ATTACH_UI_PROXY_H
14 #define _ANDROID_PROTOCOL_ATTACH_UI_PROXY_H
15 
16 /*
17  * Contains the Core-side implementation of the "attach-ui" service that is
18  * used to establish connection between the UI and the Core.
19  */
20 
21 /* Creates and initializes descriptor for the Core-side of the "atatch-ui"
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 attachUiProxy_create(int fd);
29 
30 /* Destroys the descriptor for the Core-side of the "attach-ui" service. */
31 extern void attachUiProxy_destroy(void);
32 
33 #endif /* _ANDROID_PROTOCOL_ATTACH_UI_PROXY_H */
34