summaryrefslogtreecommitdiff
path: root/android/health.c
diff options
context:
space:
mode:
authorRavi kumar Veeramally <ravikumar.veeramally@linux.intel.com>2014-06-27 00:30:43 +0300
committerSzymon Janc <szymon.janc@tieto.com>2014-06-27 15:30:24 +0200
commit424b25f1640b6eeeac2e20fdea14de90345cb435 (patch)
tree94768fd4969403656ee7d241a86d464a6fc2dbdd /android/health.c
parent71677f06b0830c99c08347d1a7992a5e9ee454ef (diff)
downloadbluez-424b25f1640b6eeeac2e20fdea14de90345cb435.tar.gz
android/health: Implement mdl_closed_cb callback
Callback will be called when data channel is disconnected/closed. It does not mean that it is deleted. So only change connected status.
Diffstat (limited to 'android/health.c')
-rw-r--r--android/health.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/android/health.c b/android/health.c
index 30a616698..3afdf9bc5 100644
--- a/android/health.c
+++ b/android/health.c
@@ -1057,7 +1057,14 @@ static void mcap_mdl_connected_cb(struct mcap_mdl *mdl, void *data)
static void mcap_mdl_closed_cb(struct mcap_mdl *mdl, void *data)
{
- DBG("Not Implemeneted");
+ struct health_channel *channel = data;
+
+ info("MDL closed");
+
+ if (!channel)
+ return;
+
+ channel->mdl_conn = false;
}
static void notify_channel(void *data, void *user_data)