Lines Matching refs:line

121 static void addIntermediate(const char *line)  in addIntermediate()  argument
127 p_new->line = strdup(line); in addIntermediate()
150 static int isFinalResponseError(const char *line) in isFinalResponseError() argument
155 if (strStartsWith(line, s_finalResponsesError[i])) { in isFinalResponseError()
172 static int isFinalResponseSuccess(const char *line) in isFinalResponseSuccess() argument
177 if (strStartsWith(line, s_finalResponsesSuccess[i])) { in isFinalResponseSuccess()
190 static int isFinalResponse(const char *line) in isFinalResponse() argument
192 return isFinalResponseSuccess(line) || isFinalResponseError(line); in isFinalResponse()
205 static int isSMSUnsolicited(const char *line) in isSMSUnsolicited() argument
210 if (strStartsWith(line, s_smsUnsoliciteds[i])) { in isSMSUnsolicited()
220 static void handleFinalResponse(const char *line) in handleFinalResponse() argument
222 sp_response->finalResponse = strdup(line); in handleFinalResponse()
227 static void handleUnsolicited(const char *line) in handleUnsolicited() argument
230 s_unsolHandler(line, NULL); in handleUnsolicited()
234 static void processLine(const char *line) in processLine() argument
240 handleUnsolicited(line); in processLine()
241 } else if (isFinalResponseSuccess(line)) { in processLine()
243 handleFinalResponse(line); in processLine()
244 } else if (isFinalResponseError(line)) { in processLine()
246 handleFinalResponse(line); in processLine()
247 } else if (s_smsPDU != NULL && 0 == strcmp(line, "> ")) { in processLine()
254 handleUnsolicited(line); in processLine()
258 && isdigit(line[0]) in processLine()
260 addIntermediate(line); in processLine()
264 handleUnsolicited(line); in processLine()
269 && strStartsWith (line, s_responsePrefix) in processLine()
271 addIntermediate(line); in processLine()
274 handleUnsolicited(line); in processLine()
278 if (strStartsWith (line, s_responsePrefix)) { in processLine()
279 addIntermediate(line); in processLine()
281 handleUnsolicited(line); in processLine()
287 handleUnsolicited(line); in processLine()
433 const char * line; in readerLoop() local
435 line = readline(); in readerLoop()
437 if (line == NULL) { in readerLoop()
441 if(isSMSUnsolicited(line)) { in readerLoop()
448 line1 = strdup(line); in readerLoop()
461 processLine(line); in readerLoop()
638 free(p_toFree->line); in at_response_free()