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

Commit e34c685e authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add link policy registration tACL_CB::clients am: 53b352c7

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1534066

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I6be8fc4a850396e6fdec001e5d4cd5b754aa4c76
parents c621d10c 53b352c7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -18,6 +18,7 @@

#include <cstdint>
#include <string>
#include <vector>

#include "stack/include/acl_api_types.h"
#include "stack/include/bt_types.h"
@@ -368,6 +369,10 @@ typedef struct {

  uint8_t pm_pend_id{0}; /* the id pf the module, which has a pending PM cmd */

  struct {
    std::vector<tBTM_PM_STATUS_CBACK*> clients;
  } link_policy;

  unsigned NumberOfActiveLinks() const {
    unsigned cnt = 0;
    for (int i = 0; i < MAX_L2CAP_LINKS; i++) {