Really implemented the callback mechanism this time

This commit is contained in:
Pierre Pronchery 2010-04-28 22:57:15 +00:00
parent 8bd75384fb
commit 7059a15680

View File

@ -985,6 +985,9 @@ static int _gsm_parse_line(GSM * gsm, char const * line, gboolean * answered)
{
if(answered != NULL)
*answered = TRUE;
if((command = g_slist_nth_data(gsm->queue, 0)) != NULL
&& command->callback != NULL)
command->callback(gsm);
return 0;
}
for(i = 0; _gsm_errors[i] != NULL; i++)