src/irc_conn.h
changeset 45 71e65564afd2
parent 37 4fe4a3c4496e
child 48 4841f4398fd2
--- a/src/irc_conn.h	Thu Mar 12 22:06:01 2009 +0200
+++ b/src/irc_conn.h	Thu Mar 12 22:50:08 2009 +0200
@@ -40,6 +40,12 @@
      * irc_conn_register has completed.
      */
     void (*on_registered) (struct irc_conn *conn, void *arg);
+
+    /**
+     * The connection has failed in some way, and can not be considered useable anymore. Sending messages won't work,
+     * and no more messages will be received. The connection should be destroyed, probably from this callback.
+     */
+    void (*on_error) (struct irc_conn *conn, struct error_info *err, void *arg);
 };
 
 /*