OSDN Git Service

Add topshim for bluetooth interface
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Sat, 10 Apr 2021 01:00:41 +0000 (18:00 -0700)
committerAbhishek Pandit-Subedi <abhishekpandit@google.com>
Mon, 3 May 2021 23:01:45 +0000 (23:01 +0000)
commit2178b42da53a2859901256f524ba3a8e19729504
treeecf043333b35614e2da20853b5cfeb3feb64a4ff
parentdb473fafeb8d20d8bee4223a701ac96c7e3f370a
Add topshim for bluetooth interface

In order for the Rust front-end to use the bluetooth interface, add
a topshim to give Rust code access to C++.

Also includes some debug code in adapter/main.rs which will eventually
be replaced with a proper dbus frontend.

Bug: 183208689
Tag: #floss
Test: atest --host bluetooth_test_gd
BYPASS_LONG_LINES_REASON: Bluetooth likes 120 char lines

Change-Id: I58caec1ffadcc1d8d7e92f7c9669fa4f4d5bb91f
13 files changed:
Cargo.toml
gd/BUILD.gn
gd/rust/linux/adapter/Cargo.toml
gd/rust/linux/adapter/src/main.rs
gd/rust/topshim/BUILD.gn [new file with mode: 0644]
gd/rust/topshim/Cargo.toml [new file with mode: 0644]
gd/rust/topshim/bindings/wrapper.h [new file with mode: 0644]
gd/rust/topshim/btif/btif_shim.cc [new file with mode: 0644]
gd/rust/topshim/btif/btif_shim.h [new file with mode: 0644]
gd/rust/topshim/src/btif.rs [new file with mode: 0644]
gd/rust/topshim/src/lib.rs [new file with mode: 0644]
gd/rust/topshim/src/topstack.rs [new file with mode: 0644]
main/shim/BUILD.gn