summaryrefslogtreecommitdiff
path: root/src/libcamera/include
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-18 18:39:57 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-04-19 13:38:14 +0300
commit1ba441cae6cf2355f6986b066b696111bec29bd7 (patch)
tree74084de32c4868809ae6ff7fa1f9814cd152f729 /src/libcamera/include
parent0af0fb9ca9eae903cc533a05e2282ec36cc3ce55 (diff)
libcamera: Include header related to source file first
Include the header file corresponding to the source file in the very first position. This complies with the Google C++ coding style guideliens, and helps ensuring that the headers are self-contained. Three bugs are already caught by this change (missing includes or forward declarations) in device_enumerator.h, event_dispatcher_poll.h and pipeline_handler.h. Fix them. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/include')
-rw-r--r--src/libcamera/include/device_enumerator.h3
-rw-r--r--src/libcamera/include/event_dispatcher_poll.h2
-rw-r--r--src/libcamera/include/pipeline_handler.h1
3 files changed, 6 insertions, 0 deletions
diff --git a/src/libcamera/include/device_enumerator.h b/src/libcamera/include/device_enumerator.h
index 22ed8ded..28018618 100644
--- a/src/libcamera/include/device_enumerator.h
+++ b/src/libcamera/include/device_enumerator.h
@@ -14,6 +14,9 @@
#include <linux/media.h>
+struct udev;
+struct udev_monitor;
+
namespace libcamera {
class EventNotifier;
diff --git a/src/libcamera/include/event_dispatcher_poll.h b/src/libcamera/include/event_dispatcher_poll.h
index 1c0066c2..14c3eea1 100644
--- a/src/libcamera/include/event_dispatcher_poll.h
+++ b/src/libcamera/include/event_dispatcher_poll.h
@@ -13,6 +13,8 @@
#include <map>
#include <vector>
+struct pollfd;
+
namespace libcamera {
class EventNotifier;
diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h
index a0862ebf..c3f7d4c2 100644
--- a/src/libcamera/include/pipeline_handler.h
+++ b/src/libcamera/include/pipeline_handler.h
@@ -10,6 +10,7 @@
#include <list>
#include <map>
#include <memory>
+#include <set>
#include <string>
#include <vector>