diff src/lib/ioloop.h @ 8100:83aef3a6c0a3 HEAD

Added io_remove_closed().
author Timo Sirainen <tss@iki.fi>
date Thu, 21 Aug 2008 07:35:59 +0300
parents 940641318f12
children 2c111b572eee
line wrap: on
line diff
--- a/src/lib/ioloop.h	Thu Aug 21 07:14:50 2008 +0300
+++ b/src/lib/ioloop.h	Thu Aug 21 07:35:59 2008 +0300
@@ -63,6 +63,9 @@
 
 /* Remove I/O handler, and set io pointer to NULL. */
 void io_remove(struct io **io);
+/* Like io_remove(), but assume that the file descriptor is already closed.
+   With some backends this simply frees the memory. */
+void io_remove_closed(struct io **io);
 
 /* Timeout handlers */
 struct timeout *timeout_add(unsigned int msecs, timeout_callback_t *callback,