X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fmatch.h;h=043c3a8f114e77401a5a5df2f8792b8780e4f150;hb=e4d2b385529847b926a716731be4a8c22ed79007;hp=e1d259040dfddbd10546bec6469e8df7a7543ee3;hpb=13147978c50b4efa5b4eb0b65d8175aa596a76fe;p=i3%2Fi3 diff --git a/include/match.h b/include/match.h index e1d25904..043c3a8f 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 @@ -11,10 +11,11 @@ * match_matches_window() to find the windows affected by this command. * */ -#ifndef I3_MATCH_H -#define I3_MATCH_H +#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. @@ -47,4 +48,8 @@ bool match_matches_window(Match *match, i3Window *window); */ void match_free(Match *match); -#endif +/** + * 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);