backend: allow iterating impls

This commit is contained in:
Vaxry 2024-06-26 22:35:14 +02:00
parent f6d4c5e6a3
commit 25ee42673f
2 changed files with 7 additions and 0 deletions

View file

@ -103,6 +103,9 @@ namespace Aquamarine {
/* Get the render formats the primary backend supports */ /* Get the render formats the primary backend supports */
std::vector<SDRMFormat> getPrimaryRenderFormats(); std::vector<SDRMFormat> getPrimaryRenderFormats();
/* get a vector of the backend implementations available */
const std::vector<Hyprutils::Memory::CSharedPointer<IBackendImplementation>>& getImplementations();
struct { struct {
Hyprutils::Signal::CSignal newOutput; Hyprutils::Signal::CSignal newOutput;
Hyprutils::Signal::CSignal newPointer; Hyprutils::Signal::CSignal newPointer;

View file

@ -247,3 +247,7 @@ std::vector<SDRMFormat> Aquamarine::CBackend::getPrimaryRenderFormats() {
return {}; return {};
} }
const std::vector<Hyprutils::Memory::CSharedPointer<IBackendImplementation>>& Aquamarine::CBackend::getImplementations() {
return implementations;
}