aboutsummaryrefslogtreecommitdiffstats
path: root/src/v4l.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 06:16:31 -0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-09-04 06:59:24 -0300
commitab49eda5720583b0470a329434554e97c735e696 (patch)
tree01dd96abb868c597d9c16023c7feefaacda9ef84 /src/v4l.h
parent39b0f779f454e7c4c58cc68352998e7f5ed7ab99 (diff)
Rename camera struct typedef from cam to cam_t
Depending on the gcc options, that causes a fatal warning: v4l.c:36:37: error: declaration of ‘cam’ shadows a global declaration [-Werror=shadow] static void insert_resolution(cam * cam, int x, int y) ~~~~~~^~~ In file included from v4l.c:6: v4l.h:99:3: note: shadowed declaration is here } cam; ^~~ Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'src/v4l.h')
-rw-r--r--src/v4l.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/v4l.h b/src/v4l.h
index 89260c6..82c3a1c 100644
--- a/src/v4l.h
+++ b/src/v4l.h
@@ -92,18 +92,18 @@ typedef struct camera {
void *start;
size_t length;
} *buffers;
-} cam;
-
-void camera_cap (cam *);
-void print_cam (cam *);
-void try_set_win_info(cam * cam, int *x, int *y);
-void set_win_info (cam * cam);
-void get_pic_info (cam *);
-void get_win_info (cam *);
-void get_supported_resolutions(cam * cam);
-void start_streaming(cam * cam);
-void capture_buffers(cam * cam, unsigned char *outbuf, int len);
-void stop_streaming(cam * cam);
+} cam_t;
+
+void camera_cap (cam_t *);
+void print_cam (cam_t *);
+void try_set_win_info(cam_t *cam, int *x, int *y);
+void set_win_info (cam_t *cam);
+void get_pic_info (cam_t *);
+void get_win_info (cam_t *);
+void get_supported_resolutions(cam_t *cam);
+void start_streaming(cam_t *cam);
+void capture_buffers(cam_t *cam, unsigned char *outbuf, int len);
+void stop_streaming(cam_t *cam);
#endif /* !CAMORAMA_V4L_H */

Privacy Policy