Add ability to add interop entries dynamically (1/2)

Add ability and interface for adding dynamic entries to the interop
workaround database.

Bug: 26548845
Change-Id: I17f8cbdf1e63c316aa52903be7ec526c9b1376bb
This commit is contained in:
Andre Eisenbach 2016-01-14 02:03:36 -08:00
parent 726a16532a
commit b245a8237a

View file

@ -577,6 +577,17 @@ typedef struct {
*/
int (*config_clear)(void);
/**
* Clear (reset) the dynamic portion of the device interoperability database.
*/
void (*interop_database_clear)(void);
/**
* Add a new device interoperability workaround for a remote device whose
* first |len| bytes of the its device address match |addr|.
* NOTE: |feature| has to match an item defined in interop_feature_t (interop.h).
*/
void (*interop_database_add)(uint16_t feature, const bt_bdaddr_t *addr, size_t len);
} bt_interface_t;
/** TODO: Need to add APIs for Service Discovery, Service authorization and