diff options
author | Debarshi Ray <rishi@gnu.org> | 2011-08-17 23:15:45 +0300 |
---|---|---|
committer | Debarshi Ray <rishi@gnu.org> | 2011-09-29 09:12:41 +0300 |
commit | eafdad1f3c34cf181df4af944f54653d8c370db4 (patch) | |
tree | c829d3528605bc4e466c9bbe5db21a0dabf79020 /src/idle-server-connection.h | |
parent | c4cbc7282aa97965555eec80697ebf2f26a91f71 (diff) | |
download | telepathy-idle-eafdad1f3c34cf181df4af944f54653d8c370db4.tar.gz |
IdleServerConnection: Async-ify idle_server_connection_send
Fixes: https://bugs.freedesktop.org/37145
Diffstat (limited to 'src/idle-server-connection.h')
-rw-r--r-- | src/idle-server-connection.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/idle-server-connection.h b/src/idle-server-connection.h index 32d988f..27139d2 100644 --- a/src/idle-server-connection.h +++ b/src/idle-server-connection.h @@ -73,7 +73,8 @@ void idle_server_connection_connect_async(IdleServerConnection *conn, GCancellab gboolean idle_server_connection_connect_finish(IdleServerConnection *conn, GAsyncResult *result, GError **error); gboolean idle_server_connection_disconnect(IdleServerConnection *conn, GError **error); gboolean idle_server_connection_disconnect_full(IdleServerConnection *conn, GError **error, guint reason); -gboolean idle_server_connection_send(IdleServerConnection *conn, const gchar *cmd, GError **error); +void idle_server_connection_send_async(IdleServerConnection *conn, const gchar *cmd, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); +gboolean idle_server_connection_send_finish(IdleServerConnection *conn, GAsyncResult *result, GError **error); IdleServerConnectionState idle_server_connection_get_state(IdleServerConnection *conn); void idle_server_connection_set_tls(IdleServerConnection *conn, gboolean tls); |