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 <laurent.pinchart@ideasonboard.com> Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
parent
d416f42cce
commit
c81bc473fd
2 changed files with 408 additions and 0 deletions
2
include/linux/README
Normal file
2
include/linux/README
Normal file
|
@ -0,0 +1,2 @@
|
|||
Files in this directory are imported from v4.19 of the Linux kernel. Do not
|
||||
modify them manually.
|
Loading…
Add table
Add a link
Reference in a new issue