libcamera: Standardise on C compatibility headers

Now that our usage of C compatibility header is documented, use them
consistently through the source code.

While at it, group the C and C++ include statements as defined in the
coding style, and fix a handful of #include ordering issues.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
This commit is contained in:
Laurent Pinchart
2019-10-23 17:39:39 +03:00
parent bb5f8cf495
commit ca260d2f53
18 changed files with 22 additions and 27 deletions
+1 -2
View File
@@ -6,13 +6,12 @@
*/
#include <fcntl.h>
#include <iostream>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
#include <libcamera/event_dispatcher.h>
#include <libcamera/event_notifier.h>
#include <libcamera/timer.h>
@@ -4,8 +4,8 @@
*
* media_device_print_test.cpp - Print out media devices
*/
#include <iostream>
#include <iostream>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
@@ -6,7 +6,6 @@
*/
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
+1 -1
View File
@@ -5,8 +5,8 @@
* libcamera V4L2 Subdevice format handling test
*/
#include <climits>
#include <iostream>
#include <limits.h>
#include "v4l2_subdevice.h"
#include "v4l2_subdevice_test.h"
+2 -2
View File
@@ -5,12 +5,12 @@
* libcamera V4L2 API tests
*/
#include <iostream>
#include <libcamera/buffer.h>
#include <libcamera/event_dispatcher.h>
#include <libcamera/timer.h>
#include <iostream>
#include "thread.h"
#include "v4l2_videodevice_test.h"
+1 -1
View File
@@ -5,8 +5,8 @@
* controls.cpp - V4L2 device controls handling test
*/
#include <climits>
#include <iostream>
#include <limits.h>
#include "v4l2_videodevice.h"
+1 -1
View File
@@ -5,8 +5,8 @@
* libcamera V4L2 device format handling test
*/
#include <climits>
#include <iostream>
#include <limits.h>
#include "v4l2_videodevice.h"