From: Dara Spieker-Doyle <dara.spieker-doyle@nokia.com>
To: ofono@ofono.org
Subject: Re: [PATCH v4, 3/5] nokiacdma: Add plugin and CDMA MO Call Support
Date: Mon, 10 Jan 2011 15:12:33 -0800 [thread overview]
Message-ID: <4D2B9261.8010501@nokia.com> (raw)
In-Reply-To: <4D2B8A90.3040309@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1554 bytes --]
Hi Denis
On 01/10/2011 02:39 PM, ext Denis Kenzior wrote:
> Hi Dara,
>
>> +static void nokiacdma_remove(struct ofono_modem *modem)
>> +{
>> + struct nokiacdma_data *data = ofono_modem_get_data(modem);
>> +
>> + DBG("%p", modem);
>> +
>> + ofono_modem_set_data(modem, NULL);
>> +
>> + if (data->chat)
>> + g_at_chat_unref(data->chat);
>
> Feel free to skip the NULL check, g_at_chat_unref handles this just fine.
>
I'll remove this
>> +
>> + g_free(data);
>> +}
>> +
>
> <snip>
>
>> +static gboolean nokiacdma_set_online_cb(gpointer cb_data)
>> +{
>> + struct cb_data *cbd = cb_data;
>> + ofono_modem_online_cb_t cb = cbd->cb;
>> +
>> + CALLBACK_WITH_SUCCESS(cb, cbd->data);
>> +
>> + g_free(cbd);
>> +
>> + /* do not call again */
>> + return FALSE;
>> +}
>> +
>> +static void nokiacdma_set_online(struct ofono_modem *modem,
>> + ofono_bool_t online,
>> + ofono_modem_online_cb_t cb, void *user_data)
>> +{
>> + struct cb_data *cbd = cb_data_new(cb, user_data);
>> +
>> + DBG("modem %p %s", modem, online ? "online" : "offline");
>> +
>> + /* TODO: Add implementation to control modem online status */
>> + g_idle_add(nokiacdma_set_online_cb, cbd);
>> +}
>> +
>
> I'm really lost in the above two functions. If you don't have an
> implementation, you can just skip it. oFono should do the right thing
> and automatically bring devices up into online state if set_online is
> missing.
>
OK - we'll skip it as discussed and I'll include this in the patch rebase.
Thank you
Dara
prev parent reply other threads:[~2011-01-10 23:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-04 1:50 [PATCH v4, 3/5] nokiacdma: Add plugin and CDMA MO Call Support Dara Spieker-Doyle
2011-01-10 22:39 ` Denis Kenzior
2011-01-10 23:12 ` Dara Spieker-Doyle [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=4D2B9261.8010501@nokia.com \
--to=dara.spieker-doyle@nokia.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