185276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine/* Copyright (C) 2010 The Android Open Source Project 285276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** 385276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** This software is licensed under the terms of the GNU General Public 485276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** License version 2, as published by the Free Software Foundation, and 585276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** may be copied, distributed, and modified under those terms. 685276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** 785276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** This program is distributed in the hope that it will be useful, 885276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** but WITHOUT ANY WARRANTY; without even the implied warranty of 985276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 1085276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine** GNU General Public License for more details. 1185276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine*/ 1285276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine 1385276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine#ifndef _ANDROID_PROTOCOL_ATTACH_UI_PROXY_H 1485276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine#define _ANDROID_PROTOCOL_ATTACH_UI_PROXY_H 1585276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine 1685276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine/* 1785276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * Contains the Core-side implementation of the "attach-ui" service that is 1885276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * used to establish connection between the UI and the Core. 1985276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine */ 2085276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine 2185276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine/* Creates and initializes descriptor for the Core-side of the "atatch-ui" 2285276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * service. Note that there can be only one instance of this service in the core. 2385276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * Param: 2485276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * fd - Socket descriptor for the proxy. 2585276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * Return: 2685276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine * 0 on success, or < 0 on failure. 2785276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine */ 2885276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkineextern int attachUiProxy_create(int fd); 2985276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine 3085276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine/* Destroys the descriptor for the Core-side of the "attach-ui" service. */ 3185276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkineextern void attachUiProxy_destroy(void); 3285276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine 3385276806ec6ac969d7befa2496c1de59adaaac74Vladimir Chtchetkine#endif /* _ANDROID_PROTOCOL_ATTACH_UI_PROXY_H */ 34