summaryrefslogtreecommitdiff
path: root/include/libcamera/camera.h
blob: 9a7579d61fa331eef02b74e3a4ac70f4bf797ea3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* 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__ */