diff src/lib/ioloop.h @ 1036:f782b3319553 HEAD

Removed useless parameters from io_callback_t and timeout_callback_t.
author Timo Sirainen <tss@iki.fi>
date Mon, 27 Jan 2003 03:44:34 +0200
parents e37e626902c3
children 8a2e1c539faf
line wrap: on
line diff
--- a/src/lib/ioloop.h	Mon Jan 27 03:33:40 2003 +0200
+++ b/src/lib/ioloop.h	Mon Jan 27 03:44:34 2003 +0200
@@ -14,8 +14,8 @@
 struct timeout;
 struct ioloop;
 
-typedef void (*io_callback_t) (void *context, int fd, struct io *io);
-typedef void (*timeout_callback_t) (void *context, struct timeout *timeout);
+typedef void io_callback_t(void *context);
+typedef void timeout_callback_t(void *context);
 
 /* Time when the I/O loop started calling handlers.
    Can be used instead of time(NULL). */
@@ -26,13 +26,13 @@
 /* I/O listeners - you can create different handlers for IO_READ and IO_WRITE,
    but make sure you don't create multiple handlers of same type, it's not
    checked and removing one will stop the other from working as well. */
-struct io *io_add(int fd, int condition, io_callback_t callback, void *context);
+struct io *io_add(int fd, int condition, io_callback_t *callback, void *context);
 struct io *io_add_priority(int fd, int priority, int condition,
-			   io_callback_t callback, void *context);
+			   io_callback_t *callback, void *context);
 void io_remove(struct io *io);
 
 /* Timeout handlers */
-struct timeout *timeout_add(int msecs, timeout_callback_t callback,
+struct timeout *timeout_add(int msecs, timeout_callback_t *callback,
 			    void *context);
 void timeout_remove(struct timeout *timeout);