// SPDX-License-Identifier: GPL-3.0-or-later // Copyright 2019 Juan Palacios #include "gpucontrolprovider.h" #include std::vector> const & GPUControlProvider::gpuControlProviders() const { return gpuControlProviders_(); } std::vector> & GPUControlProvider::gpuControlProviders_() { static std::vector> providers; return providers; } bool GPUControlProvider::registerProvider( std::unique_ptr &&provider) { gpuControlProviders_().emplace_back(std::move(provider)); return true; }