diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2014-11-18 22:52:06 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2016-05-24 03:03:01 +0300 |
commit | c9601d407a7ca943e53fa49a5a5f69b868c6ed11 (patch) | |
tree | 248d13a9e817ba3c73fc50e2d655b4cd12013e10 /plugins/dummy/xlnx-dummy.c | |
parent | 3653f5e4d877176a30035d9123ac65daf46ba787 (diff) |
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'plugins/dummy/xlnx-dummy.c')
-rw-r--r-- | plugins/dummy/xlnx-dummy.c | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/plugins/dummy/xlnx-dummy.c b/plugins/dummy/xlnx-dummy.c new file mode 100644 index 0000000..a43fc25 --- /dev/null +++ b/plugins/dummy/xlnx-dummy.c @@ -0,0 +1,42 @@ +/* + * Xilinx Video Library - Dummy plugin that supports no device + * + * Copyright (C) 2016 Ideas on board Oy + * + * Contact: Laurent Pinchart <laurent.pinchart@ideasonboard.com> + * + * This library is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation; either version 2.1 of the License, or (at + * your option) any later version. + * + * This library is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + */ + +#include <stdlib.h> + +#include <xlnx-plugin.h> + +static const struct xlnx_video_plugin_info dummy_plugin_info = { + .name = "Dummy plugin", + .type = XLNX_VIDEO_PLUGIN_TYPE_SOFTWARE, +}; + +static const struct xlnx_video_plugin_info *dummy_info(void) +{ + return &dummy_plugin_info; +} + +static struct xlnx_video_component *dummy_scan(struct xlnx_video *xv, + struct media_device *mdev) +{ + return NULL; +} + +EXPORT_XLNX_VIDEO_PLUGIN(dummy) = { + .info = dummy_info, + .scan = dummy_scan, +}; |