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

Commit 9c697179 authored by Hui Peng's avatar Hui Peng Committed by Gerrit Code Review
Browse files

Merge "Improve the implementation of GetAclInterface"

parents 0a71670e 323643d3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -30,8 +30,8 @@ namespace bluetooth {
namespace shim {
namespace legacy {

const acl_interface_t GetAclInterface() {
  acl_interface_t acl_interface{
const acl_interface_t& GetAclInterface() {
  static acl_interface_t acl_interface{
      .on_send_data_upwards = acl_rcv_acl_data,
      .on_packets_completed = acl_packets_completed,

+1 −1
Original line number Diff line number Diff line
@@ -150,7 +150,7 @@ typedef struct {
  acl_link_interface_t link;
} acl_interface_t;

const acl_interface_t GetAclInterface();
const acl_interface_t& GetAclInterface();

}  // namespace legacy
}  // namespace shim