lp:~ion/libnih/watch-delayed
The delayed watch code queues path change events, until a specified number of seconds have passed since the last change. When the path has "settled", the handlers are finally called.
- Get this branch:
- bzr branch lp:~ion/libnih/watch-delayed
Branch merges
Branch information
- Location:
- http://johan.kiviniemi.name/software/bzr/libnih.watch_delayed
- Last mirrored:
- 2008-10-06
- Next mirror:
- Disabled
Updating branch...
Launchpad is processing new changes to this branch which will be available in a few minutes. Reload to see the changes.
Recent revisions
- 387. By Johan Kiviniemi <email address hidden> on 2007-02-11
-
* nih/watch_
delayed. c: Add code for the delayed watch implementation.
It queues patch change events, until a specified number of seconds
have passed since the last change. When the path has "settled", the
handlers are finally called.
* nih/watch_delayed. h: Prototypes and structures for the delayed watch
API.
* nih/tests/test_watch_ delayed. c: Test suite for the delayed watch
API.
* nih/Makefile.am (libnih_la_SOURCES) : Build and link watch_delayed.c
(nihinclude_HEADERS) : Install watch_delayed.h
(TESTS): Build and run watch_delayed test suite
(test_watch_delayed_ SOURCES, test_watch_ delayed_ LDFLAGS,
test_watch_delayed_ LDADD): Details for watch_delayed test suite
binary. - 386. By Johan Kiviniemi <email address hidden> on 2007-02-11
-
* nih/hash.h (NIH_HASH_FOREACH, NIH_HASH_
FOREACH_ SAFE): Added missing
parenthesis. - 385. By Scott James Remnant (Canonical) on 2007-02-11
-
* nih/config.c: Remove macro definitions
* nih/config.h: and make them public instead
* nih/tests/test_config. c: Use macros. - 384. By Scott James Remnant (Canonical) on 2007-02-11
-
* nih/config.c (nih_config_
next_token) : Strange hybrid function,
it behaves like next_arg() but accepts the same arguments as token();
it skips whitespace, but only if the initial whitespace character is
in the delim argument.
(nih_config_next_arg) : This becomes a wrapper around next_token.
* nih/config.h: Add prototype.
* nih/tests/test_config. c (test_next_token): Check the new function. - 383. By Scott James Remnant (Canonical) on 2007-02-11
-
* nih/config.c (nih_config_
next_token) : Rename to nih_config_token,
since this doesn't behave like the next_arg() function, and we want
a similar token function that behaves like that.
* nih/config.h: Update.
* nih/tests/test_config. c (test_next_token): Rename and update. - 381. By Scott James Remnant (Canonical) on 2007-02-09
-
* nih/hash.h (NIH_HASH_
FOREACH_ SAFE): Oops, s/list/hash/ - 380. By Scott James Remnant (Canonical) on 2007-02-09
-
* nih/hash.h (NIH_HASH_FOREACH, NIH_HASH_
FOREACH_ SAFE): Add macros
to iterate over an entire hash table.
* nih/tests/test_hash. c (test_foreach, test_foreach_safe): Test the
macros. - 379. By Scott James Remnant (Canonical) on 2007-02-09
-
* nih/hash.c (nih_hash_
string_ key): Add a useful function to return
the first member after the list header.
* nih/hash.h: Add prototype.
* nih/tests/test_hash. c (test_string_key): Add test case. - 378. By Scott James Remnant (Canonical) on 2007-02-09
-
* nih/file.c (nih_file_
is_packaging) : Check for common packaging
filenames -- I swore I wrote this, but I can't find it.
(nih_file_ignore): Ignore packaging files.
* nih/file.h: Update.
* nih/tests/test_file. c (test_is_packaging, test_ignore): Test.
