From 93db25bbc7b472ca4061db0719bdccc150dcf9c7 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 5 Apr 2010 13:07:26 +0800 Subject: [PATCH] [EXTRAS] inotify extra details well it runs at least.. --- extras/inotifytools/example.js | 4 +++- extras/inotifytools/inotifytools.h | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/extras/inotifytools/example.js b/extras/inotifytools/example.js index 12bd77a..e4cd927 100644 --- a/extras/inotifytools/example.js +++ b/extras/inotifytools/example.js @@ -45,7 +45,9 @@ var moved_from = ''; while (true) { var event = inotifytools.next_event( 0 ); - Seed.print(event); + Seed.print(event.len); + inotifytools.printf(event, "in %w, file %f had event(s): %.e\n"); + continue; if ( !event ) { if ( !inotifytools.error() ) { Seed.print("Timeout?"); diff --git a/extras/inotifytools/inotifytools.h b/extras/inotifytools/inotifytools.h index 8ea289d..0c1ee7c 100644 --- a/extras/inotifytools/inotifytools.h +++ b/extras/inotifytools/inotifytools.h @@ -21,3 +21,19 @@ * inotifytools_filename_from_wd: * Return value: (transfer none): */ + + +/** + * inotifytools_filename_from_wd: + * Return value: (transfer none): + */ + +/** + * inotify_event: + * wd: (type int): + * mask: (type uint32): + * cookie: (type uint32): + * len: (type uint32): + * name: (array length=len): + */ + \ No newline at end of file -- 2.39.2