From 7dc71fd6fef7a242d108d5c8cb7683aa9fd4511f Mon Sep 17 00:00:00 2001 From: Paul Elder Date: Tue, 22 Nov 2022 10:54:55 +0000 Subject: test-source: add test source class The test_source class is an implementation of the video_source class that generates a test pattern in userspace to provide video. We have some operations which are implemented as no-ops. To quiet the compiler warnings this causes, flag their arguments as unused. Reviewed-by: Kieran Bingham Signed-off-by: Paul Elder Signed-off-by: Daniel Scally Signed-off-by: Kieran Bingham --- include/uvcgadget/test-source.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/uvcgadget/test-source.h (limited to 'include/uvcgadget') diff --git a/include/uvcgadget/test-source.h b/include/uvcgadget/test-source.h new file mode 100644 index 0000000..994a128 --- /dev/null +++ b/include/uvcgadget/test-source.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Test video source + * + * Copyright (C) 2018 Paul Elder + * + * Contact: Paul Elder + */ +#ifndef __TEST_VIDEO_SOURCE_H__ +#define __TEST_VIDEO_SOURCE_H__ + +#include "video-source.h" + +struct events; +struct video_source; + +struct video_source *test_video_source_create(void); +void test_video_source_init(struct video_source *src, struct events *events); + +#endif /* __TEST_VIDEO_SOURCE_H__ */ -- cgit v1.2.3