X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fmatch.h;h=4ff8c485bbed18fd45a27e290b7a40368f382882;hb=b8505bb611c5f536af60153c6440949158797d0b;hp=09975cac20fe644162930e08ea25742e1d12644f;hpb=34f6f185bfe9476801e6ef45114197becefb0b21;p=i3%2Fi3 diff --git a/include/match.h b/include/match.h index 09975cac..4ff8c485 100644 --- a/include/match.h +++ b/include/match.h @@ -2,7 +2,7 @@ * vim:ts=4:sw=4:expandtab * * i3 - an improved dynamic tiling window manager - * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) + * © 2009 Michael Stapelberg and contributors (see also: LICENSE) * * A "match" is a data structure which acts like a mask or expression to match * certain windows or not. For example, when using commands, you can specify a @@ -13,6 +13,8 @@ */ #pragma once +#include + /* * Initializes the Match data structure. This function is necessary because the * members representing boolean values (like dock) need to be initialized with @@ -45,3 +47,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);