OSDN Git Service

android/adapter: Log not implemented properties
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 1 Nov 2013 13:52:43 +0000 (15:52 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Fri, 1 Nov 2013 14:40:35 +0000 (16:40 +0200)
This makes it easier to stop which functions the HAL is calling.

android/adapter.c

index 1760bec..0797aa0 100644 (file)
@@ -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;
        }