Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
film_repository.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-2011 Henrik Andersson.
5 Copyright (C) 2011-2016 Tobias Ellinghaus.
6 Copyright (C) 2012, 2019-2022 Pascal Obry.
7 Copyright (C) 2025-2026 Aurélien PIERRE.
8
9 darktable is free software: you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
12 (at your option) any later version.
13
14 darktable is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with darktable. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#ifndef DT_DATABASE_FILM_REPOSITORY_H
24#define DT_DATABASE_FILM_REPOSITORY_H
25
26#include <glib.h>
27#include <inttypes.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
45int32_t dt_film_repository_find_by_folder(const char *folder);
46
48char *dt_film_repository_get_folder(const int32_t id);
49
51gboolean dt_film_repository_insert(const char *folder);
52
54gboolean dt_film_repository_touch_access(const int32_t id);
55
57gboolean dt_film_repository_set_folder(const int32_t id, const char *folder);
58
63gboolean dt_film_repository_delete(const int32_t id);
64
66gboolean dt_film_repository_has_images(const int32_t id);
67
70
72typedef void (*dt_film_repository_row_cb)(void *user_data, const int32_t id, const char *folder);
73
76
79
82 void *user_data);
83
84/* ---------------------------------------------------------------------------------------------
85 * memory.film_folder -- does this roll's folder still exist?
86 * ------------------------------------------------------------------------------------------ */
87
90
92void dt_film_repository_folder_status_set(const int32_t id, const gboolean present);
93
94#ifdef __cplusplus
95}
96#endif
97
98#endif // DT_DATABASE_FILM_REPOSITORY_H
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
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
char * dt_film_repository_get_folder(const int32_t id)
gboolean dt_film_repository_insert(const char *folder)
void dt_film_repository_foreach_empty(dt_film_repository_row_cb cb, void *user_data)
gboolean dt_film_repository_has_images(const int32_t id)
void dt_film_repository_foreach_under(const char *path, dt_film_repository_row_cb cb, void *user_data)
void(* dt_film_repository_row_cb)(void *user_data, const int32_t id, const char *folder)
int32_t dt_film_repository_find_by_folder(const char *folder)
gboolean dt_film_repository_touch_access(const int32_t id)
void dt_film_repository_foreach(dt_film_repository_row_cb cb, void *user_data)
gboolean dt_film_repository_set_folder(const int32_t id, const char *folder)
gboolean dt_film_repository_delete(const int32_t id)
void dt_film_repository_folder_status_set(const int32_t id, const gboolean present)
GList * dt_film_repository_get_image_ids(const int32_t filmid)
void dt_film_repository_folder_status_clear(void)