]> git.sur5r.net Git - i3/i3/blob - include/match.h
Merge branch 'master' into next
[i3/i3] / include / match.h
1 #ifndef _MATCH_H
2 #define _MATCH_H
3
4 /*
5  * Initializes the Match data structure. This function is necessary because the
6  * members representing boolean values (like dock) need to be initialized with
7  * -1 instead of 0.
8  *
9  */
10 void match_init(Match *match);
11
12 /**
13  * Check if a match is empty. This is necessary while parsing commands to see
14  * whether the user specified a match at all.
15  *
16  */
17 bool match_is_empty(Match *match);
18
19 /**
20  * Copies the data of a match from src to dest.
21  *
22  */
23 void match_copy(Match *dest, Match *src);
24
25 /**
26  * Check if a match data structure matches the given window.
27  *
28  */
29 bool match_matches_window(Match *match, i3Window *window);
30
31 /**
32  * Frees the given match. It must not be used afterwards!
33  *
34  */
35 void match_free(Match *match);
36
37 #endif