| 54 | CALLBACK = ctypes.CFUNCTYPE(None, ctypes.POINTER(CProcessSession), ctypes.POINTER(CProcessContext)) |
| 55 | |
| 56 | class Processor(object): |
| 57 | def __init__(self, cprocessor, minifi): |
| 58 | super(Processor, self).__init__() |
| 59 | self._proc = cprocessor |
| 60 | self._minifi = minifi |
| 61 | |
| 62 | def set_property(self, name, value): |
| 63 | return self._minifi.set_property( self._proc, name.encode("UTF-8"), value.encode("UTF-8")) == 0 |
| 64 | |
| 65 | class PyProcessor(object): |
| 66 | def __init__(self, minifi, flow): |