diff options
author | Eric Curtin <ecurtin@redhat.com> | 2022-05-20 20:01:03 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-05-23 11:23:59 +0300 |
commit | 48e991476d73da73d8ef145074eb1ffd4cad6c16 (patch) | |
tree | efe2b8769c29897234f6521cad1b174ded10e099 /src/cam/event_loop.cpp | |
parent | 2ebce32cf68189f790dc5580a2f6da90814009b1 (diff) |
cam: event_loop: Rename addEvent to addFdEvent
With the addition of addTimerEvent, the naming of addEvent is specific
to the management of an fd, while the naming is generic.
Update the name to make the naming scheme consistent in specifying the
type of event to be added.
Signed-off-by: Eric Curtin <ecurtin@redhat.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Tested-by: Jacopo Mondi <jacopo@jmondi.org>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/cam/event_loop.cpp')
-rw-r--r-- | src/cam/event_loop.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cam/event_loop.cpp b/src/cam/event_loop.cpp index e25784c0..2e3ce995 100644 --- a/src/cam/event_loop.cpp +++ b/src/cam/event_loop.cpp @@ -60,8 +60,8 @@ void EventLoop::callLater(const std::function<void()> &func) event_base_once(base_, -1, EV_TIMEOUT, dispatchCallback, this, nullptr); } -void EventLoop::addEvent(int fd, EventType type, - const std::function<void()> &callback) +void EventLoop::addFdEvent(int fd, EventType type, + const std::function<void()> &callback) { std::unique_ptr<Event> event = std::make_unique<Event>(callback); short events = (type & Read ? EV_READ : 0) |