Refactor parsing of matches to avoid code duplication.

This commit is contained in:
Ingo Bürk
2015-09-27 09:42:26 +02:00
parent 2248085c5c
commit b744c5e6c6
4 changed files with 117 additions and 204 deletions

View File

@ -45,3 +45,9 @@ bool match_matches_window(Match *match, i3Window *window);
*
*/
void match_free(Match *match);
/**
* Interprets a ctype=cvalue pair and adds it to the given match specification.
*
*/
void match_parse_property(Match *match, const char *ctype, const char *cvalue);