Loading...
Searching...
No Matches
event_dispatcher.h
Go to the documentation of this file.
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2019, Google Inc.
*
* Event dispatcher
*/
#pragma once
#include <libcamera/base/private.h>
namespace libcamera {
class EventNotifier;
class Timer;
class EventDispatcher
{
public:
virtual ~EventDispatcher();
virtual void registerEventNotifier(EventNotifier *notifier) = 0;
virtual void unregisterEventNotifier(EventNotifier *notifier) = 0;
virtual void registerTimer(Timer *timer) = 0;
virtual void unregisterTimer(Timer *timer) = 0;
virtual void processEvents() = 0;
virtual void interrupt() = 0;
};
} /* namespace libcamera */
libcamera::EventDispatcher
Interface to manage the libcamera events and timers.
Definition event_dispatcher.h:18
libcamera::EventDispatcher::processEvents
virtual void processEvents()=0
Wait for and process pending events.
libcamera::EventDispatcher::registerTimer
virtual void registerTimer(Timer *timer)=0
Register a timer.
libcamera::EventDispatcher::unregisterTimer
virtual void unregisterTimer(Timer *timer)=0
Unregister a timer.
libcamera::EventDispatcher::interrupt
virtual void interrupt()=0
Interrupt any running processEvents() call as soon as possible.
libcamera::EventDispatcher::registerEventNotifier
virtual void registerEventNotifier(EventNotifier *notifier)=0
Register an event notifier.
libcamera::EventDispatcher::unregisterEventNotifier
virtual void unregisterEventNotifier(EventNotifier *notifier)=0
Unregister an event notifier.
libcamera::EventNotifier
Notify of activity on a file descriptor.
Definition event_notifier.h:20
libcamera::Timer
Single-shot timer interface.
Definition timer.h:22
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17