summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiraj Kumar Goit <niraj.g@samsung.com>2017-03-10 10:37:46 (GMT)
committerNiraj Kumar Goit <niraj.g@samsung.com>2017-03-10 10:37:46 (GMT)
commit97d06393f034262cb865fe5e30988edc0aebee3d (patch)
tree128e3b07e002b5d65b0fc5b16344c21ba40d0ca3
parent6613191eff5291c5992ee403557ef04caf9e650e (diff)
downloadconnman-97d06393f034262cb865fe5e30988edc0aebee3d.zip
connman-97d06393f034262cb865fe5e30988edc0aebee3d.tar.gz
connman-97d06393f034262cb865fe5e30988edc0aebee3d.tar.bz2
When scan is started send signal ScanStarted to application.refs/changes/46/118446/1
Change-Id: I034c3317a346140006e1d23d1389894c867012cc Signed-off-by: Niraj Kumar Goit <niraj.g@samsung.com>
-rwxr-xr-xsrc/technology.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/technology.c b/src/technology.c
index d5d4a40..969130c 100755
--- a/src/technology.c
+++ b/src/technology.c
@@ -1034,6 +1034,17 @@ static void reply_scan_pending(struct connman_technology *technology, int err)
void __connman_technology_scan_started(struct connman_device *device)
{
DBG("device %p", device);
+#if defined TIZEN_EXT
+ DBusMessage *signal;
+
+ signal = dbus_message_new_signal(CONNMAN_MANAGER_PATH,
+ CONNMAN_MANAGER_INTERFACE, "ScanStarted");
+ if (!signal)
+ return;
+
+ dbus_connection_send(connection, signal, NULL);
+ dbus_message_unref(signal);
+#endif
}
void __connman_technology_scan_stopped(struct connman_device *device,