Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
pipeline_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
41#ifndef DT_DEVELOP_PIPELINE_NOTIFY_H
42#define DT_DEVELOP_PIPELINE_NOTIFY_H
43
44#include <glib.h>
45
46G_BEGIN_DECLS
47
50typedef void (*dt_pipeline_message_handler_t)(const char *message);
51
55
58void dt_pipeline_message(const char *format, ...) G_GNUC_PRINTF(1, 2);
59
66typedef void (*dt_pipeline_busy_handler_t)(const char *message_or_null);
68
70void dt_pipeline_busy_printf(const char *format, ...) G_GNUC_PRINTF(1, 2);
71
73void dt_pipeline_busy_clear(void);
74
75G_END_DECLS
76
77#endif // DT_DEVELOP_PIPELINE_NOTIFY_H
78
79// clang-format off
80// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
81// vim: shiftwidth=2 expandtab tabstop=2 cindent
82// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
83// clang-format on
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
void dt_pipeline_set_message_handler(dt_pipeline_message_handler_t handler)
Install the handler, or NULL to remove it. Messages raised with none installed are dropped.
void void dt_pipeline_busy_clear(void)
Processing finished; clear the banner.
void dt_pipeline_set_busy_handler(dt_pipeline_busy_handler_t handler)
G_BEGIN_DECLS typedef void(* dt_pipeline_message_handler_t)(const char *message)
Receives one formatted, already-translated message for the user. Was dt_control_log() from pipeline c...
void dt_pipeline_busy_printf(const char *format,...) G_GNUC_PRINTF(1
Publish what the pipe is chewing on ("Processing module `%s' ...").
void dt_pipeline_message(const char *format,...) G_GNUC_PRINTF(1
Tell the user something went sideways in the pipe. Internal to the pipeline: the format string is tra...
void typedef void(* dt_pipeline_busy_handler_t)(const char *message_or_null)
Receives the busy-banner text, or NULL when processing finished and the banner should clear....
static void G_GNUC_PRINTF(1, 2) dt_widget_log_discard(const char *format