Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
metadata/notify.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
38#ifndef DT_METADATA_NOTIFY_H
39#define DT_METADATA_NOTIFY_H
40
41#include <glib.h>
42
44
56
58typedef void (*dt_metadata_notify_handler_t)(const dt_metadata_notice_t kind, const char *message);
59
63
66void dt_metadata_notify(const dt_metadata_notice_t kind, const char *format, ...) G_GNUC_PRINTF(2, 3);
67
79
82
94
96
97#endif // DT_METADATA_NOTIFY_H
98
99// clang-format off
100// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
101// vim: shiftwidth=2 expandtab tabstop=2 cindent
102// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
103// clang-format on
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
static const dt_adaptation_t kind
void dt_metadata_geotags_changed(const GList *imgs)
dt_metadata_notice_t
Which affordance the message belongs in. The two are not interchangeable, and the module knows which ...
@ DT_METADATA_NOTICE_TOAST
@ DT_METADATA_NOTICE_MESSAGE
void(* dt_metadata_notify_handler_t)(const dt_metadata_notice_t kind, const char *message)
Receives one formatted, already-translated message.
void dt_metadata_set_geotags_changed_handler(dt_metadata_geotags_changed_handler_t handler)
void dt_metadata_set_tags_changed_handler(dt_metadata_tags_changed_handler_t handler)
void(* dt_metadata_geotags_changed_handler_t)(const GList *imgs)
The geo-location of these images changed. Whoever is showing a map, or the geotag panel,...
void dt_metadata_set_notify_handler(dt_metadata_notify_handler_t handler)
Install the handler, or NULL to remove it. Messages raised with none installed are dropped.
void dt_metadata_tags_changed(void)
Raise it. Internal to the module.
void dt_metadata_notify(const dt_metadata_notice_t kind, const char *format,...) G_GNUC_PRINTF(2
Raise one message. Internal to the module: the format string is translated at the call site,...
void typedef void(* dt_metadata_tags_changed_handler_t)(void)
The tag vocabulary changed: one was created, renamed, deleted, attached or detached....