Skip to content

Commit

Permalink
Move video_controls.h from include/nuttx/video to include/sys
Browse files Browse the repository at this point in the history
The video_controls.h is a public header file, and it is used by
videoio.h. So it should be moved to the include/sys directory.

Signed-off-by: Xiang Xiao <[email protected]>
Signed-off-by: shizhenghui <[email protected]>
  • Loading branch information
xiaoxiang781216 authored and shizhenghui committed Mar 18, 2024
1 parent f451522 commit 70fb823
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/****************************************************************************
* include/nuttx/video/video_controls.h
* include/sys/video_controls.h
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
Expand All @@ -18,8 +18,8 @@
*
****************************************************************************/

#ifndef __INCLUDE_NUTTX_VIDEO_VIDEO_CONTROLS_H
#define __INCLUDE_NUTTX_VIDEO_VIDEO_CONTROLS_H
#ifndef __INCLUDE_SYS_VIDEO_CONTROLS_H
#define __INCLUDE_SYS_VIDEO_CONTROLS_H

/****************************************************************************
* Included Files
Expand Down Expand Up @@ -250,4 +250,4 @@ enum v4l2_flash_led_mode

#define V4L2_CID_JPEG_COMPRESSION_QUALITY JPEG_CID(0) /* JPEG quality */

#endif /* __INCLUDE_NUTTX_VIDEO_VIDEO_CONTROLS_H */
#endif /* __INCLUDE_SYS_VIDEO_CONTROLS_H */
2 changes: 1 addition & 1 deletion include/sys/videoio.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#include <stdint.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/video_controls.h>

#include <nuttx/fs/ioctl.h>
#include <nuttx/video/video_controls.h>

#ifdef __cplusplus
extern "C"
Expand Down
2 changes: 1 addition & 1 deletion tools/nxstyle.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ static const char *g_white_prefix[] =
"ub32", /* Ref: include/fixedmath.h */
"lua_", /* Ref: apps/interpreters/lua/lua-5.x.x/src/lua.h */
"luaL_", /* Ref: apps/interpreters/lua/lua-5.x.x/src/lauxlib.h */
"V4L2_", /* Ref: include/sys/video_controls.h */
"Ifx", /* Ref: arch/tricore/src */

NULL
};

Expand Down

0 comments on commit 70fb823

Please sign in to comment.