Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
deprecations.h
Go to the documentation of this file.
1
/*
2
This file is part of Ansel,
3
Copyright (C) 2021 Hanno Schwalm.
4
Copyright (C) 2021 Pascal Obry.
5
Copyright (C) 2022 Martin Bařinka.
6
Copyright (C) 2026 Aurélien PIERRE.
7
8
Ansel is free software: you can redistribute it and/or modify
9
it under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
Ansel is distributed in the hope that it will be useful,
14
but WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Ansel. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
#ifndef DT_COMMON_DEPRECATIONS_H
23
#define DT_COMMON_DEPRECATIONS_H
24
25
#include <string.h>
26
32
static
const
char
*
hard_deprecations
[] =
33
{
34
"clahe"
,
// deprecated: March 6th 2011. Code removed: April 13th 2026.
35
"colortransfer"
,
// deprecated: April 6th 2013. Code removed: April 13th 2026.
36
"equalizer"
,
// deprecated: March 23rd 2011. Code removed: April 13th 2026.
37
NULL
38
};
39
47
int
dt_deprecated
(
const
char
*op)
48
{
49
int
i
= 0;
50
while
(
hard_deprecations
[
i
])
51
{
52
if
(!strcmp(
hard_deprecations
[
i
], op))
53
return
1;
54
i
++;
55
}
56
return
0;
57
}
58
59
#endif
// DT_COMMON_DEPRECATIONS_H
i
const float i
Definition
colorspaces_inline_conversions.h:441
hard_deprecations
static const char * hard_deprecations[]
Modules definitively deprecated and removed from the code base, by their op name.
Definition
deprecations.h:32
dt_deprecated
int dt_deprecated(const char *op)
Modules without a proper IOP order should throw errors and log, except if they are deprecated definit...
Definition
deprecations.h:47
src
common
deprecations.h
Generated by
1.9.8