Code

src/utils_complain.[ch]: Reintroduced an improved version of the complain mechanism.
authorSebastian Harl <sh@tokkee.org>
Thu, 22 May 2008 11:34:54 +0000 (13:34 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Tue, 27 May 2008 11:13:44 +0000 (13:13 +0200)
commitd1247a271c1822a0cc655473430b724ab10bc004
tree5a55bb69b16df9ac95d8a7ff66d8ba2b7d9ae3b3
parent837ad77e1217a0085b7d8cf18c76eca608fd428b
src/utils_complain.[ch]: Reintroduced an improved version of the complain mechanism.

This has been asked for a couple of times and since I need it now, here it
goes... ;-) I've done the following modifications to Florian's original
version:

 * Renamed "plugin_complain" to "c_complain".
 * Renamed "plugin_relief" to "c_release", thus using two verbs which is
   more consistent imho.
 * Added "c_complain_once" to report a complaint only once.
 * Use timestamps instead of counting multiples of "interval_g" to
   determine when to report again. Thus, multiple calls to the complain-
   functions in one interval are allowed.

Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/Makefile.am
src/utils_complain.c [new file with mode: 0644]
src/utils_complain.h [new file with mode: 0644]