Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
common/film.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2009-2020 darktable developers.
4
5 darktable 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 darktable 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 darktable. If not, see <http://www.gnu.org/licenses/>.
17*/
18
19#pragma once
20
21#include "common/darktable.h"
22#include "common/dtpthread.h"
23
24#include <glib.h>
25#include <inttypes.h>
26
32typedef struct dt_film_t
33{
34 int32_t id;
35 char dirname[512];
36 dt_pthread_mutex_t images_mutex;
37 GDir *dir;
39 int32_t ref;
41
42void dt_film_init(dt_film_t *film);
43void dt_film_cleanup(dt_film_t *film);
45int dt_film_open(const int32_t id);
46
49int dt_film_import(const char *dirname);
51void dt_film_set_query(const int32_t id);
53int32_t dt_film_get_id(const char *folder);
55void dt_film_remove(const int id);
57gboolean dt_film_is_empty(const int id);
59int dt_film_new(dt_film_t *film, const char *directory);
63GList *dt_film_get_image_ids(const int filmid);
64// initialize film folder status
66// clang-format off
67// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
68// vim: shiftwidth=2 expandtab tabstop=2 cindent
69// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
70// clang-format on
void dt_film_init(dt_film_t *film)
Definition common/film.c:49
gboolean dt_film_is_empty(const int id)
Definition common/film.c:360
int dt_film_new(dt_film_t *film, const char *directory)
Definition common/film.c:140
void dt_film_remove_empty()
Definition common/film.c:319
void dt_film_remove(const int id)
Definition common/film.c:375
int32_t dt_film_get_id(const char *folder)
Definition common/film.c:90
void dt_film_set_query(const int32_t id)
Definition common/film.c:69
GList * dt_film_get_image_ids(const int filmid)
Definition common/film.c:432
int dt_film_open(const int32_t id)
Definition common/film.c:107
void dt_film_set_folder_status()
Definition common/film.c:449
int dt_film_import(const char *dirname)
Definition common/film.c:215
void dt_film_cleanup(dt_film_t *film)
Definition common/film.c:59
Definition common/film.h:33
int32_t num_images
Definition common/film.h:38
dt_pthread_mutex_t images_mutex
Definition common/film.h:36
int32_t id
Definition common/film.h:34
GDir * dir
Definition common/film.h:37
int32_t ref
Definition common/film.h:39
int32_t last_loaded
Definition common/film.h:38
char dirname[512]
Definition common/film.h:35