Rename is_at_command_prefix
authorZhenhua Zhang <zhenhua.zhang@intel.com>
Thu, 18 Mar 2010 15:14:25 +0000 (23:14 +0800)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 18 Mar 2010 18:24:24 +0000 (13:24 -0500)
To is_extended_command_prefix

gatchat/gatserver.c

index 4f7a8a4..c491fc2 100644 (file)
@@ -173,7 +173,7 @@ static void g_at_server_send_final(GAtServer *server, GAtServerResult result)
        send_common(server, buf, MIN(len, sizeof(buf)-1));
 }
 
-static inline gboolean is_at_command_prefix(const char c)
+static inline gboolean is_extended_command_prefix(const char c)
 {
        switch (c) {
        case '+':
@@ -216,7 +216,7 @@ static void server_parse_line(GAtServer *server, char *line)
        if (c == ';')
                c = line[++i];
 
-       if (is_at_command_prefix(c) || c == 'A' || c == 'D' || c == 'H')
+       if (is_extended_command_prefix(c) || c == 'A' || c == 'D' || c == 'H')
                parse_at_command(server, line + i);
        else if (g_ascii_isalpha(c) || c == '&')
                parse_v250_settings(server, line + i);