1 //! Topshim is the main entry point from Rust code to C++.
2 //!
3 //! The Bluetooth stack is split into two parts: libbluetooth and the framework
4 //! above it. Libbluetooth is a combination of C/C++ and Rust that provides the
5 //! core Bluetooth functionality. It exposes top level apis in `bt_interface_t`
6 //! which can be used to drive the underlying implementation. Topshim provides
7 //! Rust apis to access this C/C++ interface and other top level interfaces in
8 //! order to use libbluetooth.
9 //!
10 //! The expected users of Topshim:
11 //!     * Floss (ChromeOS + Linux Bluetooth stack; uses D-Bus)
12 //!     * Topshim facade (used for testing)
13 
14 /// Bindgen bindings for accessing libbluetooth.
15 pub mod bindings;
16 
17 pub mod btif;
18 
19 /// Helper module for the topshim facade.
20 pub mod controller;
21 pub mod metrics;
22 pub mod profiles;
23 pub mod syslog;
24 pub mod sysprop;
25 pub mod topstack;
26 
27 mod utils;
28