blob: fa05e8e342e4e438b5f4bf8a5b2f3517095f4128 [file] [log] [blame]
Vladimir Chtchetkine777eb682011-01-26 11:19:19 -08001/* 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
16#include "sockets.h"
17#include "android/protocol/ui-commands.h"
18
19/*
20 * Contains the UI-side implementation of the "core-ui-control" service that is
21 * part of the UI control protocol. Here we handle UI control commands sent by
22 * the Core to the UI.
23 */
24
25/* Creates and initializes descriptor for the UI-side of the "core-ui-control"
26 * service. Note that there can be only one instance of this service in the UI.
27 * Param:
28 * console_socket - Addresses Core's console.
29 * Return:
30 * 0 on success, or < 0 on failure.
31 */
32extern int uiCmdImpl_create(SockAddress* console_socket);
33
Vladimir Chtchetkine85276802011-01-31 15:18:45 -080034/* Destroys UI-side of the "core-ui-control" service. */
35extern void uiCmdImpl_destroy();
36
Vladimir Chtchetkine777eb682011-01-26 11:19:19 -080037#endif /* _ANDROID_PROTOCOL_UI_COMMANDS_IMPL_H */