Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
updates.h
Go to the documentation of this file.
1/*
2 This file is part of the Ansel project.
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#ifndef DT_COMMON_UPDATES_H
20#define DT_COMMON_UPDATES_H
21
22#include <glib.h>
23
46typedef void (*dt_updates_notify_fn)(const char *version, const char *url);
47
50void dt_updates_init(const gboolean have_gui, dt_updates_notify_fn notify);
51
53void dt_updates_shutdown(void);
54
57const char *dt_updates_get_download_url(void);
58
60const char *dt_updates_get_available_version(void);
61
65const char *dt_updates_runtime_format(void);
66
67#endif // DT_COMMON_UPDATES_H
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
const char * dt_updates_get_available_version(void)
Definition updates.c:68
void dt_updates_init(const gboolean have_gui, dt_updates_notify_fn notify)
Definition updates.c:199
const char * dt_updates_runtime_format(void)
Definition updates.c:44
void dt_updates_shutdown(void)
Definition updates.c:223
void(* dt_updates_notify_fn)(const char *version, const char *url)
Definition updates.h:46
const char * dt_updates_get_download_url(void)
Definition updates.c:63