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#include <string.h>
23
29static const char *hard_deprecations[] =
30 {
31 "clahe", // deprecated: March 6th 2011. Code removed: April 13th 2026.
32 "colortransfer", // deprecated: April 6th 2013. Code removed: April 13th 2026.
33 "equalizer", // deprecated: March 23rd 2011. Code removed: April 13th 2026.
34 NULL
35 };
36
44int dt_deprecated(const char *op)
45{
46 int i = 0;
47 while(hard_deprecations[i])
48 {
49 if(!strcmp(hard_deprecations[i], op))
50 return 1;
51 i++;
52 }
53 return 0;
54}
const float i
Definition colorspaces_inline_conversions.h:440
static const char * hard_deprecations[]
Modules definitively deprecated and removed from the code base, by their op name.
Definition deprecations.h:29
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:44