From a8e892cabb48633c9144dd5deede9689a7e5a0e3 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sun, 4 Apr 2010 23:29:15 +0800 Subject: [PATCH] [EXTRA] inotifytools More rules on gir get's to loop on js file. --- extras/inotifytools/example.js | 3 ++- extras/inotifytools/inotifytools.h | 12 +++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/extras/inotifytools/example.js b/extras/inotifytools/example.js index fce5471..12bd77a 100644 --- a/extras/inotifytools/example.js +++ b/extras/inotifytools/example.js @@ -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 ) ) { diff --git a/extras/inotifytools/inotifytools.h b/extras/inotifytools/inotifytools.h index 10e460f..8ea289d 100644 --- a/extras/inotifytools/inotifytools.h +++ b/extras/inotifytools/inotifytools.h @@ -10,4 +10,14 @@ /** * 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): + */ -- 2.39.2