def _Cfunction(name, flags, errcheck, *types):
    if hasattr(dll, name):
        p = ctypes.CFUNCTYPE(*types)
        f = p((name, dll), flags)
        if errcheck is not None:
            f.errcheck = errcheck
        _Cfunctions[name] = f
        return f
    raise NameError('no function %r' % (name,))
(INTERNAL) New ctypes function binding.
dataset/ETHPy150Open disqus/playa/playa/lib/vlc.py/_Cfunction