Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
folder_survey.h
Go to the documentation of this file.
1/*
2 This file is part of the Ansel project.
3 Copyright (C) 2026 Guillaume STUTIN.
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
11#pragma once
12
13#include <glib.h>
14
19#define DT_FOLDER_SURVEY_STYLES_CONF_KEY "studio_capture/styles"
20#define DT_FOLDER_SURVEY_STYLES_SEPARATOR "\x1f"
21
29
39
45
50
60gboolean dt_folder_survey_can_start(const char **message);
61
66
75
81
87
99
107
int dt_folder_survey_start()
Validate the persisted configuration and start monitoring.
void dt_folder_survey_cleanup()
Release folder survey state after control workers have stopped.
gboolean dt_folder_survey_session_was_active()
TRUE when the previous application session quit while monitoring.
char * dt_folder_survey_destination_preview()
Build the expanded destination path of a sample file from the current configuration,...
gboolean dt_folder_survey_is_active()
TRUE while the periodic folder scan is running.
void dt_folder_survey_stop()
Stop new scans before control workers begin shutting down.
void dt_folder_survey_absorb_new_files()
Record every file currently in the surveyed folder as already handled, so restarting the survey will ...
gboolean dt_folder_survey_can_start(const char **message)
Check, without any side effect, whether the persisted configuration has everything dt_folder_survey_s...
void dt_folder_survey_init()
Initialize the folder survey state from the persisted configuration.
void dt_folder_survey_halt()
User-requested stop: end monitoring and clear the persisted session marker so the next application st...
gboolean dt_folder_survey_propose_resume()
Propose to resume an interrupted studio session at application start.
int dt_folder_survey_count_new_files()
Count files in the surveyed folder that are unknown to the persisted baseline, i.e....