blob: 3199ee021bde844e201d05ea34601853dec6a619 (
plain) (
blame)
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
32
33
|
/*
* backends.hh - Horizon Image Creation backend table
* image, the image processing utilities for
* Project Horizon
*
* Copyright (c) 2020 Adélie Linux and contributors. All rights reserved.
* This code is licensed under the AGPL 3.0 license, as noted in the
* LICENSE-code file in the root directory of this repository.
*
* SPDX-License-Identifier: AGPL-3.0-only
*/
#pragma once
#include <functional>
#include <string>
#include <vector>
namespace Horizon {
namespace Image {
class BasicBackend;
struct BackendDescriptor {
std::string type_code;
std::string description;
std::function<BasicBackend *(std::string, std::string)> creation_fn;
};
extern std::vector<BackendDescriptor> known_backends;
}
}
|