2013-09-19 15:38:22 +02:00
|
|
|
#ifndef _RULE_H
|
|
|
|
#define _RULE_H
|
2012-09-11 13:12:53 +02:00
|
|
|
|
2013-09-17 11:35:22 +02:00
|
|
|
#define MATCH_ALL "*"
|
2013-10-05 22:32:40 +02:00
|
|
|
#define LST_SEP ","
|
2013-09-17 11:35:22 +02:00
|
|
|
|
2013-09-19 15:02:49 +02:00
|
|
|
rule_t *make_rule(void);
|
2013-10-05 22:32:40 +02:00
|
|
|
void add_rule(rule_t *r);
|
|
|
|
void remove_rule(rule_t *r);
|
|
|
|
void remove_rule_by_uid(unsigned int uid);
|
|
|
|
rule_t *find_rule(unsigned int uid);
|
|
|
|
bool is_match(rule_t *r, xcb_window_t win);
|
|
|
|
void handle_rules(xcb_window_t win, monitor_t **m, desktop_t **d, unsigned int *tags_field, bool *floating, bool *fullscreen, bool *locked, bool *sticky, bool *follow, bool *transient, bool *takes_focus, bool *manage);
|
|
|
|
void list_rules(char *pattern, char *rsp);
|
2012-09-11 13:12:53 +02:00
|
|
|
|
|
|
|
#endif
|