BeRTOS
|
Notifier obj (implementation). More...
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. |
Notifier obj (implementation).
Definition in file dnotifier.c.
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 143 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 106 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 70 of file dnotifier.c.
void notifier_init | ( | DNotifier * | n | ) |