dnotifier.c File Reference
Notifier obj (implementation). More...
#include <cfg/debug.h>#include <dt/dtag.h>#include <dt/dnotifier.h>#include <struct/list.h>Go to the source code of this file.
Functions | |
| static void | notifier_update (DNotifier *n, dtag_t tag, dval_t val) |
| Default update used to notify target: notify all trasparently all targets in the list. | |
| void | notifier_init (DNotifier *n) |
| Init. | |
| void | filter_update (DFilter *f, dtag_t tag, dval_t val) |
| Search in the map a tag and a val corresponding to the ones supplied. | |
| void | filter_mask_update (DFilter *f, dtag_t tag, dval_t val) |
| Search in the table a tag corresponding to the one supplied and a val that has at least the mask map supplied bits to one. | |
| void | filter_init (DFilter *f, const DFilterMap *map, bool masked, DNotifier *source, DNotifier *target) |
| Init filter. | |
Detailed Description
Notifier obj (implementation).
- Version:
- Id
- dnotifier.c 2506 2009-04-15 08:29:07Z duplo
- Version:
- Id
- dnotifier.c 2506 2009-04-15 08:29:07Z duplo
Definition in file dnotifier.c.
Function Documentation
| void filter_init | ( | DFilter * | f, | |
| const DFilterMap * | map, | |||
| bool | masked, | |||
| DNotifier * | source, | |||
| DNotifier * | target | |||
| ) |
Init filter.
Filter init.
If masked is true, all the fields value in map must be interpreted as a mask of bits.
Definition at line 145 of file dnotifier.c.
Search in the table a tag corresponding to the one supplied and a val that has at least the mask map supplied bits to one.
Filter update function with masking capabilities.
If a match is found change them to the corresponding ones in the map. If map is NULL the filter is trasparent and all messages sent to filter will be forwarded to its target.
Definition at line 108 of file dnotifier.c.
Search in the map a tag and a val corresponding to the ones supplied.
Filter update function without masking capabilities.
If a match is found change them to the corresponding ones in the map. If map is NULL the filter is trasparent and all messages sent to filter will be forwarded to its target.
Definition at line 72 of file dnotifier.c.
| void notifier_init | ( | DNotifier * | n | ) |
