|
Dunst
Lightweight notification daemon
|
Rules managment and helpers. More...
Include dependency graph for rules.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | rule |
Functions | |
| struct rule * | rule_new (const char *name) |
| Allocate a new rule with given name. | |
| void | rule_free (struct rule *r) |
| void | rule_print (const struct rule *r) |
| void | rule_apply (struct rule *r, struct notification *n, bool save) |
| void | rule_apply_all (struct notification *n) |
| bool | rule_matches_notification (struct rule *r, struct notification *n) |
| struct rule * | get_rule (const char *name) |
| Get rule with this name from rules. | |
| bool | rule_offset_is_modifying (const size_t offset) |
| Check if a rule is an action. | |
| bool | rule_offset_is_filter (const size_t offset) |
| Check if a rule is an filter. | |
Variables | |
| GSList * | rules |
Rules managment and helpers.
Definition in file rules.h.
| struct rule * get_rule | ( | const char * | name | ) |
| void rule_apply | ( | struct rule * | r, |
| struct notification * | n, | ||
| bool | save ) |
| void rule_apply_all | ( | struct notification * | n | ) |
| bool rule_matches_notification | ( | struct rule * | r, |
| struct notification * | n ) |
| struct rule * rule_new | ( | const char * | name | ) |
Allocate a new rule with given name.
The rule is fully initialised. If the name is one of a special section (see settings_data.h), the rule is initialized with some filters, and you should not add any filters after that.
| name | Name of the rule. |
| bool rule_offset_is_filter | ( | const size_t | offset | ) |
| bool rule_offset_is_modifying | ( | const size_t | offset | ) |