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>
This commit is contained in:
Laurent Pinchart 2019-04-18 18:39:57 +03:00
parent 0af0fb9ca9
commit 1ba441cae6
23 changed files with 45 additions and 22 deletions

View file

@ -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