From: Luiz Augusto von Dentz Date: Fri, 1 Nov 2013 13:52:43 +0000 (+0200) Subject: android/adapter: Log not implemented properties X-Git-Tag: android-x86-4.4-r3~7020 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=bb7f3b6304cc9ec7becc6891ff55cc8f3f5e0e09;p=android-x86%2Fexternal-bluetooth-bluez.git android/adapter: Log not implemented properties This makes it easier to stop which functions the HAL is calling. --- diff --git a/android/adapter.c b/android/adapter.c index 1760becc7..0797aa075 100644 --- a/android/adapter.c +++ b/android/adapter.c @@ -1016,6 +1016,78 @@ static void send_adapter_address(void) g_free(ev); } +static bool get_name(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_uuids(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_class(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_type(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_service(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_scan_mode(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_devices(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + +static bool get_disc_timeout(void) +{ + DBG("Not implemented"); + + /* TODO: Add implementation */ + + return false; +} + static bool get_property(void *buf, uint16_t len) { struct hal_cmd_get_adapter_prop *cmd = buf; @@ -1025,13 +1097,21 @@ static bool get_property(void *buf, uint16_t len) send_adapter_address(); return true; case HAL_PROP_ADAPTER_NAME: + return get_name(); case HAL_PROP_ADAPTER_UUIDS: + return get_uuids(); case HAL_PROP_ADAPTER_CLASS: + return get_class(); case HAL_PROP_ADAPTER_TYPE: + return get_type(); case HAL_PROP_ADAPTER_SERVICE_REC: + return get_service(); case HAL_PROP_ADAPTER_SCAN_MODE: + return get_scan_mode(); case HAL_PROP_ADAPTER_BONDED_DEVICES: + return get_devices(); case HAL_PROP_ADAPTER_DISC_TIMEOUT: + return get_disc_timeout(); default: return false; }