diff options
Diffstat (limited to 'android/protocol/core-commands-impl.h')
-rw-r--r-- | android/protocol/core-commands-impl.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/android/protocol/core-commands-impl.h b/android/protocol/core-commands-impl.h new file mode 100644 index 0000000..8690613 --- /dev/null +++ b/android/protocol/core-commands-impl.h @@ -0,0 +1,34 @@ +/* Copyright (C) 2010 The Android Open Source Project +** +** This software is licensed under the terms of the GNU General Public +** License version 2, as published by the Free Software Foundation, and +** may be copied, distributed, and modified under those terms. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +*/ + +#ifndef _ANDROID_PROTOCOL_CORE_COMMANDS_IMPL_H +#define _ANDROID_PROTOCOL_CORE_COMMANDS_IMPL_H + +/* + * Contains the Core-side implementation of the "ui-core-control" service that is + * part of the UI control protocol. Here we handle UI control commands sent by + * the UI to the Core. + */ + +/* Creates and initializes descriptor for the Core-side of the "ui-core-control" + * service. Note that there can be only one instance of this service in the core. + * Param: + * fd - Socket descriptor for the service. + * Return: + * 0 on success, or < 0 on failure. + */ +extern int coreCmdImpl_create(int fd); + +/* Destroys the descriptor for the Core-side of the "ui-core-control" service. */ +extern void coreCmdImpl_destroy(); + +#endif /* _ANDROID_PROTOCOL_CORE_COMMANDS_IMPL_H */ |