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

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

Add bta/include/bta_api::preferred_role_text am: 5499a8df am: 3502f59f

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I083f904619cd4c6db120be8f42b919ff938318f9
parents 28b78304 3502f59f
Loading
Loading
Loading
Loading
+12 −0
Original line number Original line Diff line number Diff line
@@ -30,6 +30,7 @@


#include "bt_target.h"  // Must be first to define build configuration
#include "bt_target.h"  // Must be first to define build configuration


#include "osi/include/log.h"
#include "stack/include/bt_types.h"
#include "stack/include/bt_types.h"
#include "stack/include/btm_api_types.h"
#include "stack/include/btm_api_types.h"
#include "stack/include/btm_ble_api_types.h"
#include "stack/include/btm_ble_api_types.h"
@@ -127,6 +128,17 @@ typedef uint16_t tBTA_DM_CONN;


typedef uint8_t tBTA_PREF_ROLES;
typedef uint8_t tBTA_PREF_ROLES;


inline std::string preferred_role_text(const tBTA_PREF_ROLES& role) {
  switch (role) {
    CASE_RETURN_TEXT(BTA_ANY_ROLE);
    CASE_RETURN_TEXT(BTA_CENTRAL_ROLE_PREF);
    CASE_RETURN_TEXT(BTA_CENTRAL_ROLE_ONLY);
    CASE_RETURN_TEXT(BTA_PERIPHERAL_ROLE_ONLY);
    default:
      return std::string("UNKNOWN:%hhu", role);
  }
}

enum {
enum {


  BTA_DM_NO_SCATTERNET,      /* Device doesn't support scatternet, it might
  BTA_DM_NO_SCATTERNET,      /* Device doesn't support scatternet, it might