summaryrefslogtreecommitdiff
path: root/LICENSES/GPL-2.0-only.txt
AgeCommit message (Expand)Author
2020-04-15licenses: Replace deprecated GPL-2.0 with GPL-2.0-onlyLaurent Pinchart
'n19' href='#n19'>19 20 21 22
/* SPDX-License-Identifier: GPL-2.0-or-later */
/*
 * Copyright (C) 2021, Collabora Ltd.
 *
 * environment.cpp - Common environment for tests
 */

#include "environment.h"

using namespace libcamera;

Environment *Environment::get()
{
	static Environment instance;
	return &instance;
}

void Environment::setup(CameraManager *cm, std::string cameraId)
{
	cm_ = cm;
	cameraId_ = cameraId;
}