Пример #1
0
 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
Пример #2
0
 def __init__(self, text='', errno=None):
     if errno is not None:
         self.err = ffi.string(lib.Pm_GetErrorText(errno))
     else:
         self.err = text