return NULL;
}
+GIOChannel *g_at_chat_get_channel(GAtChat *chat)
+{
+ if (chat == NULL)
+ return NULL;
+
+ return chat->channel;
+}
+
GAtChat *g_at_chat_ref(GAtChat *chat)
{
if (chat == NULL)
typedef void (*GAtDebugFunc)(const char *str, gpointer user_data);
GAtChat *g_at_chat_new(GIOChannel *channel, GAtSyntax *syntax);
-GAtChat *g_at_chat_new_from_tty(const char *device, GAtSyntax *syntax);
+
+GIOChannel *g_at_chat_get_channel(GAtChat *chat);
GAtChat *g_at_chat_ref(GAtChat *chat);
void g_at_chat_unref(GAtChat *chat);
speed = B1500000;
else if (g_str_equal(baud, "2000000"))
speed = B2000000;
+#ifdef B2500000
else if (g_str_equal(baud, "2500000"))
speed = B2500000;
+#endif
+#ifdef B3000000
else if (g_str_equal(baud, "3000000"))
speed = B3000000;
+#endif
+#ifdef B3500000
else if (g_str_equal(baud, "3500000"))
speed = B3500000;
+#endif
+#ifdef B4000000
else if (g_str_equal(baud, "4000000"))
speed = B4000000;
+#endif
else
return FALSE;