OSDN Git Service

Fix compile error due to interop_feature_t not being public
authorAndre Eisenbach <eisenbach@google.com>
Tue, 16 Feb 2016 00:38:36 +0000 (16:38 -0800)
committerAndre Eisenbach <eisenbach@google.com>
Tue, 16 Feb 2016 00:38:36 +0000 (16:38 -0800)
Change-Id: I3c6d2d28d98098aea1854ebd2726fdaac9cc14e9

device/include/interop.h
device/src/interop.c

index 883e245..24565df 100644 (file)
@@ -51,7 +51,9 @@ bool interop_match(const interop_feature_t feature, const bt_bdaddr_t *addr);
 // Add a dynamic interop database entry for a device matching the first |length| bytes
 // of |addr|, implementing the workaround identified by |feature|. |addr| may not be
 // null and |length| must be greater than 0 and less than sizeof(bt_bdaddr_t).
-void interop_database_add(const interop_feature_t feature, const bt_bdaddr_t *addr, size_t length);
+// As |interop_feature_t| is not exposed in the public API, feature must be a valid
+// integer representing an optoin in the enum.
+void interop_database_add(const uint16_t feature, const bt_bdaddr_t *addr, size_t length);
 
 // Clear the dynamic portion of the interoperability workaround database.
 void interop_database_clear(void);
index f476846..e8add56 100644 (file)
@@ -54,7 +54,7 @@ bool interop_match(const interop_feature_t feature, const bt_bdaddr_t *addr) {
   return false;
 }
 
-void interop_database_add(const interop_feature_t feature, const bt_bdaddr_t *addr, size_t length) {
+void interop_database_add(const uint16_t feature, const bt_bdaddr_t *addr, size_t length) {
   assert(addr);
   assert(length > 0);
   assert(length < sizeof(bt_bdaddr_t));