@@ -161,7 +161,7 @@ class KMSRenderer:
sel = selectors.DefaultSelector()
sel.register(self.card.fd, selectors.EVENT_READ, self.readdrm)
- sel.register(self.cm.efd, selectors.EVENT_READ, self.readcam)
+ sel.register(self.cm.event_fd, selectors.EVENT_READ, self.readcam)
sel.register(sys.stdin, selectors.EVENT_READ, self.readkey)
print('Press enter to exit')
@@ -23,7 +23,7 @@ class NullRenderer:
self.running = True
sel = selectors.DefaultSelector()
- sel.register(self.cm.efd, selectors.EVENT_READ, self.readcam)
+ sel.register(self.cm.event_fd, selectors.EVENT_READ, self.readcam)
sel.register(sys.stdin, selectors.EVENT_READ, self.readkey)
print('Press enter to exit')
@@ -193,7 +193,7 @@ class QtRenderer:
self.windows = windows
def run(self):
- camnotif = QtCore.QSocketNotifier(self.cm.efd, QtCore.QSocketNotifier.Read)
+ camnotif = QtCore.QSocketNotifier(self.cm.event_fd, QtCore.QSocketNotifier.Read)
camnotif.activated.connect(lambda _: self.readcam())
keynotif = QtCore.QSocketNotifier(sys.stdin.fileno(), QtCore.QSocketNotifier.Read)
@@ -142,7 +142,7 @@ class QtRenderer:
self.window = window
def run(self):
- camnotif = QtCore.QSocketNotifier(self.state.cm.efd, QtCore.QSocketNotifier.Read)
+ camnotif = QtCore.QSocketNotifier(self.state.cm.event_fd, QtCore.QSocketNotifier.Read)
camnotif.activated.connect(lambda _: self.readcam())
keynotif = QtCore.QSocketNotifier(sys.stdin.fileno(), QtCore.QSocketNotifier.Read)
@@ -205,7 +205,7 @@ PYBIND11_MODULE(_libcamera, m)
.def_property_readonly("version", &CameraManager::version)
- .def_property_readonly("efd", [](CameraManager &) {
+ .def_property_readonly("event_fd", [](CameraManager &) {
return gEventfd;
})
@@ -269,7 +269,7 @@ class SimpleCaptureMethods(CameraTesterBase):
gc.collect()
sel = selectors.DefaultSelector()
- sel.register(cm.efd, selectors.EVENT_READ)
+ sel.register(cm.event_fd, selectors.EVENT_READ)
reqs = []