summaryrefslogtreecommitdiff
path: root/test/shared-fd.cpp
AgeCommit message (Expand)Author
2021-12-04libcamera: base: shared_fd: Rename fd() to get()Laurent Pinchart
2021-12-04libcamera: base: Rename FileDescriptor to SharedFDLaurent Pinchart
d='n7' href='#n7'>7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2021, Collabora Ltd.
 *
 * environment.h - Common environment for tests
 */

#pragma once

#include <libcamera/libcamera.h>

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

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

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

private:
	Environment() = default;

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