From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [RFC 4/5] ifxmodem: Add support for tty call notifications
Date: Wed, 12 Jan 2011 23:23:03 -0600 [thread overview]
Message-ID: <4D2E8C37.60001@gmail.com> (raw)
In-Reply-To: <1294668092-27896-5-git-send-email-jeevaka.badrappan@elektrobit.com>
[-- Attachment #1: Type: text/plain, Size: 800 bytes --]
Hi Jeevaka,
> +static void ctm_notify(GAtResult *result, gpointer user_data)
> +{
> + struct ofono_voicecall *vc = user_data;
> + struct voicecall_data *vd = ofono_voicecall_get_data(vc);
> + GSList *l;
> + struct ofono_call *call;
> +
> + l = g_slist_find_custom(vd->calls, GINT_TO_POINTER(0),
> + at_util_call_compare_by_status);
So here we find the first call in the active state. This is not
necessarily guaranteed to be the only active call. Ideally this
notification should also provide the call id.
So the question is, is this safe enough and not subject to race conditions?
> + if (l == NULL) {
> + ofono_error("CTM for unknown call");
> + return;
> + }
> +
> + call = l->data;
> +
> + ofono_voicecall_tty_notify(vc, call);
> +}
> +
Regards,
-Denis
next prev parent reply other threads:[~2011-01-13 5:23 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-10 14:01 [RFC 0/5] Add support for TextTelephony call notifications Jeevaka Badrappan
2011-01-10 14:01 ` [RFC 1/5] types: add tty flag to ofono_call Jeevaka Badrappan
2011-01-10 14:01 ` [RFC 2/5] voicecall: Add tty property support Jeevaka Badrappan
2011-01-10 14:01 ` [RFC 3/5] voicecall: Add ofono_voicecall_tty_notify api Jeevaka Badrappan
2011-01-12 6:03 ` Marcel Holtmann
2011-01-12 8:27 ` Jeevaka.Badrappan
2011-01-12 16:29 ` Marcel Holtmann
2011-01-12 16:42 ` Jeevaka.Badrappan
2011-01-12 16:48 ` Marcel Holtmann
2011-01-13 5:19 ` Denis Kenzior
2011-01-13 9:15 ` Kai.Vehmanen
2011-01-13 9:43 ` Jeevaka.Badrappan
2011-01-13 11:08 ` Kai.Vehmanen
2011-01-10 14:01 ` [RFC 4/5] ifxmodem: Add support for tty call notifications Jeevaka Badrappan
2011-01-13 5:23 ` Denis Kenzior [this message]
2011-01-10 14:01 ` [RFC 5/5] doc: Describe TextTelephony property Jeevaka Badrappan
2011-01-12 6:00 ` Marcel Holtmann
2011-01-13 5:20 ` 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=4D2E8C37.60001@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.