summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 02:32:03 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2018-06-09 02:32:03 +0300
commit34abad8f7a46b4d93fb1f8db958782285fb8938f (patch)
treef9c0a16053ee16976c932acd9edfb98c31b2d95c
parenteed880da1cf4af845700e1caf68d4d689391d4d3 (diff)
stream: Make the uvc_stream structure opaque
The internals of the uvc_stream structure don't need to be accessed outside stream.c. Move the structure definition from stream.h to stream.c to make it opaque. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--stream.c14
-rw-r--r--stream.h17
2 files changed, 15 insertions, 16 deletions
diff --git a/stream.c b/stream.c
index 2b95ee8..6fb5a42 100644
--- a/stream.c
+++ b/stream.c
@@ -26,6 +26,20 @@
#include "uvc.h"
#include "v4l2.h"
+/*
+ * struct uvc_stream - Representation of a UVC stream
+ * @cap: V4L2 capture device
+ * @uvc: UVC V4L2 output device
+ * @events: struct events containing event information
+ */
+struct uvc_stream
+{
+ struct v4l2_device *cap;
+ struct uvc_device *uvc;
+
+ struct events *events;
+};
+
/* ---------------------------------------------------------------------------
* Video streaming
*/
diff --git a/stream.h b/stream.h
index 4dbe344..c9694e7 100644
--- a/stream.h
+++ b/stream.h
@@ -21,23 +21,8 @@
#define __STREAM_H__
struct events;
-struct uvc_device;
struct uvc_function_config;
-struct v4l2_device;
-
-/*
- * struct uvc_stream - Representation of a UVC stream
- * @cap: V4L2 capture device
- * @uvc: UVC V4L2 output device
- * @events: struct events containing event information
- */
-struct uvc_stream
-{
- struct v4l2_device *cap;
- struct uvc_device *uvc;
-
- struct events *events;
-};
+struct uvc_stream;
/*
* uvc_stream_new - Create a new UVC stream