summaryrefslogtreecommitdiff
path: root/src/v4l2/v4l2_camera.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-01-04 06:48:10 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-01-07 22:29:47 +0200
commitb4415f1c9863a2fda42e1882ed4857de9d9366b1 (patch)
tree714cea9ba50ee4bf2b8a5b9f6d5c561f3955c4cb /src/v4l2/v4l2_camera.h
parent94f62f6b590857e9bcee379aec8e818625aebdf8 (diff)
v4l2: Use Object::invokeMethod() return value
Now that Object::invokeMethod() supports returning a value, use it and drop the return value method argument. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/v4l2/v4l2_camera.h')
-rw-r--r--src/v4l2/v4l2_camera.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/v4l2/v4l2_camera.h b/src/v4l2/v4l2_camera.h
index d24dbca6..5a889efd 100644
--- a/src/v4l2/v4l2_camera.h
+++ b/src/v4l2/v4l2_camera.h
@@ -48,23 +48,23 @@ public:
V4L2Camera(std::shared_ptr<Camera> camera);
~V4L2Camera();
- void open(int *ret);
+ int open();
void close();
void getStreamConfig(StreamConfiguration *streamConfig);
std::vector<FrameMetadata> completedBuffers();
- void mmap(void **ret, unsigned int index);
+ void *mmap(unsigned int index);
- void configure(int *ret, StreamConfiguration *streamConfigOut,
- const Size &size, PixelFormat pixelformat,
- unsigned int bufferCount);
+ int configure(StreamConfiguration *streamConfigOut,
+ const Size &size, PixelFormat pixelformat,
+ unsigned int bufferCount);
- void allocBuffers(int *ret, unsigned int count);
+ int allocBuffers(unsigned int count);
void freeBuffers();
- void streamOn(int *ret);
- void streamOff(int *ret);
+ int streamOn();
+ int streamOff();
- void qbuf(int *ret, unsigned int index);
+ int qbuf(unsigned int index);
Semaphore bufferSema_;