Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
history_merge.h
Go to the documentation of this file.
1/*
2 This file is part of Ansel,
3 Copyright (C) 2026 Aurélien PIERRE.
4
5 Ansel is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9
10 Ansel is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with Ansel. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include <glib.h>
22#include <inttypes.h>
23
24#ifdef __cplusplus
25extern "C"
26{
27#endif
28
29 struct dt_develop_t;
30 struct dt_iop_module_t;
31
33 {
34 DT_HISTORY_MERGE_APPEND = 0, // source applied after destination (source wins conflicts)
35 DT_HISTORY_MERGE_APPSTART = 1, // source applied early in destination history (destination wins conflicts)
36 DT_HISTORY_MERGE_REPLACE = 2 // entirely replace history and modules order
38
56 int dt_history_merge(struct dt_develop_t *dev_dest, struct dt_develop_t *dev_src, const int32_t dest_imgid,
57 const GList *mod_list, const gboolean merge_iop_order,
58 const dt_history_merge_strategy_t strategy, const gboolean force_new_modules);
59
60#ifdef __cplusplus
61}
62#endif
63
64// clang-format off
65// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
66// vim: shiftwidth=2 expandtab tabstop=2 cindent
67// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
68// clang-format on
dt_history_merge_strategy_t
Definition history_merge.h:33
@ DT_HISTORY_MERGE_REPLACE
Definition history_merge.h:36
@ DT_HISTORY_MERGE_APPSTART
Definition history_merge.h:35
@ DT_HISTORY_MERGE_APPEND
Definition history_merge.h:34
int dt_history_merge(struct dt_develop_t *dev_dest, struct dt_develop_t *dev_src, const int32_t dest_imgid, const GList *mod_list, const gboolean merge_iop_order, const dt_history_merge_strategy_t strategy, const gboolean force_new_modules)
Merge a list of modules into a destination image, solving pipeline topologies for proper insertion of...
Definition history_merge.c:1334
Definition develop.h:151
Definition imageop.h:217