diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-04-12 08:53:35 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-04-12 15:27:43 +0200 |
commit | a4fa4668d6b2437817c23e7283a89a7ac1ac7f21 (patch) | |
tree | 84f102a32b0ae52fe8f91109e848ca5444b436be /src/notifier.c | |
parent | 8d222f87ce097abf1591e54bf93bb3466920804c (diff) | |
download | connman-a4fa4668d6b2437817c23e7283a89a7ac1ac7f21.tar.gz connman-a4fa4668d6b2437817c23e7283a89a7ac1ac7f21.tar.bz2 connman-a4fa4668d6b2437817c23e7283a89a7ac1ac7f21.zip |
notify: Add service_add()/remove()
Diffstat (limited to 'src/notifier.c')
-rw-r--r-- | src/notifier.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/notifier.c b/src/notifier.c index 846546bc..27e53a1d 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -385,6 +385,30 @@ void __connman_notifier_default_changed(struct connman_service *service) } } +void __connman_notifier_service_add(struct connman_service *service) +{ + GSList *list; + + for (list = notifier_list; list; list = list->next) { + struct connman_notifier *notifier = list->data; + + if (notifier->service_add) + notifier->service_add(service); + } +} + +void __connman_notifier_service_remove(struct connman_service *service) +{ + GSList *list; + + for (list = notifier_list; list; list = list->next) { + struct connman_notifier *notifier = list->data; + + if (notifier->service_remove) + notifier->service_remove(service); + } +} + void __connman_notifier_proxy_changed(struct connman_service *service) { GSList *list; |