[net-config] Fixed stopping of mdnsd when dns-sd application terminates abruptly 94/88294/1 submit/tizen/20160921.025733
authorSaurav Babu <saurav.babu@samsung.com>
Fri, 16 Sep 2016 06:12:45 +0000 (11:42 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Fri, 16 Sep 2016 06:12:45 +0000 (11:42 +0530)
commit1a82f2e86ead1b6c4b9a5ad27d71f331fde8958f
tree32da4660a72532c3634343e8eca39a6d41e0278a
parentc9e0c3621a753df505402f995655c54eea874286
[net-config] Fixed stopping of mdnsd when dns-sd application terminates abruptly

This patch accepts unique dbus name in handle_launch_mdns() and registers
NameOwnerChanged() signal for all the unique dbus name. Whenever
application terminates abruptly or deinitializes then dbus connection is
closed and net-config receives NameOwnerChanged signal corresponding to
that application and decreases ref count of mdnsd daemon. When ref count
drops to 0 then mdnsd is stopped.

Change-Id: I0d0d5c683ab6ae7b346bec43f70f031a8afee7cf
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
include/util.h
interfaces/netconfig-iface-network-state.xml
src/network-state.c
src/utils/util.c