diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-08-20 08:55:37 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-08-25 14:54:56 -0700 |
commit | 4c414820910ba8553cab7ff30188575f972a9896 (patch) | |
tree | 2c4fac98fc43da2f21dc8f7c534fab5bca410085 /android/hw-control.c | |
parent | 4ffadf474d07bc3a5f1c9f61a69eef420bcb18a0 (diff) | |
download | external_qemu-4c414820910ba8553cab7ff30188575f972a9896.zip external_qemu-4c414820910ba8553cab7ff30188575f972a9896.tar.gz external_qemu-4c414820910ba8553cab7ff30188575f972a9896.tar.bz2 |
Enable qemud clients to pass connection parameters to emulator.
This is useful for qemud pipe clients to be able to pass parameters to the
emulator service when connecting. In particular, this would be extremely
useful for camera emulation clients, which can pass name of the camera
device, and other parameters that may be required to connect to the
camera. Parameters are passed when opening the qemud pipe in form:
/dev/qemu_pipe/camera:/dev/video0
I.e. parameters follow the service name, separated from it by ':'
Change-Id: I67f0ef0ff27008e2b52652e58d72d5216b244646
Diffstat (limited to 'android/hw-control.c')
-rw-r--r-- | android/hw-control.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/android/hw-control.c b/android/hw-control.c index 8164bc0..e010c6f 100644 --- a/android/hw-control.c +++ b/android/hw-control.c @@ -62,11 +62,14 @@ _hw_control_qemud_client_recv( void* opaque, /* called when a qemud client connects to the service */ static QemudClient* -_hw_control_qemud_connect( void* opaque, QemudService* service, int channel ) +_hw_control_qemud_connect( void* opaque, + QemudService* service, + int channel, + const char* client_param ) { QemudClient* client; - client = qemud_client_new( service, channel, + client = qemud_client_new( service, channel, client_param, opaque, _hw_control_qemud_client_recv, NULL, NULL, NULL ); |