summaryrefslogtreecommitdiffstats
path: root/qemu.h
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:47 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-18 17:39:47 -0700
commite18b7b21c2fe0788e6cf1a1a055a25c2e5bc2dd8 (patch)
treece03b1f9eb82ccd79bec81c1a0bb035b38df70f5 /qemu.h
parentec19f1e4f0f46544b0901f642cc4cbe1e42010d4 (diff)
downloadhardware_libhardware_legacy-e18b7b21c2fe0788e6cf1a1a055a25c2e5bc2dd8.zip
hardware_libhardware_legacy-e18b7b21c2fe0788e6cf1a1a055a25c2e5bc2dd8.tar.gz
hardware_libhardware_legacy-e18b7b21c2fe0788e6cf1a1a055a25c2e5bc2dd8.tar.bz2
auto import from //branches/cupcake_rel/...@140373
Diffstat (limited to 'qemu.h')
-rw-r--r--qemu.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/qemu.h b/qemu.h
index 5fcbfa7..f0bacbc 100644
--- a/qemu.h
+++ b/qemu.h
@@ -35,7 +35,9 @@ typedef struct {
char is_inited;
char is_available;
char is_qemud;
+ char is_qemud_old;
char is_tty;
+ int fd;
char device[32];
} QemuChannel;
@@ -65,15 +67,15 @@ extern int qemu_command_format( char* buffer,
const char* format,
... );
-/* directly sends a command through the 'control' channel.
+/* directly sends a command through the 'hw-control' channel.
* this will open the channel, send the formatted command, then
* close the channel automatically.
* returns 0 on success, or -1 on error.
*/
extern int qemu_control_command( const char* fmt, ... );
-/* sends a question to the control channel, then receive an answer in
- * a user-allocated buffer. returns the lenght of the answer, or -1
+/* sends a question to the hw-control channel, then receive an answer in
+ * a user-allocated buffer. returns the length of the answer, or -1
* in case of error.
*
* 'question' *must* have been formatted through qemu_command_format