summaryrefslogtreecommitdiff
path: root/src/lc-compliance/environment.h
blob: 1c7d9a558dc2b1742ebd191cc09218229e4df845 (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: GPL-2.0-or-later */
/*
 * Copyright (C) 2021, Collabora Ltd.
 *
 * environment.h - Common environment for tests
 */
#ifndef __LC_COMPLIANCE_ENVIRONMENT_H__
#define __LC_COMPLIANCE_ENVIRONMENT_H__

#include <libcamera/libcamera.h>

using namespace libcamera;

class Environment
{
public:
	static Environment *get();

	void setup(CameraManager *cm, std::string cameraId);

	const std::string &cameraId() const { return cameraId_; }
	CameraManager *cm() const { return cm_; }

private:
	Environment() = default;

	std::string cameraId_;
	CameraManager *cm_;
};

#endif /* __LC_COMPLIANCE_ENVIRONMENT_H__ */