diff options
author | Guillaume Zajac <guillaume.zajac@linux.intel.com> | 2011-12-08 12:00:28 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-12-08 06:17:45 -0600 |
commit | aee17dcfe6272bd2b76910dce981d34ef28e13bd (patch) | |
tree | 5ddae0780fe3555e0d324d683b3b6102ac4d210b /src/cdma-connman.c | |
parent | 95ac7735cbc6cf9e39fe0250d153cfd0ca4cbf2d (diff) | |
download | ofono-aee17dcfe6272bd2b76910dce981d34ef28e13bd.tar.bz2 |
cdma-connman: Add dormant_notify implementation
Diffstat (limited to 'src/cdma-connman.c')
-rw-r--r-- | src/cdma-connman.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/cdma-connman.c b/src/cdma-connman.c index 87cefd60..51143f76 100644 --- a/src/cdma-connman.c +++ b/src/cdma-connman.c @@ -572,6 +572,23 @@ void ofono_cdma_connman_deactivated(struct ofono_cdma_connman *cm) "Powered", DBUS_TYPE_BOOLEAN, &value); } +void ofono_cdma_connman_dormant_notify(struct ofono_cdma_connman *cm, + ofono_bool_t dormant) +{ + DBusConnection *conn = ofono_dbus_get_connection(); + const char *path; + + if (cm == NULL) + return; + + cm->dormant = dormant; + path = __ofono_atom_get_path(cm->atom); + + ofono_dbus_signal_property_changed(conn, path, + OFONO_CDMA_CONNECTION_MANAGER_INTERFACE, + "Dormant", DBUS_TYPE_BOOLEAN, &dormant); +} + static void cdma_connman_unregister(struct ofono_atom *atom) { DBusConnection *conn = ofono_dbus_get_connection(); |