diff options
| author | Sonny Sasaka <sonnysasaka@google.com> | 2022-03-05 00:43:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2022-03-05 00:43:56 +0000 |
| commit | 1f4244f36d66c8b66f6c11700a1ccb960252ecea (patch) | |
| tree | 2b544356dba88ed4d980b9b6a64ba8b34a81262e /system/gd/rust/linux/client/src/command_handler.rs | |
| parent | 7f0edf1fe9ced31323202445664090c6f3dead70 (diff) | |
| parent | 0f48b96b45651446bba6bcb3cd42a28108e6f369 (diff) | |
Merge "Floss: Add export_for_rpc to RPCProxy"
Diffstat (limited to 'system/gd/rust/linux/client/src/command_handler.rs')
| -rw-r--r-- | system/gd/rust/linux/client/src/command_handler.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/system/gd/rust/linux/client/src/command_handler.rs b/system/gd/rust/linux/client/src/command_handler.rs index 284654e444..99711c2edd 100644 --- a/system/gd/rust/linux/client/src/command_handler.rs +++ b/system/gd/rust/linux/client/src/command_handler.rs @@ -538,11 +538,16 @@ impl CommandHandler { enforce_arg_len(args, 1, "gatt <commands>", || match &args[0][0..] { "register-client" => { + let dbus_connection = self.context.lock().unwrap().dbus_connection.clone(); + let dbus_crossroads = self.context.lock().unwrap().dbus_crossroads.clone(); + self.context.lock().unwrap().gatt_dbus.as_mut().unwrap().register_client( String::from(GATT_CLIENT_APP_UUID), Box::new(BtGattCallback::new( String::from("/org/chromium/bluetooth/client/bluetooth_gatt_callback"), self.context.clone(), + dbus_connection, + dbus_crossroads, )), false, ); |
