diff src/lib/ioloop.h @ 3534:a9be1824403b HEAD

New inotify code and notify API change. Patch by Johannes Berg
author Timo Sirainen <tss@iki.fi>
date Mon, 15 Aug 2005 00:54:20 +0300
parents 5bf22d6bb65e
children c4c1b538d8d0
line wrap: on
line diff
--- a/src/lib/ioloop.h	Sun Aug 14 23:39:22 2005 +0300
+++ b/src/lib/ioloop.h	Mon Aug 15 00:54:20 2005 +0300
@@ -11,10 +11,9 @@
 enum io_condition {
 	IO_READ		= 0x01,
 	IO_WRITE	= 0x02,
-	IO_DIR_NOTIFY	= 0x04,
-	IO_FILE_NOTIFY	= 0x08,
-
-	IO_NOTIFY_MASK	= IO_DIR_NOTIFY | IO_FILE_NOTIFY
+	
+	/* internal */
+	IO_NOTIFY	= 0x04,
 };
 
 typedef void io_callback_t(void *context);
@@ -30,10 +29,11 @@
    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.
 
-   If IO_DIR_NOTIFY or IO_FILE_NOTIFY isn't supported by operating system
-   directly, this function returns NULL. */
+ */
 struct io *io_add(int fd, enum io_condition condition,
 		  io_callback_t *callback, void *context);
+struct io *io_add_notify(const char *path, io_callback_t *callback,
+			 void *context);
 void io_remove(struct io *io);
 
 /* Timeout handlers */