[PATCH 1/3] Make fetch command function as external

Gu, Yang yang.gu at intel.com
Fri Jul 9 08:09:25 PDT 2010


Hi,

>-----Original Message-----
>From: Yang Gu [mailto:gyagp0 at gmail.com]
>Sent: Friday, July 09, 2010 10:52 PM
>To: ofono at ofono.org
>Cc: Gu, Yang
>Subject: [PATCH 1/3] Make fetch command function as external
>+
>+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);

Both chat and stk need to be passed to callback function, so I use cb_data here. Any comment?



Regards,
-Yang


More information about the ofono mailing list