pub use protobuf::well_known_types::Empty;
}
-pub use bt_facade_common_proto::common;
-pub use bt_facade_rootservice_proto::rootservice;
+use bt_facade_common_proto::common;
+use bt_facade_rootservice_proto::rootservice;
+use rootservice::*;
+use rootservice_grpc::{create_root_facade, RootFacade};
use bt_hal::rootcanal_hal::{RootcanalConfig, RootcanalHal};
use bt_hci::facade::HciLayerFacadeService;
/// Bluetooth testing root facade service
#[derive(Clone)]
pub struct RootFacadeService {
- /// Tokio runtime
rt: Arc<Runtime>,
manager: FacadeServiceManager,
}
-use bt_facade_rootservice_proto::rootservice::*;
-use rootservice_grpc::create_root_facade;
-use rootservice_grpc::RootFacade;
-
impl RootFacadeService {
/// Create a new instance of the root facade service
pub fn create(
mod facade_grpc;
+/// Refer to the following on why we are doing this and for possible solutions:
+/// https://github.com/tikv/grpc-rs/issues/276
+pub mod empty {
+ pub use protobuf::well_known_types::Empty;
+}
+use empty::Empty;
+
use hci_layer_facade_proto::facade;
use facade_grpc::{HciLayerFacade, create_hci_layer_facade};
use facade::*;
/// HCI layer facade service
#[derive(Clone)]
pub struct HciLayerFacadeService {
- /// HCI interface
- pub hci_exports: HciExports,
- /// Tokio runtime
- pub rt: Arc<Runtime>,
+ hci_exports: HciExports,
+ rt: Arc<Runtime>,
}
-/// Refer to the following on why we are doing this and for possible solutions:
-/// https://github.com/tikv/grpc-rs/issues/276
-pub mod empty {
- pub use protobuf::well_known_types::Empty;
-}
-use empty::Empty;
-
impl HciLayerFacadeService {
/// Create a new instance of HCI layer facade service
pub fn create(hci_exports: HciExports, rt: Arc<Runtime>) -> grpcio::Service {