--- 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);
};
/*