Lines Matching refs:patterns
1021 static int graph_one_property(sd_bus *bus, const UnitInfo *u, const char* prop, const char *color, char* patterns[], char* from_patterns[], char* to_patterns[]) {
1031 match_patterns = strv_fnmatch(patterns, u->id, 0);
1045 match_patterns2 = strv_fnmatch(patterns, *unit, 0);
1052 if (!strv_isempty(patterns) && !match_patterns && !match_patterns2)
1061 static int graph_one(sd_bus *bus, const UnitInfo *u, char *patterns[], char *from_patterns[], char *to_patterns[]) {
1068 r = graph_one_property(bus, u, "After", "green", patterns, from_patterns, to_patterns);
1074 r = graph_one_property(bus, u, "Requires", "black", patterns, from_patterns, to_patterns);
1077 r = graph_one_property(bus, u, "Requisite", "darkblue", patterns, from_patterns, to_patterns);
1080 r = graph_one_property(bus, u, "Wants", "grey66", patterns, from_patterns, to_patterns);
1083 r = graph_one_property(bus, u, "Conflicts", "red", patterns, from_patterns, to_patterns);
1091 static int expand_patterns(sd_bus *bus, char **patterns, char ***ret) {
1096 STRV_FOREACH(pattern, patterns) {
1133 static int dot(sd_bus *bus, char* patterns[]) {
1142 r = expand_patterns(bus, patterns, &expanded_patterns);