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/boot-properties.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/boot-properties.c')
-rw-r--r-- | android/boot-properties.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/android/boot-properties.c b/android/boot-properties.c index 1a86010..41b9b4d 100644 --- a/android/boot-properties.c +++ b/android/boot-properties.c @@ -319,11 +319,12 @@ boot_property_client_recv( void* opaque, static QemudClient* boot_property_service_connect( void* opaque, QemudService* serv, - int channel ) + int channel, + const char* client_param ) { QemudClient* client; - client = qemud_client_new( serv, channel, NULL, + client = qemud_client_new( serv, channel, client_param, NULL, boot_property_client_recv, NULL, NULL, NULL ); |