Loading system/gd/facade/facade_main.cc +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ void interrupt_handler(int signal_number) { } struct sigaction new_act = {.sa_handler = interrupt_handler}; bool crash_callback(const void* crash_context, size_t crash_context_size, void* context) { bool crash_callback(const void* crash_context, size_t crash_context_size, void* /* context */) { std::optional<pid_t> tid; if (crash_context_size >= sizeof(google_breakpad::ExceptionHandler::CrashContext)) { auto* ctx = static_cast<const google_breakpad::ExceptionHandler::CrashContext*>(crash_context); Loading system/gd/facade/grpc_root_server.cc +5 −5 Original line number Diff line number Diff line Loading @@ -51,9 +51,9 @@ class RootFacadeService : public ::blueberry::facade::RootFacade::Service { explicit RootFacadeService(int grpc_port) : grpc_port_(grpc_port) {} ::grpc::Status StartStack( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::StartStackRequest* request, ::blueberry::facade::StartStackResponse* response) override { ::blueberry::facade::StartStackResponse* /* response */) override { if (is_running_) { return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "stack is running"); } Loading Loading @@ -124,9 +124,9 @@ class RootFacadeService : public ::blueberry::facade::RootFacade::Service { } ::grpc::Status StopStack( ::grpc::ServerContext* context, const ::blueberry::facade::StopStackRequest* request, ::blueberry::facade::StopStackResponse* response) override { ::grpc::ServerContext* /* context */, const ::blueberry::facade::StopStackRequest* /* request */, ::blueberry::facade::StopStackResponse* /* response */) override { if (!is_running_) { return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "stack is not running"); } Loading system/gd/facade/read_only_property_server.cc +2 −2 Original line number Diff line number Diff line Loading @@ -25,8 +25,8 @@ class ReadOnlyPropertyService : public blueberry::facade::ReadOnlyProperty::Serv public: ReadOnlyPropertyService(hci::Controller* controller) : controller_(controller) {} ::grpc::Status ReadLocalAddress( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::grpc::ServerContext* /* context */, const ::google::protobuf::Empty* /* request */, ::blueberry::facade::BluetoothAddress* response) override { auto address = controller_->GetMacAddress().ToString(); response->set_address(address); Loading system/gd/grpc/grpc_module.cc +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ using ::grpc::ServerBuilder; namespace bluetooth { namespace grpc { void GrpcModule::ListDependencies(ModuleList* list) const {} void GrpcModule::ListDependencies(ModuleList* /* list */) const {} void GrpcModule::Start() { ASSERT(!started_); Loading system/gd/hal/facade.cc +10 −10 Original line number Diff line number Diff line Loading @@ -42,9 +42,9 @@ class HciHalFacadeService : public blueberry::facade::hal::HciHalFacade::Service } ::grpc::Status SendCommand( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::Data* request, ::google::protobuf::Empty* response) override { ::google::protobuf::Empty* /* response */) override { std::unique_lock<std::mutex> lock(mutex_); can_send_hci_command_ = false; std::string req_string = request->payload(); Loading @@ -56,18 +56,18 @@ class HciHalFacadeService : public blueberry::facade::hal::HciHalFacade::Service } ::grpc::Status SendAcl( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::Data* request, ::google::protobuf::Empty* response) override { ::google::protobuf::Empty* /* response */) override { std::string req_string = request->payload(); hal_->sendAclData(std::vector<uint8_t>(req_string.begin(), req_string.end())); return ::grpc::Status::OK; } ::grpc::Status SendSco( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::Data* request, ::google::protobuf::Empty* response) override { ::google::protobuf::Empty* /* response */) override { std::string req_string = request->payload(); hal_->sendScoData(std::vector<uint8_t>(req_string.begin(), req_string.end())); return ::grpc::Status::OK; Loading @@ -75,28 +75,28 @@ class HciHalFacadeService : public blueberry::facade::hal::HciHalFacade::Service ::grpc::Status StreamEvents( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_hci_events_.RunLoop(context, writer); }; ::grpc::Status StreamAcl( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_acl_events_.RunLoop(context, writer); }; ::grpc::Status StreamSco( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_sco_events_.RunLoop(context, writer); }; ::grpc::Status StreamIso( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_iso_events_.RunLoop(context, writer); }; Loading Loading
system/gd/facade/facade_main.cc +1 −1 Original line number Diff line number Diff line Loading @@ -70,7 +70,7 @@ void interrupt_handler(int signal_number) { } struct sigaction new_act = {.sa_handler = interrupt_handler}; bool crash_callback(const void* crash_context, size_t crash_context_size, void* context) { bool crash_callback(const void* crash_context, size_t crash_context_size, void* /* context */) { std::optional<pid_t> tid; if (crash_context_size >= sizeof(google_breakpad::ExceptionHandler::CrashContext)) { auto* ctx = static_cast<const google_breakpad::ExceptionHandler::CrashContext*>(crash_context); Loading
system/gd/facade/grpc_root_server.cc +5 −5 Original line number Diff line number Diff line Loading @@ -51,9 +51,9 @@ class RootFacadeService : public ::blueberry::facade::RootFacade::Service { explicit RootFacadeService(int grpc_port) : grpc_port_(grpc_port) {} ::grpc::Status StartStack( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::StartStackRequest* request, ::blueberry::facade::StartStackResponse* response) override { ::blueberry::facade::StartStackResponse* /* response */) override { if (is_running_) { return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "stack is running"); } Loading Loading @@ -124,9 +124,9 @@ class RootFacadeService : public ::blueberry::facade::RootFacade::Service { } ::grpc::Status StopStack( ::grpc::ServerContext* context, const ::blueberry::facade::StopStackRequest* request, ::blueberry::facade::StopStackResponse* response) override { ::grpc::ServerContext* /* context */, const ::blueberry::facade::StopStackRequest* /* request */, ::blueberry::facade::StopStackResponse* /* response */) override { if (!is_running_) { return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "stack is not running"); } Loading
system/gd/facade/read_only_property_server.cc +2 −2 Original line number Diff line number Diff line Loading @@ -25,8 +25,8 @@ class ReadOnlyPropertyService : public blueberry::facade::ReadOnlyProperty::Serv public: ReadOnlyPropertyService(hci::Controller* controller) : controller_(controller) {} ::grpc::Status ReadLocalAddress( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, ::grpc::ServerContext* /* context */, const ::google::protobuf::Empty* /* request */, ::blueberry::facade::BluetoothAddress* response) override { auto address = controller_->GetMacAddress().ToString(); response->set_address(address); Loading
system/gd/grpc/grpc_module.cc +1 −1 Original line number Diff line number Diff line Loading @@ -24,7 +24,7 @@ using ::grpc::ServerBuilder; namespace bluetooth { namespace grpc { void GrpcModule::ListDependencies(ModuleList* list) const {} void GrpcModule::ListDependencies(ModuleList* /* list */) const {} void GrpcModule::Start() { ASSERT(!started_); Loading
system/gd/hal/facade.cc +10 −10 Original line number Diff line number Diff line Loading @@ -42,9 +42,9 @@ class HciHalFacadeService : public blueberry::facade::hal::HciHalFacade::Service } ::grpc::Status SendCommand( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::Data* request, ::google::protobuf::Empty* response) override { ::google::protobuf::Empty* /* response */) override { std::unique_lock<std::mutex> lock(mutex_); can_send_hci_command_ = false; std::string req_string = request->payload(); Loading @@ -56,18 +56,18 @@ class HciHalFacadeService : public blueberry::facade::hal::HciHalFacade::Service } ::grpc::Status SendAcl( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::Data* request, ::google::protobuf::Empty* response) override { ::google::protobuf::Empty* /* response */) override { std::string req_string = request->payload(); hal_->sendAclData(std::vector<uint8_t>(req_string.begin(), req_string.end())); return ::grpc::Status::OK; } ::grpc::Status SendSco( ::grpc::ServerContext* context, ::grpc::ServerContext* /* context */, const ::blueberry::facade::Data* request, ::google::protobuf::Empty* response) override { ::google::protobuf::Empty* /* response */) override { std::string req_string = request->payload(); hal_->sendScoData(std::vector<uint8_t>(req_string.begin(), req_string.end())); return ::grpc::Status::OK; Loading @@ -75,28 +75,28 @@ class HciHalFacadeService : public blueberry::facade::hal::HciHalFacade::Service ::grpc::Status StreamEvents( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_hci_events_.RunLoop(context, writer); }; ::grpc::Status StreamAcl( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_acl_events_.RunLoop(context, writer); }; ::grpc::Status StreamSco( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_sco_events_.RunLoop(context, writer); }; ::grpc::Status StreamIso( ::grpc::ServerContext* context, const ::google::protobuf::Empty* request, const ::google::protobuf::Empty* /* request */, ::grpc::ServerWriter<::blueberry::facade::Data>* writer) override { return pending_iso_events_.RunLoop(context, writer); }; Loading