summaryrefslogtreecommitdiff
path: root/test/camera/configuration_set.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-01 17:56:59 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-03-06 18:10:45 +0200
commit44ff5a18e42ad26a1621edf00f309c86304f13ac (patch)
treecd836cfc9980f2f211ba7aca78751727ac963c0b /test/camera/configuration_set.cpp
parent7f2da874cdacf2870c7a55cd1bdf34a01b01787d (diff)
libcamera: control_serializer: Use explicit ControlTypeNone case
Replace the default case with an explicit ControlTypeNone case in ControlSerializer::load() to catch omissions when adding new control types. A return statement needs to be added to the end of the function to avoid gcc incorrectly reporting that some exit paths don't contain a return statement. The compiler will still warn that not all cases are handled when adding a new control type. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'test/camera/configuration_set.cpp')
0 files changed, 0 insertions, 0 deletions
or event notifier */ #ifndef __LIBCAMERA_EVENT_NOTIFIER_H__ #define __LIBCAMERA_EVENT_NOTIFIER_H__ #include <libcamera/object.h> #include <libcamera/signal.h> namespace libcamera { class Message; class EventNotifier : public Object { public: enum Type { Read, Write, Exception, }; EventNotifier(int fd, Type type, Object *parent = nullptr); virtual ~EventNotifier(); Type type() const { return type_; } int fd() const { return fd_; } bool enabled() const { return enabled_; } void setEnabled(bool enable); Signal<EventNotifier *> activated; protected: void message(Message *msg) override; private: int fd_; Type type_; bool enabled_; }; } /* namespace libcamera */ #endif /* __LIBCAMERA_EVENT_NOTIFIER_H__ */