[net-config] Add support of connman's ServicesChanged signal 07/56907/3
authorSaurav Babu <saurav.babu@samsung.com>
Wed, 13 Jan 2016 12:03:02 +0000 (17:33 +0530)
committerSaurav Babu <saurav.babu@samsung.com>
Thu, 14 Jan 2016 12:47:00 +0000 (18:17 +0530)
commit1271e68456599cf93009ad539ddfada9e66c6b10
tree8576e5a0309af6fd9a4b55bd7a23ec6248fe8720
parent6297fca7607585813fe5f02b56ea844094281bfd
[net-config] Add support of connman's ServicesChanged signal

Connman doesn't notify PropertyChanged signal if Property chage occurs
within 100ms, instead it notifies all  the Properties Changed in one
signal ServicesChanged. Due to this functionality in connman if ethernet
cable was plugged out and then plugged back in then ready state of
connman was not sent to net-config as sometimes connman state from
configuration to ready is changed in around 50ms.
This patch adds support of Connman's ServicesChanged signal in
net-config. net-config updates default connection info on receiving
ServicesChanged signal if there are no default connection available in
net-config at that time.

Change-Id: I8bfa03149c7db7ca1b8c0a7f3394b77b68b8b4fe
Signed-off-by: Saurav Babu <saurav.babu@samsung.com>
src/signal-handler.c