Hi, >-----Original Message----- >From: Yang Gu [mailto:[email protected]] >Sent: Friday, July 09, 2010 10:52 PM >To: [email protected] >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 _______________________________________________ ofono mailing list [email protected] http://lists.ofono.org/listinfo/ofono
