From 4c414820910ba8553cab7ff30188575f972a9896 Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Sat, 20 Aug 2011 08:55:37 -0700 Subject: 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 --- android/boot-properties.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'android/boot-properties.c') 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 ); -- cgit v1.1