Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
variables.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2011 johannes hanika.
4 Copyright (C) 2010, 2012 Henrik Andersson.
5 Copyright (C) 2011 Daniel Andersson.
6 Copyright (C) 2012 Richard Wonka.
7 Copyright (C) 2013 Simon Spannagel.
8 Copyright (C) 2015 Jake Probst.
9 Copyright (C) 2016 Roman Lebedev.
10 Copyright (C) 2016-2017 Tobias Ellinghaus.
11 Copyright (C) 2019 Denis Dyakov.
12 Copyright (C) 2019-2020, 2022 Philippe Weyland.
13 Copyright (C) 2020 Aldric Renaudin.
14 Copyright (C) 2020 Pascal Obry.
15 Copyright (C) 2021 Mark-64.
16 Copyright (C) 2022 Martin Bařinka.
17 Copyright (C) 2024-2025 Aurélien PIERRE.
18 Copyright (C) 2024 Guillaume Stutin.
19 Copyright (C) 2025 Alynx Zhou.
20
21 darktable is free software: you can redistribute it and/or modify
22 it under the terms of the GNU General Public License as published by
23 the Free Software Foundation, either version 3 of the License, or
24 (at your option) any later version.
25
26 darktable is distributed in the hope that it will be useful,
27 but WITHOUT ANY WARRANTY; without even the implied warranty of
28 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29 GNU General Public License for more details.
30
31 You should have received a copy of the GNU General Public License
32 along with darktable. If not, see <http://www.gnu.org/licenses/>.
33*/
34
35#pragma once
36
37#include <glib.h>
38#include <stdint.h>
39
40#ifdef __cplusplus
41extern "C" {
42#endif
43
45{
47 const gchar *filename;
48
50 const gchar *jobcode;
51
53 int32_t imgid;
54
57
60
62 gboolean escape_markup;
63
65 void *img;
66
68
77
80
82char *dt_variables_expand(dt_variables_params_t *params, gchar *source, gboolean iterate);
85
94gboolean dt_get_user_pictures_dir(const gchar *homedir, gchar *picdir, size_t picdir_size);
95
96#ifdef __cplusplus
97}
98#endif
99
100// clang-format off
101// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
102// vim: shiftwidth=2 expandtab tabstop=2 cindent
103// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
104// clang-format on
dt_mipmap_buffer_dsc_flags flags
Definition mipmap_cache.c:4
Definition common/variables.c:72
int max_width
Definition common/variables.c:81
int max_height
Definition common/variables.c:82
char * homedir
Definition common/variables.c:98
GDateTime * datetime
Definition common/variables.c:110
Definition variables.h:45
int sequence
Definition variables.h:56
int32_t imgid
Definition variables.h:53
void * img
Definition variables.h:65
const gchar * filename
Definition variables.h:47
struct dt_variables_data_t * data
Definition variables.h:59
const gchar * jobcode
Definition variables.h:50
gboolean escape_markup
Definition variables.h:62
char * dt_variables_expand(dt_variables_params_t *params, gchar *source, gboolean iterate)
Definition common/variables.c:1158
void dt_variables_params_destroy(dt_variables_params_t *params)
Definition common/variables.c:1179
gboolean dt_get_user_pictures_dir(const gchar *homedir, gchar *picdir, size_t picdir_size)
Gets the path to the current OS pictures directory.
Definition common/variables.c:140
void dt_variables_set_max_width_height(dt_variables_params_t *params, int max_width, int max_height)
Definition common/variables.c:1197
void dt_variables_params_init(dt_variables_params_t **params)
Definition common/variables.c:1168
void dt_variables_set_tags_flags(dt_variables_params_t *params, uint32_t flags)
Definition common/variables.c:1208
void dt_variables_set_datetime(dt_variables_params_t *params, GDateTime *datetime)
Definition common/variables.c:1191
void dt_variables_reset_sequence(dt_variables_params_t *params)
Definition common/variables.c:1203