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

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

Add link policy registration tACL_CB::clients am: 53b352c7 am: e34c685e am: 45a569a3

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia8ad7b6f5306b9eef1b0f15fd6ac3f190dcb0b93
parents ffd56003 45a569a3
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++) {