Vladimir Chtchetkine | 777eb68 | 2011-01-26 11:19:19 -0800 | [diff] [blame] | 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_UI_COMMANDS_IMPL_H |
| 14 | #define _ANDROID_PROTOCOL_UI_COMMANDS_IMPL_H |
| 15 | |
David 'Digit' Turner | cc330d4 | 2013-12-14 23:26:42 +0100 | [diff] [blame] | 16 | #include "android/sockets.h" |
David 'Digit' Turner | b6c168b | 2011-02-02 21:39:10 +0100 | [diff] [blame] | 17 | #include "android/looper.h" |
Vladimir Chtchetkine | 777eb68 | 2011-01-26 11:19:19 -0800 | [diff] [blame] | 18 | #include "android/protocol/ui-commands.h" |
| 19 | |
| 20 | /* |
| 21 | * Contains the UI-side implementation of the "core-ui-control" service that is |
| 22 | * part of the UI control protocol. Here we handle UI control commands sent by |
| 23 | * the Core to the UI. |
| 24 | */ |
| 25 | |
| 26 | /* Creates and initializes descriptor for the UI-side of the "core-ui-control" |
| 27 | * service. Note that there can be only one instance of this service in the UI. |
| 28 | * Param: |
| 29 | * console_socket - Addresses Core's console. |
| 30 | * Return: |
| 31 | * 0 on success, or < 0 on failure. |
| 32 | */ |
David 'Digit' Turner | b6c168b | 2011-02-02 21:39:10 +0100 | [diff] [blame] | 33 | extern int uiCmdImpl_create(SockAddress* console_socket, Looper* looper); |
Vladimir Chtchetkine | 777eb68 | 2011-01-26 11:19:19 -0800 | [diff] [blame] | 34 | |
Vladimir Chtchetkine | 8527680 | 2011-01-31 15:18:45 -0800 | [diff] [blame] | 35 | /* Destroys UI-side of the "core-ui-control" service. */ |
| 36 | extern void uiCmdImpl_destroy(); |
| 37 | |
Vladimir Chtchetkine | 777eb68 | 2011-01-26 11:19:19 -0800 | [diff] [blame] | 38 | #endif /* _ANDROID_PROTOCOL_UI_COMMANDS_IMPL_H */ |