dovecot-2.0: lib-auth: Added auth_client_is_disconnected().

dovecot at dovecot.org dovecot at dovecot.org
Wed May 26 21:20:08 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/4f21121408b3
changeset: 11383:4f21121408b3
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 26 19:18:40 2010 +0100
description:
lib-auth: Added auth_client_is_disconnected().

diffstat:

 src/lib-auth/auth-client.c |  5 +++++
 src/lib-auth/auth-client.h |  1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

diffs (26 lines):

diff -r bb17ad464528 -r 4f21121408b3 src/lib-auth/auth-client.c
--- a/src/lib-auth/auth-client.c	Wed May 26 19:13:19 2010 +0100
+++ b/src/lib-auth/auth-client.c	Wed May 26 19:18:40 2010 +0100
@@ -47,6 +47,11 @@
 	return client->conn->handshake_received;
 }
 
+bool auth_client_is_disconnected(struct auth_client *client)
+{
+	return client->conn->fd == -1;
+}
+
 void auth_client_set_connect_notify(struct auth_client *client,
 				    auth_connect_notify_callback_t *callback,
 				    void *context)
diff -r bb17ad464528 -r 4f21121408b3 src/lib-auth/auth-client.h
--- a/src/lib-auth/auth-client.h	Wed May 26 19:13:19 2010 +0100
+++ b/src/lib-auth/auth-client.h	Wed May 26 19:18:40 2010 +0100
@@ -57,6 +57,7 @@
 void auth_client_connect(struct auth_client *client);
 void auth_client_disconnect(struct auth_client *client);
 bool auth_client_is_connected(struct auth_client *client);
+bool auth_client_is_disconnected(struct auth_client *client);
 void auth_client_set_connect_notify(struct auth_client *client,
 				    auth_connect_notify_callback_t *callback,
 				    void *context);


More information about the dovecot-cvs mailing list