Replace calls to g_timeout_add_seconds() by the timeout_add_seconds()
wrapper which takes care of 0 delay.
Change-Id: I9b8cc6d6d3f625eb3a51720446b4aaf720ca65ec
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
#endif
#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
-static gboolean start_le_discovery_timeout(gpointer user_data)
+static bool start_le_discovery_timeout(gpointer user_data)
{
struct btd_adapter *adapter = user_data;
uint8_t new_type;
if (!(adapter->current_settings & MGMT_SETTING_POWERED))
return;
- adapter->le_discovery_idle_timeout = g_timeout_add_seconds(delay,
- start_le_discovery_timeout, adapter);
+ adapter->le_discovery_idle_timeout = timeout_add_seconds(delay,
+ start_le_discovery_timeout, adapter, NULL);
}
#endif