Lines Matching defs:condition
272 static int rule_condition_eval(struct hotplug2_event_t *event, struct condition_t *condition) {
277 event_value = get_hotplug2_value_by_key(event, condition->key);
279 switch (condition->type) {
285 rv = strcmp(condition->value, event_value) ? EVAL_NOT_MATCH : EVAL_MATCH;
286 if (condition->type == COND_NMATCH_CMP)
296 regcomp(&preg, condition->value, REG_EXTENDED | REG_NOSUB);
299 if (condition->type == COND_NMATCH_RE)
307 if (!strcasecmp(condition->value, "set"))
310 if (!strcasecmp(condition->value, "unset"))
574 ERROR("rules_get_value / status / condtype", "Malformed rule - unknown condition type.");