Chnaged "disconnect" client operation to deliver the reason
[silc.git] / lib / silcclient / client_ops_example.c
index d7d922351a335562003f7d043bbfdeb201bae07c..32debf66de2333e99cb8bf4050d73add3690725b 100644 (file)
@@ -124,10 +124,14 @@ silc_connect(SilcClient client, SilcClientConnection conn,
 }
 
 
-/* Called to indicate that connection was disconnected to the server. */
+/* Called to indicate that connection was disconnected to the server.
+   The `status' may tell the reason of the disconnection, and if the
+   `message' is non-NULL it may include the disconnection message
+   received from server. */
 
 static void
-silc_disconnect(SilcClient client, SilcClientConnection conn)
+silc_disconnect(SilcClient client, SilcClientConnection conn,
+               SilcStatus status, const char *message)
 {
 
 }