diff options
author | Frédéric Dalleau <frederic.dalleau@linux.intel.com> | 2011-02-23 14:19:12 +0100 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-23 09:31:07 -0600 |
commit | 42224e2bbe8c65b83ce4926cedb158269548d26a (patch) | |
tree | 36ce36772aad7449203cbba72cc6fadfe02fd500 | |
parent | 6fe0effb5d2f570c8fb5e8c55863751761ec718b (diff) |
gatserver: Add function to enable/disable echo
-rw-r--r-- | gatchat/gatserver.c | 10 | ||||
-rw-r--r-- | gatchat/gatserver.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gatchat/gatserver.c b/gatchat/gatserver.c index cd867819..2009498e 100644 --- a/gatchat/gatserver.c +++ b/gatchat/gatserver.c @@ -1271,6 +1271,16 @@ gboolean g_at_server_shutdown(GAtServer *server) return TRUE; } +gboolean g_at_server_set_echo(GAtServer *server, gboolean echo) +{ + if (server == NULL) + return FALSE; + + server->v250.echo = echo; + + return TRUE; +} + gboolean g_at_server_set_disconnect_function(GAtServer *server, GAtDisconnectFunc disconnect, gpointer user_data) diff --git a/gatchat/gatserver.h b/gatchat/gatserver.h index a42c8b51..bb0ae848 100644 --- a/gatchat/gatserver.h +++ b/gatchat/gatserver.h @@ -80,6 +80,7 @@ void g_at_server_unref(GAtServer *server); gboolean g_at_server_shutdown(GAtServer *server); +gboolean g_at_server_set_echo(GAtServer *server, gboolean echo); gboolean g_at_server_set_disconnect_function(GAtServer *server, GAtDisconnectFunc disconnect, gpointer user_data); |