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

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

Add tBTA_HH_DEV_DSCP_INFO::ToString am: 4d50cf28

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

Change-Id: I851ef49d319feac4076a3dd8c3ec49bb817d49d6
parents 92eee073 4d50cf28
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -18,7 +18,9 @@
#ifndef BTA_HH_API_H
#define BTA_HH_API_H

#include <base/strings/stringprintf.h>
#include <cstdint>
#include <string>

#include "bta/include/bta_api.h"
#include "stack/include/hiddefs.h"
@@ -220,6 +222,11 @@ typedef struct {

  uint8_t flag;
  tBTA_HH_DEV_DESCR descriptor;

  std::string ToString() const {
    return base::StringPrintf("%04x::%04x::%04x", vendor_id, product_id,
                              version);
  }
} tBTA_HH_DEV_DSCP_INFO;

/* callback event data for BTA_HH_OPEN_EVT */