From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH] Add CDMA voice call sending air interface flash support
Date: Mon, 15 Aug 2011 01:00:48 -0500 [thread overview]
Message-ID: <4E48B610.5080805@gmail.com> (raw)
In-Reply-To: <1313140786-28970-1-git-send-email-caiwen.zhang@windriver.com>
[-- Attachment #1: Type: text/plain, Size: 1545 bytes --]
Hi Caiwen,
On 08/12/2011 04:19 AM, Caiwen Zhang wrote:
> ---
> include/cdma-voicecall.h | 3 +++
> src/cdma-voicecall.c | 25 +++++++++++++++++++++++++
> 2 files changed, 28 insertions(+), 0 deletions(-)
>
I applied this patch, but broke it up into two:
949f0ad44756cebf5dc8e5cb54ea23fb4bb23684 and
fbf909fad44da2245ada23a4f90f3920ab49e633
One further comment:
<snip>
> @@ -307,6 +307,29 @@ static DBusMessage *voicecall_manager_answer(DBusConnection *conn,
> return NULL;
> }
>
> +static DBusMessage *voicecall_manager_flash(DBusConnection *conn,
> + DBusMessage *msg, void *data)
> +{
> + struct ofono_cdma_voicecall *vc = data;
> + const char *string;
> +
> + if (vc->pending)
> + return __ofono_error_busy(msg);
> +
> + if (vc->driver->send_flash == NULL)
> + return __ofono_error_not_implemented(msg);
> +
> + if (dbus_message_get_args(msg, NULL, DBUS_TYPE_STRING, &string,
> + DBUS_TYPE_INVALID) == FALSE)
> + return __ofono_error_invalid_args(msg);
> +
Is there a format for what constitutes a valid flash string? Sending
un-filtered user input here seems wrong. Please send a patch with a
flash string validator, similar to how send_tones was implemented.
> + vc->pending = dbus_message_ref(msg);
> +
> + vc->driver->send_flash(vc, string, generic_callback, vc);
> +
> + return NULL;
> +}
> +
> static GDBusMethodTable manager_methods[] = {
> { "GetProperties", "", "a{sv}",
> voicecall_manager_get_properties },
Regards,
-Denis
prev parent reply other threads:[~2011-08-15 6:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-12 9:19 [PATCH] Add CDMA voice call sending air interface flash support Caiwen Zhang
2011-08-15 6:00 ` Denis Kenzior [this message]
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=4E48B610.5080805@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