From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3862662487721556593==" MIME-Version: 1.0 From: Guillaume Zajac Subject: Re: [PATCH_v2 5/6] cdma-connman: Add public api definition Date: Fri, 04 Nov 2011 15:57:57 +0100 Message-ID: <4EB3FD75.3070201@linux.intel.com> In-Reply-To: <4EB16291.6080609@gmail.com> List-Id: To: ofono@ofono.org --===============3862662487721556593== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Denis, On 02/11/2011 16:32, Denis Kenzior wrote: > Hi Guillaume, > > On 11/02/2011 05:38 AM, Guillaume Zajac wrote: >> --- >> src/cdma-connman.c | 18 ++++++++++++++++++ >> 1 files changed, 18 insertions(+), 0 deletions(-) >> >> diff --git a/src/cdma-connman.c b/src/cdma-connman.c >> index 42dcca2..f88353a 100644 >> --- a/src/cdma-connman.c >> +++ b/src/cdma-connman.c >> @@ -562,6 +562,24 @@ void ofono_cdma_connman_driver_unregister( >> g_drivers =3D g_slist_remove(g_drivers, (void *) d); >> } >> >> +void ofono_cdma_connman_deactivated(struct ofono_cdma_connman *cm) >> +{ >> + DBusConnection *conn =3D ofono_dbus_get_connection(); >> + const char *path; >> + dbus_bool_t value; >> + >> + if (cm =3D=3D NULL) >> + return; >> + >> + cdma_connman_settings_reset(cm); >> + value =3D FALSE; >> + path =3D __ofono_atom_get_path(cm->atom); > Don't you also want to reset cm->powered accordingly? Yes, I forgot it. >> + >> + ofono_dbus_signal_property_changed(conn, path, >> + OFONO_CDMA_CONNECTION_MANAGER_INTERFACE, >> + "Powered", DBUS_TYPE_BOOLEAN,&value); >> +} >> + >> static void cdma_connman_unregister(struct ofono_atom *atom) >> { >> DBusConnection *conn =3D ofono_dbus_get_connection(); > Regards, > -Denis > Kind regards, Guillaume --===============3862662487721556593==--