summaryrefslogtreecommitdiffstats
path: root/gatchat/gatserver.h
diff options
context:
space:
mode:
authorZhenhua Zhang <zhenhua.zhang@intel.com>2010-03-30 12:34:47 -0500
committerDenis Kenzior <denkenz@gmail.com>2010-03-30 12:37:29 -0500
commitcdc13c40b6fb16ddfe827441d5641a5252f41025 (patch)
tree8323a288a815b2a277077ad6db4b2f133815ff5f /gatchat/gatserver.h
parent58e3d1465103787a652838a7c8421c70ce03c9c9 (diff)
downloadofono-cdc13c40b6fb16ddfe827441d5641a5252f41025.tar.bz2
Add API stubs for unsolicited / final responses
Diffstat (limited to 'gatchat/gatserver.h')
-rw-r--r--gatchat/gatserver.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/gatchat/gatserver.h b/gatchat/gatserver.h
index 2ae19ca9..a508be64 100644
--- a/gatchat/gatserver.h
+++ b/gatchat/gatserver.h
@@ -87,6 +87,23 @@ gboolean g_at_server_register(GAtServer *server, char *prefix,
GDestroyNotify destroy_notify);
gboolean g_at_server_unregister(GAtServer *server, const char *prefix);
+/* Send a final result code. E.g. G_AT_SERVER_RESULT_NO_DIALTONE */
+void g_at_server_send_final(GAtServer *server, GAtServerResult result);
+
+/* Send an extended final result code. E.g. +CME ERROR: SIM failure. */
+void g_at_server_send_ext_final(GAtServer *server, const char *result);
+
+/* Send an intermediate result code to report the progress. E.g. CONNECT */
+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_text(GAtServer *server, GSList *text);
+
#ifdef __cplusplus
}
#endif