From 250c0c1ef9bb249a31c07a8c098e42714c00acec Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 30 Mar 2010 20:29:10 -0500 Subject: Simplify the send_info API --- gatchat/gatserver.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'gatchat/gatserver.h') diff --git a/gatchat/gatserver.h b/gatchat/gatserver.h index 2628fafd..bba8c2b0 100644 --- a/gatchat/gatserver.h +++ b/gatchat/gatserver.h @@ -99,18 +99,14 @@ void g_at_server_send_intermediate(GAtServer *server, const char *result); /* Send an unsolicited result code. E.g. RING */ void g_at_server_send_unsolicited(GAtServer *server, const char *result); -/* Send an information text. The text could contain multiple lines. Each - * line, including line terminators, should not exceed 2048 characters. - */ -void g_at_server_send_info_lines(GAtServer *server, GSList *text); - /* * Send a single response line for the command. The line should be no longer * than 2048 characters. If the response contains multiple lines, use - * g_at_server_send_info_lines instead, since the formatting of 27.007 - * compliant multi-line responses is different. + * FALSE for the 'last' parameter for lines 1 .. n -1, and 'TRUE' for the last + * line. This is required for formatting of 27.007 compliant multi-line + * responses. */ -void g_at_server_send_info(GAtServer *server, const char *line); +void g_at_server_send_info(GAtServer *server, const char *line, gboolean last); #ifdef __cplusplus } -- cgit v1.2.3