#ifndef BSPWM_RULE_H
#define BSPWM_RULE_H
-#define MATCH_ALL "*"
-#define LST_SEP ","
+#define CSQ_BLK " =,\n"
-rule_t *make_rule(void);
-void add_rule(rule_t *r);
-void remove_rule(rule_t *r);
-void remove_rule_by_name(char *name);
-bool remove_rule_by_index(int idx);
-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 *frame, bool *private, bool *manage);
-void list_rules(char *pattern, char *rsp);
+rule_consequence_t *make_rule_conquence(void);
+pending_rule_t *make_pending_rule(int fd, xcb_window_t win, rule_consequence_t *csq);
+void add_pending_rule(pending_rule_t *pr);
+void remove_pending_rule(pending_rule_t *pr);
+void apply_rules(xcb_window_t win, rule_consequence_t *csq);
+bool schedule_rules(xcb_window_t win, rule_consequence_t *csq);
+void parse_rule_consequence(int fd, rule_consequence_t *csq, monitor_t **m, desktop_t **d);
#endif