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 #ifndef _ANDROID_PROTOCOL_ATTACH_UI_IMPL_H
     14 #define _ANDROID_PROTOCOL_ATTACH_UI_IMPL_H
     15 
     16 #include "sockets.h"
     17 
     18 /*
     19  * Contains the UI-side implementation of the "attach-ui" service that is
     20  * used to establish connection between the UI and the Core.
     21  */
     22 
     23 /* Creates and initializes descriptor for the UI-side of the "atatch-ui"
     24  * service. Note that there can be only one instance of this service in the core.
     25  * Param:
     26  *  console_socket - Addresses Core's console.
     27  * Return:
     28  *  0 on success, or < 0 on failure.
     29  */
     30 extern int attachUiImpl_create(SockAddress* console_socket);
     31 
     32 /* Destroys the descriptor for the UI-side of the "attach-ui" service. */
     33 extern void attachUiImpl_destroy(void);
     34 
     35 /* Gets Core's console socket address for the attached UI. */
     36 extern SockAddress* attachUiImpl_get_console_socket(void);
     37 
     38 #endif /* _ANDROID_PROTOCOL_ATTACH_UI_IMPL_H */
     39 
     40