From: Alan Knowles Date: Sun, 4 Apr 2010 15:29:15 +0000 (+0800) Subject: [EXTRA] inotifytools X-Git-Url: http://git.roojs.org/?p=gnome.gobject-introspection;a=commitdiff_plain;h=a8e892cabb48633c9144dd5deede9689a7e5a0e3 [EXTRA] inotifytools More rules on gir get's to loop on js file. --- 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): + */