Open Source Telephony
 help / color / mirror / Atom feed
From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] Make fetch command function as external
Date: Fri, 09 Jul 2010 12:17:09 -0500	[thread overview]
Message-ID: <4C375995.9090606@gmail.com> (raw)
In-Reply-To: <1278687128-8983-1-git-send-email-yang.gu@intel.com>

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

Hi Yang,

>  static gboolean sim_status_poll(gpointer user_data)
> @@ -317,3 +266,4 @@ void atmodem_poll_enable(struct ofono_modem *modem, GAtChat *chat)
>  		sim_watch(sim_atom,
>  				OFONO_ATOM_WATCH_CONDITION_REGISTERED, spd);
>  }
> +

Please note that I also get an error applying this patch:

Applying: Make fetch command function as external
/home/denkenz/ofono-master/.git/rebase-apply/patch:101: new blank line
at EOF.
+
fatal: 1 line adds whitespace errors.

> +void at_sim_fetch_command(GAtChat *chat, struct ofono_stk *stk, int length)
> +{
> +	char buf[64];
> +	struct cb_data *cbd = cb_data_new(chat, stk);
> +
> +	snprintf(buf, sizeof(buf), "AT+CSIM=10,A0120000%02hhX", length);
> +	g_at_chat_send(chat, buf, csim_prefix, csim_fetch_cb, cbd, g_free);
> +}
> +

There's no reason to pass in the chat object.  The stk_data hanging off
ofono_stk object already has a chat inside it.  So simply using that one
is enough.  This also means you don't need to create a cbd, passing stk
into g_at_chat_send is enough.

Regards,
-Denis

  parent reply	other threads:[~2010-07-09 17:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-09 14:52 [PATCH 1/3] Make fetch command function as external Yang Gu
2010-07-09 14:52 ` [PATCH 2/3] Support phonesim proactive command notification Yang Gu
2010-07-09 17:18   ` Denis Kenzior
2010-07-09 14:52 ` [PATCH 3/3] Interpret "" Alpha Id as empty data object Yang Gu
2010-07-09 15:22   ` Gu, Yang
2010-07-09 17:32   ` Denis Kenzior
2010-07-11 13:59     ` Gu, Yang
2010-07-09 15:09 ` [PATCH 1/3] Make fetch command function as external Gu, Yang
2010-07-09 17:17 ` Denis Kenzior [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-07-13 10:29 Yang Gu
2010-07-13 14:55 ` 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=4C375995.9090606@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