[EXTRA] inotifytools
authorAlan Knowles <alan@akbkhome.com>
Sun, 4 Apr 2010 15:29:15 +0000 (23:29 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sun, 4 Apr 2010 15:29:15 +0000 (23:29 +0800)
More rules on gir
get's to loop on js file.

extras/inotifytools/example.js
extras/inotifytools/inotifytools.h

index fce5471..12bd77a 100644 (file)
@@ -45,6 +45,7 @@ var moved_from = '';
 while (true) {
     
     var event = inotifytools.next_event( 0 );
+    Seed.print(event);
     if ( !event ) {
         if ( !inotifytools.error() ) {
             Seed.print("Timeout?");
@@ -56,7 +57,7 @@ while (true) {
         } else {
             continue;
                        
-               }
+       }
     }
     if ( moved_from.length && !(event.mask & inotifytools.IN_MOVED_TO) ) {
         if ( !inotifytools.remove_watch_by_filename( moved_from ) ) {
index 10e460f..8ea289d 100644 (file)
 /**
  * inotifytools_event_to_str:
  * Return value: (transfer none) (type utf8): 
- */
\ No newline at end of file
+ */
+
+/**
+ * inotifytools_next_event:
+ * Return value: (transfer none): 
+ */
+
+/**
+ * inotifytools_filename_from_wd:
+ * Return value: (transfer none): 
+ */