Index: trunk/include/sh_inotify.h
===================================================================
--- trunk/include/sh_inotify.h	(revision 371)
+++ trunk/include/sh_inotify.h	(revision 372)
@@ -23,4 +23,7 @@
 #define SH_INOTIFY_INITIALIZER { NULL, NULL, 0, 0 }
 
+#define SH_INOTIFY_FILE 0
+#define SH_INOTIFY_DIR  1
+
 int sh_inotify_wait_for_change(char * filename, sh_watches * watches, 
 			       int  * errnum,   int waitsec);
@@ -29,10 +32,10 @@
 
 int sh_inotify_add_watch(char * filename, sh_watches * watches, int  * errnum,
-			 int class, unsigned long check_mask);
+			 int class, unsigned long check_mask, int type);
 
 int sh_inotify_add_watch_later(char * filename, sh_watches * watches, int  * errnum,
-			       int class, unsigned long check_mask);
+			       int class, unsigned long check_mask, int type);
 
-char * sh_inotify_pop_dormant(sh_watches * watches, int * class, unsigned long * check_mask);
+char * sh_inotify_pop_dormant(sh_watches * watches, int * class, unsigned long * check_mask, int * type);
 
 void sh_inotify_purge_dormant(sh_watches * watches);
@@ -41,5 +44,5 @@
 
 char * sh_inotify_search_item(sh_watches * watches, int watch, 
-			      int * class, unsigned long * check_mask);
+			      int * class, unsigned long * check_mask, int * type);
 ssize_t sh_inotify_read(char * buffer, size_t count);
 ssize_t sh_inotify_read_timeout(char * buffer, size_t count, int timeout);
