X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fmatch.h;h=043c3a8f114e77401a5a5df2f8792b8780e4f150;hb=37e2b5822658af39be932af9184457337bf163fe;hp=dbd9bb795b95975d173de9bfcc4f5745ec3f766b;hpb=14a4e0c6f8500b981ed36b3e772c65c3ca35749d;p=i3%2Fi3 diff --git a/include/match.h b/include/match.h index dbd9bb79..043c3a8f 100644 --- a/include/match.h +++ b/include/match.h @@ -13,7 +13,9 @@ */ #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 * -1 instead of 0. @@ -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);