diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-12-27 11:09:23 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-12-27 14:12:45 +0200 |
commit | ee6ce9f5da1d780a9efe5a6126884d1f0ae1b5a2 (patch) | |
tree | 6395ce4d873cc317293e9d1929b12d4de89342fe /NEWS | |
parent | e37d338c901a12d8b39481da8e5f437555705e16 (diff) | |
download | direvent-ee6ce9f5da1d780a9efe5a6126884d1f0ae1b5a2.tar.gz direvent-ee6ce9f5da1d780a9efe5a6126884d1f0ae1b5a2.tar.bz2 |
Implement filename selection
* NEWS: Update.
* doc/dircond.texi: Document the file statement.
* src/fnpat.c: New file.
* src/Makefile.am (dircond_SOURCES): Add fnpat.c
* src/config.c (eventconf) <fnames>: New member.
(eventconf_free): Free fnames.
(eventconf_flush): Set fnames.
(watcher_kw) <file>: New statement.
* src/dircond.h (filename_pattern): New struct.
(handler) <fnames>: New member.
(handler_matches_event): New macro.
(filename_pattern_free)
(filename_pattern_match): New proto.
* src/ev_inotify.c (process_event): Use handler_matches_event.
* src/ev_kqueue.c: Likewise.
* src/watcher.c (deliver_ev_create): Likewise.
* tests/Makefile.am: Add new tests.
* tests/testsuite.at: Likewise.
* tests/create.at: Add a distinctive keyword.
* tests/glob01.at: New testcase.
* tests/re01.at: New testcase.
* tests/re02.at: Likewise.
* tests/re03.at: Likewise.
* tests/re04.at: Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -dircond -- history of user-visible changes. 2013-06-04 +dircond -- history of user-visible changes. 2013-12-27 Copyright (C) 2012, 2013 Sergey Poznyakoff See the end of file for copying conditions. @@ -6,6 +6,11 @@ Please send dircond bug reports to <bug-dircond@gnu.org.ua> Version 4.0.90 (Git) +A watcher can be configured to react only on certain files. To that +effect, a new statement "file" is introduced. This statement defines +a list of regular expressions one of which the file name must match in +order for the watcher to wake up. + Version 4.0, 2013-06-04 |