diff options
author | Denis Kenzior <denkenz@gmail.com> | 2010-03-22 12:56:57 -0500 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2010-03-22 12:59:04 -0500 |
commit | c78805a91b0b381c72311a3836df33e325409948 (patch) | |
tree | e599b4d53f67e68a300dcd9618733dccdf22caf2 /gatchat/gatserver.h | |
parent | f9991f929aac4d054541a9c85d19a21c47a91a3a (diff) | |
download | ofono-c78805a91b0b381c72311a3836df33e325409948.tar.bz2 |
Refactor: Extended command parsing
Make the code more bullet proof and easier to follow
Diffstat (limited to 'gatchat/gatserver.h')
-rw-r--r-- | gatchat/gatserver.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gatchat/gatserver.h b/gatchat/gatserver.h index 6fb78bdd..2ae19ca9 100644 --- a/gatchat/gatserver.h +++ b/gatchat/gatserver.h @@ -56,7 +56,6 @@ typedef enum _GAtServerResult GAtServerResult; * or, basic command followed with sub-parameters, e.g. ATD12345; */ enum _GAtServerRequestType { - G_AT_SERVER_REQUEST_TYPE_ERROR, G_AT_SERVER_REQUEST_TYPE_COMMAND_ONLY, G_AT_SERVER_REQUEST_TYPE_QUERY, G_AT_SERVER_REQUEST_TYPE_SUPPORT, @@ -65,14 +64,14 @@ enum _GAtServerRequestType { typedef enum _GAtServerRequestType GAtServerRequestType; -typedef GAtServerResult (*GAtServerNotifyFunc)(GAtServerRequestType type, - GAtResult *result, - gpointer user_data); +typedef void (*GAtServerNotifyFunc)(GAtServerRequestType type, + GAtResult *result, gpointer user_data); GAtServer *g_at_server_new(GIOChannel *io); GAtServer *g_at_server_ref(GAtServer *server); void g_at_server_unref(GAtServer *server); + gboolean g_at_server_shutdown(GAtServer *server); gboolean g_at_server_set_disconnect_function(GAtServer *server, |