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

Commit da9e1750 authored by Chris Manton's avatar Chris Manton
Browse files

Add bta/sys/bta_sys::BtaIdSysText()

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: act.py -tc BleCocTest

Change-Id: Ie2bde0d4b46e3721d8523fa9293ddbc97e4e1fd2
parent d2cba995
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -88,6 +88,15 @@ typedef void(tBTA_SYS_DISABLE)(void);

typedef uint8_t tBTA_SYS_ID;

inline std::string BtaIdSysText(tBTA_SYS_ID sys_id) {
  switch (sys_id) {
    case BTA_ID_HD:
      return std::string("Hid Device");
    default:
      return std::string("Unknown");
  }
}

#define BTA_SYS_CONN_OPEN 0x00
#define BTA_SYS_CONN_CLOSE 0x01
#define BTA_SYS_APP_OPEN 0x02