libcamera/include/libcamera/camera.h
Niklas Söderlund 8c10082a9e libcamera: Add Camera class
Provide a Camera class which represents our main interface to handling
camera devices. This is a rework of Kieran's initial proposal and
Laurent's documentation of the file changed to fit the device
enumerators needs.

Signed-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
2018-12-31 00:57:58 +01:00

31 lines
489 B
C++

/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2018, Google Inc.
*
* camera.h - Camera object interface
*/
#ifndef __LIBCAMERA_CAMERA_H__
#define __LIBCAMERA_CAMERA_H__
#include <string>
namespace libcamera {
class Camera
{
public:
Camera(const std::string &name);
const std::string &name() const;
void get();
void put();
private:
virtual ~Camera() { };
int ref_;
std::string name_;
};
} /* namespace libcamera */
#endif /* __LIBCAMERA_CAMERA_H__ */