aboutsummaryrefslogtreecommitdiffstats
path: root/android/protocol/attach-ui-impl.h
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-02-01 07:18:23 -0800
committerAndroid Code Review <code-review@android.com>2011-02-01 07:18:23 -0800
commitf4d4ca164dea606cee27e1f68d4742a3c57b0954 (patch)
tree1d8d2bbc7d13742129a0faad57ea51931c2e0080 /android/protocol/attach-ui-impl.h
parenta7880fe783781bbedf998916791ebd70fb252b88 (diff)
parent85276806ec6ac969d7befa2496c1de59adaaac74 (diff)
downloadexternal_qemu-f4d4ca164dea606cee27e1f68d4742a3c57b0954.zip
external_qemu-f4d4ca164dea606cee27e1f68d4742a3c57b0954.tar.gz
external_qemu-f4d4ca164dea606cee27e1f68d4742a3c57b0954.tar.bz2
Merge "Refactor attach-UI service"
Diffstat (limited to 'android/protocol/attach-ui-impl.h')
-rw-r--r--android/protocol/attach-ui-impl.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/android/protocol/attach-ui-impl.h b/android/protocol/attach-ui-impl.h
new file mode 100644
index 0000000..3adc83a
--- /dev/null
+++ b/android/protocol/attach-ui-impl.h
@@ -0,0 +1,39 @@
+/* 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_ATTACH_UI_IMPL_H
+#define _ANDROID_PROTOCOL_ATTACH_UI_IMPL_H
+
+#include "sockets.h"
+
+/*
+ * Contains the UI-side implementation of the "attach-ui" service that is
+ * used to establish connection between the UI and the Core.
+ */
+
+/* Creates and initializes descriptor for the UI-side of the "atatch-ui"
+ * service. Note that there can be only one instance of this service in the core.
+ * Param:
+ * console_socket - Addresses Core's console.
+ * Return:
+ * 0 on success, or < 0 on failure.
+ */
+extern int attachUiImpl_create(SockAddress* console_socket);
+
+/* Destroys the descriptor for the UI-side of the "attach-ui" service. */
+extern void attachUiImpl_destroy(void);
+
+/* Gets Core's console socket address for the attached UI. */
+extern SockAddress* attachUiImpl_get_console_socket(void);
+
+#endif /* _ANDROID_PROTOCOL_ATTACH_UI_IMPL_H */
+