121 if(keyid == 0 && !
g_strcmp0(
value,
"same-creator")) c->shared_key_count = (
int)count;
122 if(keyid == 2) c->split_key_rows++;
134 { .
imgid = a, .keyid = 0, .value =
"same-creator" },
135 { .imgid = b, .keyid = 0, .value =
"same-creator" },
136 { .imgid = a, .keyid = 2, .value =
"title-a" },
137 { .imgid = b, .keyid = 2, .value =
"title-b" },
typedef void((*dt_cache_allocate_t)(void *userdata, dt_cache_entry_t *entry))
void dt_selection_repository_select(const int32_t imgid)
Add imgid to the selection. Selecting an already-selected image does nothing.
void dt_selection_repository_clear(void)
Empty the selection.
void dt_selection_repository_deselect(const int32_t imgid)
Remove imgid from the selection.
GList * dt_selection_repository_get_all(void)
Every selected image id, GINT_TO_POINTER, ASCENDING. Free with g_list_free().
int32_t dt_selection_repository_get_lowest_id(void)
The lowest selected image id, or UNKNOWN_IMAGE when nothing is selected.
static const dt_aligned_pixel_simd_t value
const float uint32_t state[4]
gboolean dt_tag_repository_attach(const guint tagid, const int32_t imgid)
Attach tagid to imgid, at the end of the tag order.
void dt_tag_repository_get_agreement(GList *imgids, gboolean *same_tags, gboolean *same_categories)
Do all of imgids carry exactly the same tags? The same categories?
void dt_tag_repository_set_flags(const guint tagid, const gint flags)
Replace the flags word of tagid.
guint dt_tag_repository_insert(const char *name)
Insert a tag named name and return its new id, or 0 on failure.
Shared fixture for the src/database repository tests.
static int testdb_setup(void **state)
static int32_t testdb_make_film(const char *folder)
static int testdb_teardown(void **state)
static int32_t testdb_make_image(const int32_t film_id, const char *filename)