aboutsummaryrefslogtreecommitdiff
path: root/tests/GenerateSipBindings/rules_SipTest.py
blob: e0cd2b9e3ff17806c0f298294d8e9df2ce6fdde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

import os, sys

import rules_engine
sys.path.append(os.path.dirname(os.path.dirname(rules_engine.__file__)))
import Qt5Ruleset

def local_function_rules():
    return [
        ["MyObject", "fwdDecl", ".*", ".*", ".*", rules_engine.function_discard],
        ["MyObject", "fwdDeclRef", ".*", ".*", ".*", rules_engine.function_discard],
    ]

class RuleSet(Qt5Ruleset.RuleSet):
    def __init__(self):
        Qt5Ruleset.RuleSet.__init__(self)
        self._fn_db = rules_engine.FunctionRuleDb(lambda: local_function_rules() + Qt5Ruleset.function_rules())