Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: src/notifier.c

Issue 6731067: flimflam: revise multi-profile support to pin objects to a profile (Closed) Base URL: ssh://gitrw.chromium.org:9222/flimflam.git@master
Patch Set: fix diff Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/manager.c ('k') | src/profile.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « src/manager.c ('k') | src/profile.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698