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

Commit 10317eb2 authored by Chris Manton's avatar Chris Manton
Browse files

Add stack/include/avdt_api::peer_stream_endpoint_text

Towards loggable code

Bug: 163134718
Tag: #refactor
Test: acts -tc BleCocTest
Test: ble paired 2 phones
Change-Id: Id7a14929d04cc1f63b4482f8a9fa47e79711a045
parent a0fbeb0f
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -78,6 +78,16 @@
#define AVDT_TSEP_SRC 0     /* Source SEP */
#define AVDT_TSEP_SNK 1     /* Sink SEP */
#define AVDT_TSEP_INVALID 3 /* Invalid SEP */
inline const std::string peer_stream_endpoint_text(int type) {
  switch (type) {
    case AVDT_TSEP_SRC:
      return std::string("Source");
    case AVDT_TSEP_SNK:
      return std::string("Sink");
    default:
      return std::string("Invalid");
  }
}

/* initiator/acceptor role for adaption */
#define AVDT_INT 0 /* initiator */