* Copyright 2005 Develer S.r.l. (http://www.develer.com/)
* -->
*
- * \version $Id$
- *
* \brief Notifier obj (interface).
*
- * \version $Id$
- * \author Bernardo Innocenti <bernie@develer.com>
+ * \author Bernie Innocenti <bernie@codewiz.org>
* \author Francesco Sacchi <batt@develer.com>
*/
-/*#*
- *#* $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 <cfg/debug.h>
+
#include <dt/dtag.h>
-#include <mware/list.h>
+#include <struct/list.h>
//Fwd declaretion.
struct DNotifier;
} 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);
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);
}