Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
collection_query.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 Aurelien 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_COLLECTION_QUERY_H
24#define DT_DATABASE_COLLECTION_QUERY_H
25
26#include <glib.h>
27#include <inttypes.h>
28
29#include "common/collection.h"
30
31#ifdef __cplusplus
32extern "C" {
33#endif
34
57typedef int (*dt_collection_query_order_resolver_t)(const char *text);
59
63void dt_collection_query_set_order_names(const char *const *names, const int count);
64
71 const dt_collection_rule_t *rules, const int n_rules,
72 const uint32_t tagid);
73
77
80
82uint32_t dt_collection_query_count(void);
83
89
91typedef struct dt_iop_name_row_t
92{
93 const char *operation;
94 const char *name;
96
104void dt_collection_query_set_iop_names(const dt_iop_name_row_t *rows, const size_t count);
105
108
110int32_t dt_collection_query_get_nth(const int nth);
111
114int dt_collection_query_image_offset(const int32_t imgid);
115
118void dt_collection_query_push(void);
119void dt_collection_query_pop(void);
120
123
127GList *dt_collection_query_get_group_members(const int32_t group_id, const int32_t exclude_imgid);
128
142
145
147void dt_collection_query_get_makermodels(const gchar *filter, GList **sanitized, GList **exif);
148
152 const char *text, gboolean recursive);
153
157
161
162#ifdef __cplusplus
163}
164#endif
165
166#endif // DT_DATABASE_COLLECTION_QUERY_H
167
168// clang-format off
169// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
170// vim: shiftwidth=2 expandtab tabstop=2 cindent
171// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
172// clang-format on
dt_collection_properties_t
Definition collection.h:120
uint64_t dt_collection_query_get_generation(void)
void dt_collection_query_set_order_names(const char *const *names, const int count)
void dt_collection_query_pop(void)
int dt_collection_query_set_rules(const dt_collection_params_t *params, const dt_collection_rule_t *rules, const int n_rules, const uint32_t tagid)
GList * dt_collection_query_get_group_members(const int32_t group_id, const int32_t exclude_imgid)
void dt_collection_query_set_order_resolver(dt_collection_query_order_resolver_t fn)
GList * dt_collection_query_get_property_values(const dt_collection_values_request_t *req)
void dt_collection_query_cleanup(void)
void dt_collection_query_set_iop_names(const dt_iop_name_row_t *rows, const size_t count)
Fill memory.darktable_iop_names, the table the module-name rules join against.
void dt_collection_query_push(void)
void dt_collection_query_get_makermodels(const gchar *filter, GList **sanitized, GList **exif)
int dt_collection_query_recompose(void)
void dt_collection_query_refresh_memory_table(void)
GList * dt_collection_query_get_images_for_rule(const dt_collection_properties_t property, const char *text, gboolean recursive)
uint32_t dt_collection_query_count(void)
int32_t dt_collection_query_find_neighbour(GList *imgids)
int32_t dt_collection_query_get_nth(const int nth)
int(* dt_collection_query_order_resolver_t)(const char *text)
GList * dt_collection_query_get_images(const uint32_t limit)
int dt_collection_query_image_offset(const int32_t imgid)
void dt_collection_query_restrict_to_selection(void)
unsigned __int64 uint64_t
Definition strptime.c:75
dt_collection_properties_t property
One module's identity, for the rule that searches by module name.
const char * operation