src/irc_conn.h
changeset 28 9c1050bc8709
parent 27 e6639132bead
child 29 3f0f2898fea3
--- a/src/irc_conn.h	Tue Mar 10 01:46:09 2009 +0200
+++ b/src/irc_conn.h	Tue Mar 10 02:34:11 2009 +0200
@@ -85,6 +85,13 @@
         void *cb_arg, struct error_info *err);
 
 /**
+ * Destroy the irc_conn state, terminating any connection and releasing all resources.
+ *
+ * This does not end the session cleanly, and is intended mainly to be used after clean exit, or to clean up after errors.
+ */
+void irc_conn_destroy (struct irc_conn *conn);
+
+/**
  * Add a new chain of command handler callbacks to be used to handle irc_lines from the server. The given arg will be
  * passed to the callbacks as the context argument. The chain will be appended to the end of the current list of chains.
  *