def __init__(self, structVersion, interf, name, input_id, output_id, opened): self.structVersion = structVersion self.interf = ffi.string(interf) self.name = ffi.string(name) self.input = input_id self.output = output_id self.opened = opened
def __init__(self, text='', errno=None): if errno is not None: self.err = ffi.string(lib.Pm_GetErrorText(errno)) else: self.err = text