From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH_v2 2/4] cdma-connman: add username and password, pass them to drivers
Date: Thu, 21 Jul 2011 04:54:23 -0500 [thread overview]
Message-ID: <4E27F74F.3020703@gmail.com> (raw)
In-Reply-To: <1311223244-26904-3-git-send-email-guillaume.zajac@linux.intel.com>
[-- Attachment #1: Type: text/plain, Size: 1630 bytes --]
Hi Guillaume,
On 07/20/2011 11:40 PM, Guillaume Zajac wrote:
> ---
> src/cdma-connman.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++-
> 1 files changed, 47 insertions(+), 1 deletions(-)
>
I applied this patch, with a follow on commit afterwards:
> @@ -371,6 +373,36 @@ static DBusMessage *cdma_connman_get_properties(DBusConnection *conn,
> return reply;
> }
>
> +static DBusMessage *cdma_connman_set_username(struct ofono_cdma_connman *cm,
> + DBusConnection *conn, DBusMessage *msg,
> + const char *username)
> +{
> + if (strlen(username) > OFONO_CDMA_CONNMAN_MAX_USERNAME_LENGTH)
> + return __ofono_error_invalid_format(msg);
> +
> + if (g_str_equal(username, cm->username))
> + return dbus_message_new_method_return(msg);
> +
> + strcpy(cm->username, username);
> +
> + return dbus_message_new_method_return(msg);
When you're changing a property, you really must signal PropertyChanged
as well.
> +}
> +
> +static DBusMessage *cdma_connman_set_password(struct ofono_cdma_connman *cm,
> + DBusConnection *conn, DBusMessage *msg,
> + const char *password)
> +{
> + if (strlen(password) > OFONO_CDMA_CONNMAN_MAX_PASSWORD_LENGTH)
> + return __ofono_error_invalid_format(msg);
> +
> + if (g_str_equal(password, cm->password))
> + return dbus_message_new_method_return(msg);
> +
> + strcpy(cm->password, password);
> +
> + return dbus_message_new_method_return(msg);
same comment as above.
> +}
> +
> static DBusMessage *cdma_connman_set_property(DBusConnection *conn,
> DBusMessage *msg, void *data)
> {
Regards,
-Denis
next prev parent reply other threads:[~2011-07-21 9:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-21 4:40 [PATCH_v2 0/4] CDMA-connman add username and password properties Guillaume Zajac
2011-07-21 4:40 ` [PATCH_v2 1/4] cdma-connman: pass username and password to drivers while activating cdma-connman Guillaume Zajac
2011-07-21 9:52 ` Denis Kenzior
2011-07-21 4:40 ` [PATCH_v2 2/4] cdma-connman: add username and password, pass them to drivers Guillaume Zajac
2011-07-21 9:54 ` Denis Kenzior [this message]
2011-07-21 4:40 ` [PATCH_v2 3/4] driver cdma-connman: pass credentials into activate function Guillaume Zajac
2011-07-21 9:54 ` Denis Kenzior
2011-07-21 4:40 ` [PATCH_v2 4/4] test: add script to set credentials for cdma connection Guillaume Zajac
2011-07-21 9:56 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4E27F74F.3020703@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox