Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6ad1b2c6 authored by Zach Johnson's avatar Zach Johnson
Browse files

rusty-gd: remove one level of indirection for hci facade proto

Bug: 171749953
Tag: #gd-refactor
Test: gd/cert/run --rhost
Change-Id: I11fe6201aa4ee76c1389b7d8a23360fa484512c7
parent 912ea4eb
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
//! HCI layer facade

pub mod protos;
mod facade_grpc;

use hci_layer_facade_proto::facade;
use facade_grpc::{HciLayerFacade, create_hci_layer_facade};
use facade::*;

use futures::sink::SinkExt;
use tokio::runtime::Runtime;
@@ -21,9 +25,12 @@ pub struct HciLayerFacadeService {
    pub rt: Arc<Runtime>,
}

use protos::empty::Empty;
use protos::facade::*;
use protos::hci_layer_facade_grpc::{HciLayerFacade, create_hci_layer_facade};
/// 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
+0 −11
Original line number Diff line number Diff line
//! Rust protobuf code for HCI layer facade service

/// Empty is needed by HciLayerFacadeService
/// 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;
}

pub use hci_layer_facade_proto::facade;
pub mod hci_layer_facade_grpc;