diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-18 18:39:57 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-19 13:38:14 +0300 |
commit | 1ba441cae6cf2355f6986b066b696111bec29bd7 (patch) | |
tree | 74084de32c4868809ae6ff7fa1f9814cd152f729 /src/libcamera/v4l2_device.cpp | |
parent | 0af0fb9ca9eae903cc533a05e2282ec36cc3ce55 (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/v4l2_device.cpp')
-rw-r--r-- | src/libcamera/v4l2_device.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libcamera/v4l2_device.cpp b/src/libcamera/v4l2_device.cpp index ccc5fbfc..8d8c7887 100644 --- a/src/libcamera/v4l2_device.cpp +++ b/src/libcamera/v4l2_device.cpp @@ -5,6 +5,8 @@ * v4l2_device.cpp - V4L2 Device */ +#include "v4l2_device.h" + #include <fcntl.h> #include <iomanip> #include <sstream> @@ -21,7 +23,6 @@ #include "log.h" #include "media_device.h" #include "media_object.h" -#include "v4l2_device.h" /** * \file v4l2_device.h |