|
i3
|

Go to the source code of this file.
Functions | |
| void | match_init (Match *match) |
| bool | match_is_empty (Match *match) |
| Check if a match is empty. More... | |
| void | match_copy (Match *dest, Match *src) |
| Copies the data of a match from src to dest. More... | |
| bool | match_matches_window (Match *match, i3Window *window) |
| Check if a match data structure matches the given window. More... | |
| void | match_free (Match *match) |
| Frees the given match. More... | |
| void | match_parse_property (Match *match, const char *ctype, const char *cvalue) |
| Interprets a ctype=cvalue pair and adds it to the given match specification. More... | |
Copies the data of a match from src to dest.
Definition at line 64 of file match.c.
References DUPLICATE_REGEX.
Referenced by CFGFUN().
| void match_free | ( | Match * | match | ) |
Frees the given match.
It must not be used afterwards!
Definition at line 254 of file match.c.
References Match::application, Match::class, Match::error, FREE, Match::instance, Match::mark, regex_free(), Match::title, Match::window_role, and Match::workspace.
Referenced by CFGFUN(), json_end_map(), load_configuration(), manage_window(), and TAILQ_HEAD().

| void match_init | ( | Match * | match | ) |
Definition at line 28 of file match.c.
References Match::dock, Match::urgent, and Match::window_type.
Referenced by CFGFUN(), output_init_con(), and TAILQ_HEAD().
| bool match_is_empty | ( | Match * | match | ) |
Check if a match is empty.
This is necessary while parsing commands to see whether the user specified a match at all.
Definition at line 41 of file match.c.
References Match::application, Match::class, Match::con_id, Match::dock, Match::floating, Match::id, Match::instance, Match::mark, Match::title, Match::urgent, Match::window_role, Match::window_type, and Match::workspace.
Referenced by CFGFUN(), cmd_focus(), cmd_layout_toggle(), cmd_move_con_to_workspace(), cmd_move_con_to_workspace_name(), cmd_move_con_to_workspace_number(), cmd_scratchpad_show(), and cmd_unmark().
Check if a match data structure matches the given window.
Definition at line 89 of file match.c.
References _i3_timercmp, all_cons, Match::class, Window::class_class, Window::class_instance, con_by_window_id(), con_get_workspace(), Window::dock, Match::dock, focused, i3string_as_utf8(), Window::id, Match::id, Match::instance, LOG, Match::mark, Window::name, mark_t::name, Con::name, regex::pattern, regex_matches(), Window::role, TAILQ_FOREACH, Match::title, Window::urgent, Match::urgent, Con::window, Match::window_role, Window::window_type, Match::window_type, and Match::workspace.
Referenced by assignment_for(), cmd_criteria_match_windows(), con_for_window(), and run_assignments().

| void match_parse_property | ( | Match * | match, |
| const char * | ctype, | ||
| const char * | cvalue | ||
| ) |
Interprets a ctype=cvalue pair and adds it to the given match specification.
Definition at line 269 of file match.c.
References Match::class, Match::con_id, DLOG, ELOG, Match::error, focused, Match::id, Match::instance, Match::mark, regex_free(), regex_new(), sstrdup(), Match::title, Match::urgent, Match::window_role, Match::window_type, and Match::workspace.
Referenced by CFGFUN(), and cmd_criteria_add().

1.8.5