X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdt%2Fdnotifier.h;h=992a4ce144b6a2e44725ca8fab732a463230f560;hb=4278d44ef7681c56f4bd16615c3c4d9338112df4;hp=118a2f4c62171cd5accabd0fb170f3304b7e9013;hpb=791e167e053bdd9250d34a9a5ccae6ccde4d6679;p=bertos.git diff --git a/bertos/dt/dnotifier.h b/bertos/dt/dnotifier.h index 118a2f4c..992a4ce1 100644 --- a/bertos/dt/dnotifier.h +++ b/bertos/dt/dnotifier.h @@ -29,42 +29,19 @@ * Copyright 2005 Develer S.r.l. (http://www.develer.com/) * --> * - * \version $Id$ - * * \brief Notifier obj (interface). * - * \version $Id$ - * \author Bernardo Innocenti + * \author Bernie Innocenti * \author Francesco Sacchi */ -/*#* - *#* $Log$ - *#* Revision 1.2 2006/07/19 12:56:26 bernie - *#* Convert to new Doxygen style. - *#* - *#* Revision 1.1 2005/11/04 18:26:38 bernie - *#* Import into DevLib. - *#* - *#* Revision 1.4 2005/06/09 13:23:58 batt - *#* Add some comments. - *#* - *#* Revision 1.3 2005/06/08 17:32:33 batt - *#* Switch to new messaging system. - *#* - *#* Revision 1.2 2005/06/06 11:04:12 batt - *#* Add some comments. - *#* - *#* Revision 1.1 2005/05/26 08:32:53 batt - *#* Add new Develer widget system :) - *#* - *#*/ #ifndef DT_DNOTIFIER_H #define DT_DNOTIFIER_H #include + #include
-#include +#include //Fwd declaretion. struct DNotifier; @@ -121,7 +98,7 @@ typedef struct DFilter } DFilter; /// Type for filter-mask checking -typedef uint16_t dfilter_mask_t; +typedef unsigned int dfilter_mask_t; /// Filter init void filter_init(DFilter *f, const DFilterMap *map, bool masked, DNotifier *source, DNotifier *target); @@ -151,8 +128,8 @@ INLINE void dnotify(DNotifier *target, dtag_t tag, dval_t val) INLINE void dnotify_targets(DNotifier *target, dtag_t tag, dval_t val) { DFilter *f; - if (!ISLISTEMPTY(&target->targets)) - FOREACHNODE(f, &target->targets) + if (!LIST_EMPTY(&target->targets)) + FOREACH_NODE(f, &target->targets) f->update(f, tag, val); }