Index: src/notifier.c |
diff --git a/src/notifier.c b/src/notifier.c |
index 8962b8ab856db7295d362cab0a7655f5544dede8..3c1529c966ba33dd9cf2114f455c0a1d3ef6a0e1 100644 |
--- a/src/notifier.c |
+++ b/src/notifier.c |
@@ -223,8 +223,6 @@ void __connman_notifier_offlinemode(connman_bool_t enabled) |
_DBG_NOTIFIER("enabled %d", enabled); |
- __connman_profile_changed(FALSE); |
- |
connman_dbus_send_property_changed_variant(CONNMAN_MANAGER_PATH, |
CONNMAN_MANAGER_INTERFACE, "OfflineMode", |
DBUS_TYPE_BOOLEAN, &enabled); |
@@ -305,6 +303,34 @@ void __connman_notifier_system_resume(void) |
} |
} |
+void __connman_notifier_profile_push(struct connman_profile *profile) |
+{ |
+ GSList *list; |
+ |
+ _DBG_NOTIFIER("profile %p", profile); |
+ |
+ for (list = notifier_list; list; list = list->next) { |
+ struct connman_notifier *notifier = list->data; |
+ |
+ if (notifier->profile_push != NULL) |
+ notifier->profile_push(profile); |
+ } |
+} |
+ |
+void __connman_notifier_profile_pop(struct connman_profile *profile) |
+{ |
+ GSList *list; |
+ |
+ _DBG_NOTIFIER("profile %p", profile); |
+ |
+ for (list = notifier_list; list; list = list->next) { |
+ struct connman_notifier *notifier = list->data; |
+ |
+ if (notifier->profile_pop != NULL) |
+ notifier->profile_pop(profile); |
+ } |
+} |
+ |
int __connman_notifier_init(void) |
{ |
connection = connman_dbus_get_connection(); |