--- gatchat/gatserver.c | 45 --------------------------------------------- 1 files changed, 0 insertions(+), 45 deletions(-) diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index c9256e2..4175112 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -173,55 +173,10 @@ static void g_at_server_send_result(GAtServer *server, GAtServerResult result) send_common(server, buf, MIN(len, sizeof(buf)-1)); } -static inline gboolean is_at_command_prefix(const char c) -{ - switch (c) { - case '+': - case '*': - case '!': - case '%': - return TRUE; - default: - return FALSE; - } -} - -static GAtServerResult parse_at_command(GAtServer *server, char *buf) -{ - return G_AT_SERVER_RESULT_ERROR; -} - -static GAtServerResult parse_v250_settings(GAtServer *server, char *buf) -{ - return G_AT_SERVER_RESULT_ERROR; -} - static GAtServerResult server_parse_line(GAtServer *server, char *line) { - gsize i = 0; - char c; GAtServerResult res = G_AT_SERVER_RESULT_ERROR; - if (line == NULL) - goto done; - - if (line[0] == '\0') { - res = G_AT_SERVER_RESULT_OK; - goto done; - } - - c = line[i]; - /* skip semicolon */ - if (c == ';') - c = line[++i]; - - if (is_at_command_prefix(c)) - res = parse_at_command(server, line + i); - else if (g_ascii_isalpha(c) || c == '&') - res = parse_v250_settings(server, line + i); - -done: - g_free(line); return res; } -- 1.6.6.1