summaryrefslogtreecommitdiffstats
path: root/gatchat/gatserver.h
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-08-15 00:22:07 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-08-15 00:25:27 -0500
commit2867bf724d5578b607226279be80290ea2d46e1b (patch)
tree15e9abcacdd451cfe564ed5eb3dc8f3cf1454d2b /gatchat/gatserver.h
parent1f1544d0be88776889df5102f5a4288c26c6f665 (diff)
downloadofono-2867bf724d5578b607226279be80290ea2d46e1b.tar.bz2
gatserver: Add command finished callbacks
Diffstat (limited to 'gatchat/gatserver.h')
-rw-r--r--gatchat/gatserver.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gatchat/gatserver.h b/gatchat/gatserver.h
index bb0ae848..5fc030b5 100644
--- a/gatchat/gatserver.h
+++ b/gatchat/gatserver.h
@@ -69,6 +69,8 @@ typedef void (*GAtServerNotifyFunc)(GAtServer *server,
GAtServerRequestType type,
GAtResult *result, gpointer user_data);
+typedef void (*GAtServerFinishFunc)(GAtServer *server, gpointer user_data);
+
GAtServer *g_at_server_new(GIOChannel *io);
GIOChannel *g_at_server_get_channel(GAtServer *server);
GAtIO *g_at_server_get_io(GAtServer *server);
@@ -115,6 +117,11 @@ void g_at_server_send_unsolicited(GAtServer *server, const char *result);
*/
void g_at_server_send_info(GAtServer *server, const char *line, gboolean last);
+gboolean g_at_server_set_finish_callback(GAtServer *server,
+ GAtServerFinishFunc finishf,
+ gpointer user_data);
+gboolean g_at_server_command_pending(GAtServer *server);
+
#ifdef __cplusplus
}
#endif