Lines Matching defs:rules
1520 "evaluate(rules) -> int\n\n"
1521 "Evaluate a set of HBAC rules.\n"
1522 "rules is a sequence of HbacRule objects. The returned value describes\n"
1534 free_hbac_rule_list(struct hbac_rule **rules)
1538 if (!rules) return;
1540 for(i=0; rules[i]; i++) {
1541 free_hbac_rule(rules[i]);
1543 PyMem_Free(rules);
1555 struct hbac_rule **rules = NULL;
1568 "The parameter rules must be a sequence\n");
1573 rules = PyMem_New(struct hbac_rule *, num_rules+1);
1574 if (!rules) {
1589 rules[i] = HbacRule_to_native((HbacRuleObject *) py_rule);
1590 if (!rules[i]) {
1599 rules[num_rules] = NULL;
1613 eres = hbac_evaluate(rules, hbac_req, &info);
1634 free_hbac_rule_list(rules);
1641 free_hbac_rule_list(rules);