diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-06-25 02:06:55 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-06-25 16:11:10 +0100 |
commit | f9ee72430735f749fb7d8fd4a8fe01ca88dc1f88 (patch) | |
tree | 3de5662a1ad584c4e69449fe8b00cdfedae8399c /include/libcamera/internal | |
parent | b304bc013ef8022131ef0a146f20c6bad7ac45d5 (diff) |
libcamera/base: Move event_notifier to base
Move the event notifier, and associated header updates.
Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include/libcamera/internal')
-rw-r--r-- | include/libcamera/internal/event_notifier.h | 48 | ||||
-rw-r--r-- | include/libcamera/internal/meson.build | 1 |
2 files changed, 0 insertions, 49 deletions
diff --git a/include/libcamera/internal/event_notifier.h b/include/libcamera/internal/event_notifier.h deleted file mode 100644 index 8a6419f2..00000000 --- a/include/libcamera/internal/event_notifier.h +++ /dev/null @@ -1,48 +0,0 @@ -/* SPDX-License-Identifier: LGPL-2.1-or-later */ -/* - * Copyright (C) 2019, Google Inc. - * - * event_notifier.h - File descriptor event notifier - */ -#ifndef __LIBCAMERA_INTERNAL_EVENT_NOTIFIER_H__ -#define __LIBCAMERA_INTERNAL_EVENT_NOTIFIER_H__ - -#include <libcamera/base/object.h> -#include <libcamera/base/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_INTERNAL_EVENT_NOTIFIER_H__ */ diff --git a/include/libcamera/internal/meson.build b/include/libcamera/internal/meson.build index 60e9775b..16a76ebd 100644 --- a/include/libcamera/internal/meson.build +++ b/include/libcamera/internal/meson.build @@ -22,7 +22,6 @@ libcamera_internal_headers = files([ 'device_enumerator.h', 'device_enumerator_sysfs.h', 'device_enumerator_udev.h', - 'event_notifier.h', 'formats.h', 'ipa_manager.h', 'ipa_module.h', |