summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2012-02-20 11:43:43 +0200
committerSamuel Ortiz <sameo@linux.intel.com>2012-02-24 23:29:48 +0100
commit1af75231e5cfaad061b9a2f58589b3fb6f37fd2e (patch)
tree8054178b6191c9046696292ecdd69f8a5a7c76f6 /src/manager.c
parent91721e7dd45811bd469055818237136816feab1c (diff)
downloadconnman-1af75231e5cfaad061b9a2f58589b3fb6f37fd2e.tar.gz
connman-1af75231e5cfaad061b9a2f58589b3fb6f37fd2e.tar.bz2
connman-1af75231e5cfaad061b9a2f58589b3fb6f37fd2e.zip
service: Implement ServicesAdded and ServicesRemoved signals
When services are added or removed, collect them into separate lists in order to send as many as possible in one go and with then removed ones sent first. Add a wait of 100ms to collect more services in one batch. When removing a service check whether it was also on the added list; if so, remove it from that list.
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index 1744231e..8136e8c1 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -421,6 +421,8 @@ static GDBusSignalTable manager_signals[] = {
{ "PropertyChanged", "sv" },
{ "TechnologyAdded", "oa{sv}" },
{ "TechnologyRemoved", "o" },
+ { "ServicesAdded", "a(oa{sv})" },
+ { "ServicesRemoved", "a{o}" },
{ },
};