summaryrefslogtreecommitdiff
path: root/include/libcamera/internal/event_dispatcher_poll.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-05-26 06:03:18 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-06-02 19:26:22 +0300
commite239ded90bb820b8dfbe0725b1d5f965a9212299 (patch)
tree1b2f012ba5897368d4bc266585dc0a473301e870 /include/libcamera/internal/event_dispatcher_poll.h
parent16c5f44c690a1d7d31b2e150d6e916cc6a999119 (diff)
libcamera: Declare functions before variables in class definitions
The preferred coding style in libcamera is to declare private functions before private variables in class definitions. This rule isn't followed by some of the internal classes. Update them accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Umang Jain <email@uajain.com>
Diffstat (limited to 'include/libcamera/internal/event_dispatcher_poll.h')
-rw-r--r--include/libcamera/internal/event_dispatcher_poll.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/libcamera/internal/event_dispatcher_poll.h b/include/libcamera/internal/event_dispatcher_poll.h
index 1f073861..3c909966 100644
--- a/include/libcamera/internal/event_dispatcher_poll.h
+++ b/include/libcamera/internal/event_dispatcher_poll.h
@@ -41,16 +41,16 @@ private:
EventNotifier *notifiers[3];
};
+ int poll(std::vector<struct pollfd> *pollfds);
+ void processInterrupt(const struct pollfd &pfd);
+ void processNotifiers(const std::vector<struct pollfd> &pollfds);
+ void processTimers();
+
std::map<int, EventNotifierSetPoll> notifiers_;
std::list<Timer *> timers_;
int eventfd_;
bool processingEvents_;
-
- int poll(std::vector<struct pollfd> *pollfds);
- void processInterrupt(const struct pollfd &pfd);
- void processNotifiers(const std::vector<struct pollfd> &pollfds);
- void processTimers();
};
} /* namespace libcamera */