summaryrefslogtreecommitdiffstats
path: root/gatchat
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-03-18 23:14:24 +0800
committerDenis Kenzior <denkenz@gmail.com>2010-03-18 13:24:06 -0500
commit074c7ff9203323fd2c76f83288f40f9b8c275125 (patch)
tree971dd0b292e14cddd72fb9e60d3eecc62e59cd0c /gatchat
parent1049a47eb1a99dfdfedebb98a2d116f8af19d6f6 (diff)
downloadofono-074c7ff9203323fd2c76f83288f40f9b8c275125.tar.bz2
Rename g_at_server_send_result
To g_at_server_send_final
Diffstat (limited to 'gatchat')
-rw-r--r--gatchat/gatserver.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c
index 079451fe..4f7a8a45 100644
--- a/gatchat/gatserver.c
+++ b/gatchat/gatserver.c
@@ -148,7 +148,7 @@ static void send_common(GAtServer *server, const char *buf, unsigned int len)
g_at_server_wakeup_writer(server);
}
-static void g_at_server_send_result(GAtServer *server, GAtServerResult result)
+static void g_at_server_send_final(GAtServer *server, GAtServerResult result)
{
struct v250_settings v250 = server->v250;
const char *result_str = server_result_to_string(result);
@@ -188,12 +188,12 @@ static inline gboolean is_at_command_prefix(const char c)
static void parse_at_command(GAtServer *server, char *buf)
{
- g_at_server_send_result(server, G_AT_SERVER_RESULT_ERROR);
+ g_at_server_send_final(server, G_AT_SERVER_RESULT_ERROR);
}
static void parse_v250_settings(GAtServer *server, char *buf)
{
- g_at_server_send_result(server, G_AT_SERVER_RESULT_ERROR);
+ g_at_server_send_final(server, G_AT_SERVER_RESULT_ERROR);
}
static void server_parse_line(GAtServer *server, char *line)
@@ -202,12 +202,12 @@ static void server_parse_line(GAtServer *server, char *line)
char c;
if (line == NULL) {
- g_at_server_send_result(server, G_AT_SERVER_RESULT_ERROR);
+ g_at_server_send_final(server, G_AT_SERVER_RESULT_ERROR);
goto done;
}
if (line[0] == '\0') {
- g_at_server_send_result(server, G_AT_SERVER_RESULT_OK);
+ g_at_server_send_final(server, G_AT_SERVER_RESULT_OK);
goto done;
}
@@ -221,7 +221,7 @@ static void server_parse_line(GAtServer *server, char *line)
else if (g_ascii_isalpha(c) || c == '&')
parse_v250_settings(server, line + i);
else
- g_at_server_send_result(server, G_AT_SERVER_RESULT_ERROR);
+ g_at_server_send_final(server, G_AT_SERVER_RESULT_ERROR);
done:
g_free(line);
@@ -402,7 +402,7 @@ static void new_bytes(GAtServer *p)
* According to section 5.2.4 and 5.6 of V250,
* Empty commands must be OK by the DCE
*/
- g_at_server_send_result(p, G_AT_SERVER_RESULT_OK);
+ g_at_server_send_final(p, G_AT_SERVER_RESULT_OK);
ring_buffer_drain(p->read_buf, p->read_so_far);
break;
@@ -412,7 +412,7 @@ static void new_bytes(GAtServer *p)
case PARSER_RESULT_REPEAT_LAST:
/* TODO */
- g_at_server_send_result(p, G_AT_SERVER_RESULT_OK);
+ g_at_server_send_final(p, G_AT_SERVER_RESULT_OK);
ring_buffer_drain(p->read_buf, p->read_so_far);
break;