Loading bluetooth/aidl/default/BluetoothHci.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,10 @@ class Hal { std::vector<uint8_t>(data, data + len)); } static void ClientDied(void* instance) { static_cast<Hal*>(instance)->ClientDied(); } private: int getFdFromDevPath() { int fd = open(mDevPath.c_str(), O_RDWR); Loading Loading @@ -322,6 +326,11 @@ class Hal { return true; } void ClientDied() { ALOGE("Bluetooth client has died"); Close(); } std::unique_ptr<struct hal_callbacks> mCallbacks; std::string mDevPath; int mFd{-1}; Loading Loading @@ -354,6 +363,7 @@ struct hal_interface hal_new() { .send_acl = &Hal::SendAcl, .send_sco = &Hal::SendSco, .send_iso = &Hal::SendIso, .client_died = &Hal::ClientDied, }; } } Loading
bluetooth/aidl/default/BluetoothHci.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -97,6 +97,10 @@ class Hal { std::vector<uint8_t>(data, data + len)); } static void ClientDied(void* instance) { static_cast<Hal*>(instance)->ClientDied(); } private: int getFdFromDevPath() { int fd = open(mDevPath.c_str(), O_RDWR); Loading Loading @@ -322,6 +326,11 @@ class Hal { return true; } void ClientDied() { ALOGE("Bluetooth client has died"); Close(); } std::unique_ptr<struct hal_callbacks> mCallbacks; std::string mDevPath; int mFd{-1}; Loading Loading @@ -354,6 +363,7 @@ struct hal_interface hal_new() { .send_acl = &Hal::SendAcl, .send_sco = &Hal::SendSco, .send_iso = &Hal::SendIso, .client_died = &Hal::ClientDied, }; } }