mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
bt_control_t: drop name field
This commit is contained in:
parent
289689b72b
commit
a9d55de2af
@ -180,10 +180,6 @@ int iphone_system_is_valid(void *config){
|
||||
return 1;
|
||||
}
|
||||
|
||||
static const char * iphone_name(void *config){
|
||||
return get_machine_name();
|
||||
}
|
||||
|
||||
// Get BD_ADDR from IORegistry
|
||||
static void ioregistry_get_info(void){
|
||||
mach_port_t mp;
|
||||
@ -760,7 +756,6 @@ bt_control_t bt_control_iphone = {
|
||||
.off = iphone_off,
|
||||
.sleep = iphone_sleep,
|
||||
.wake = iphone_wake,
|
||||
.name = iphone_name,
|
||||
.register_for_power_notifications = iphone_register_for_power_notifications
|
||||
};
|
||||
|
||||
|
@ -64,11 +64,6 @@ typedef struct {
|
||||
int (*off) (void *config); // <-- turn BT module off
|
||||
int (*sleep)(void *config); // <-- put BT module to sleep - only to be called after ON
|
||||
int (*wake) (void *config); // <-- wake BT module from sleep - only to be called after SLEEP
|
||||
|
||||
// check what it is needed for
|
||||
const char * (*name) (void *config); // <-- return hardware name
|
||||
|
||||
// stays
|
||||
void (*register_for_power_notifications)(void (*cb)(POWER_NOTIFICATION_t event));
|
||||
|
||||
// move to hci.h
|
||||
|
Loading…
x
Reference in New Issue
Block a user