diff options
author | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-08-11 16:56:18 +0200 |
---|---|---|
committer | Daniel Wagner <daniel.wagner@bmw-carit.de> | 2011-08-11 17:40:52 +0200 |
commit | 7199d741c0f5de2cdf85af1f0e34ee6e6b0ca4bd (patch) | |
tree | d244622f4f1d0e00e314848665e3cb405122b4c5 /src | |
parent | e447b1f75cb7b644d4115164b057a811bd2743cd (diff) | |
download | connman-7199d741c0f5de2cdf85af1f0e34ee6e6b0ca4bd.tar.gz connman-7199d741c0f5de2cdf85af1f0e34ee6e6b0ca4bd.tar.bz2 connman-7199d741c0f5de2cdf85af1f0e34ee6e6b0ca4bd.zip |
notify: Add service name parameter to service_add()
Diffstat (limited to 'src')
-rw-r--r-- | src/connman.h | 3 | ||||
-rw-r--r-- | src/notifier.c | 5 | ||||
-rw-r--r-- | src/service.c | 4 | ||||
-rw-r--r-- | src/session.c | 3 |
4 files changed, 9 insertions, 6 deletions
diff --git a/src/connman.h b/src/connman.h index e4f610e3..2fc0e92c 100644 --- a/src/connman.h +++ b/src/connman.h @@ -600,7 +600,8 @@ void __connman_notifier_list_connected(DBusMessageIter *iter, void *user_data); void __connman_notifier_register(enum connman_service_type type); void __connman_notifier_unregister(enum connman_service_type type); -void __connman_notifier_service_add(struct connman_service *service); +void __connman_notifier_service_add(struct connman_service *service, + const char *name); void __connman_notifier_service_remove(struct connman_service *service); void __connman_notifier_enable(enum connman_service_type type); void __connman_notifier_disable(enum connman_service_type type); diff --git a/src/notifier.c b/src/notifier.c index 3d83e431..f6d9b00d 100644 --- a/src/notifier.c +++ b/src/notifier.c @@ -400,7 +400,8 @@ void __connman_notifier_default_changed(struct connman_service *service) } } -void __connman_notifier_service_add(struct connman_service *service) +void __connman_notifier_service_add(struct connman_service *service, + const char *name) { GSList *list; @@ -408,7 +409,7 @@ void __connman_notifier_service_add(struct connman_service *service) struct connman_notifier *notifier = list->data; if (notifier->service_add) - notifier->service_add(service); + notifier->service_add(service, name); } } diff --git a/src/service.c b/src/service.c index 0f263796..81c4f603 100644 --- a/src/service.c +++ b/src/service.c @@ -4941,7 +4941,7 @@ struct connman_service * __connman_service_create_from_network(struct connman_ne __connman_service_auto_connect(); } - __connman_notifier_service_add(service); + __connman_notifier_service_add(service, service->name); return service; } @@ -5072,7 +5072,7 @@ __connman_service_create_from_provider(struct connman_provider *provider) service_register(service); - __connman_notifier_service_add(service); + __connman_notifier_service_add(service, service->name); return service; } diff --git a/src/session.c b/src/session.c index eae623e3..99fdf3b7 100644 --- a/src/session.c +++ b/src/session.c @@ -1565,7 +1565,8 @@ void __connman_session_set_mode(connman_bool_t enable) __connman_service_disconnect_all(); } -static void service_add(struct connman_service *service) +static void service_add(struct connman_service *service, + const char *name) { GHashTableIter iter; GSequenceIter *iter_service_list; |