summaryrefslogtreecommitdiff
path: root/test/list-cameras.cpp
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo@jmondi.org>2019-03-21 16:34:30 +0100
committerJacopo Mondi <jacopo@jmondi.org>2019-04-03 10:11:17 +0200
commit05a8608f1f20db721ef1cd9210f70a167eb1f54c (patch)
tree73c91ce7b37615f8de1df1cb1c335abc132173cc /test/list-cameras.cpp
parent88646061e0729863116c9e2d7bfd461b47e450a4 (diff)
libcamera: geometry: Add 0-initialized SizeRange constructor
Add constructor to SizeRange which initialize all the size range fields to 0. While at there make the in-line constructor declarations respect the coding style by moving braces to a new line. Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/list-cameras.cpp')
0 files changed, 0 insertions, 0 deletions
pan> EventDispatcherPoll final : public EventDispatcher { public: EventDispatcherPoll(); ~EventDispatcherPoll(); void registerEventNotifier(EventNotifier *notifier); void unregisterEventNotifier(EventNotifier *notifier); void registerTimer(Timer *timer); void unregisterTimer(Timer *timer); void processEvents(); void interrupt(); private: struct EventNotifierSetPoll { short events() const; EventNotifier *notifiers[3]; }; std::map<int, EventNotifierSetPoll> notifiers_; std::list<Timer *> timers_; int eventfd_; 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 */ #endif /* __LIBCAMERA_EVENT_DISPATCHER_POLL_H__ */