38 if(handler == NULL)
return;
41 va_start(args, format);
42 gchar *message = g_strdup_vprintf(format, args);
60 if(handler == NULL)
return;
63 va_start(args, format);
64 gchar *message = g_strdup_vprintf(format, args);
77 if(handler) handler(NULL);
#define dt_free(ptr)
g_free() ptr and set it to NULL, skipping both if it is already NULL.
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 dt_pipeline_set_busy_handler(dt_pipeline_busy_handler_t handler)
void dt_pipeline_message(const char *format,...)
void dt_pipeline_busy_printf(const char *format,...)
static dt_pipeline_busy_handler_t _busy_handler
void dt_pipeline_busy_clear(void)
Processing finished; clear the banner.
static dt_pipeline_message_handler_t _message_handler
Everything the pixel pipeline says to whoever is watching: messages for the user, and the busy banner...
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 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....