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>
This commit is contained in:
Laurent Pinchart 2020-01-04 06:48:10 +02:00
parent 94f62f6b59
commit b4415f1c98
3 changed files with 82 additions and 96 deletions

View file

@ -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_;