From c81bc473fd24de5a46bb995510378433d23d3098 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Thu, 13 Dec 2018 15:25:06 +0100 Subject: libcamera: include: Import media.h from Linux v4.19 In order to avoid depending on system headers that may be outdated compared to the kernel version available at runtime, import the Linux kernel headers related to the APIs that libcamera requires a recent version of. This allows libcamera to use the latest kernel APIs even when compiled on older systems. The library must of course test at runtime whether those APIs are available and fallback to older APIs in order to support older kernels. Import media.h for the recent media controller APIs. The file is extracted verbatim from kernel v4.19. Reviewed-by: Laurent Pinchart Signed-off-by: Jacopo Mondi --- include/linux/README | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 include/linux/README (limited to 'include/linux/README') diff --git a/include/linux/README b/include/linux/README new file mode 100644 index 00000000..d3892a80 --- /dev/null +++ b/include/linux/README @@ -0,0 +1,2 @@ +Files in this directory are imported from v4.19 of the Linux kernel. Do not +modify them manually. -- cgit v1.2.1