From 3e5b2d028c743f8e6f22aae74471a2f1be25d120 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sat, 9 Jun 2018 02:45:00 +0300 Subject: uvc: Add API to set function configuration Add a uvc_set_config() function to set the UVC function configuration instead of accessing the internals of the uvc_device in stream.c. Signed-off-by: Laurent Pinchart --- uvc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'uvc.c') diff --git a/uvc.c b/uvc.c index 7131a50..0a276a4 100644 --- a/uvc.c +++ b/uvc.c @@ -341,3 +341,8 @@ void uvc_events_init(struct uvc_device *dev, struct events *events) events_watch_fd(events, dev->vdev->fd, EVENT_EXCEPTION, uvc_events_process, dev); } + +void uvc_set_config(struct uvc_device *dev, struct uvc_function_config *fc) +{ + dev->fc = fc; +} -- cgit v1.2.3