lp:~ion/libnih/watch-delayed

Created by Johan Kiviniemi on 2007-02-12 and last modified on 2009-10-03
This branch may be out of date, because Launchpad has not been able to access it since 2008-10-06.

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

Related bugs

Related blueprints

Branch information

Owner:
Johan Kiviniemi
Project:
libnih
Status:
Abandoned
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.

382. By Scott James Remnant (Canonical) on 2007-02-11

bump copyright

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.

This branch contains Public information 
Everyone can see this information.

Subscribers

No subscribers.