Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_database_prompt_context_t Struct Reference

#include <database.h>

+ Collaboration diagram for dt_database_prompt_context_t:

Data Fields

dt_database_prompt_t prompt
 
const char * dbfilename
 
const char * quick_check
 
gboolean snapshot_available
 
guint64 reclaimable_bytes
 
gboolean at_close
 
gboolean ask_on_startup
 
gboolean ask_on_close
 

Detailed Description

What the handler is told. Every field is a fact about the database; none of it is user-facing text. Fields not relevant to prompt are zero.

Definition at line 223 of file database.h.

Field Documentation

◆ ask_on_close

gboolean dt_database_prompt_context_t::ask_on_close

MAINTENANCE: declining now means being asked again when Ansel closes – today's close if at_close is FALSE, the next one if it is TRUE.

Definition at line 241 of file database.h.

Referenced by _prompt_maintenance().

◆ ask_on_startup

gboolean dt_database_prompt_context_t::ask_on_startup

MAINTENANCE: declining now means being asked again at the next startup.

Definition at line 238 of file database.h.

Referenced by _prompt_maintenance().

◆ at_close

gboolean dt_database_prompt_context_t::at_close

MAINTENANCE: this check is happening as Ansel closes, rather than as it starts.

Definition at line 236 of file database.h.

Referenced by _prompt_maintenance().

◆ dbfilename

const char* dt_database_prompt_context_t::dbfilename

The database file the question is about.

Definition at line 227 of file database.h.

Referenced by _ask_user(), _database_prompt(), and _prompt_upgrade().

◆ prompt

dt_database_prompt_t dt_database_prompt_context_t::prompt

◆ quick_check

const char* dt_database_prompt_context_t::quick_check

CORRUPTED: sqlite's quick_check output, or NULL. Not markup – the handler escapes it, since only the handler knows the format.

Definition at line 230 of file database.h.

Referenced by _database_prompt().

◆ reclaimable_bytes

guint64 dt_database_prompt_context_t::reclaimable_bytes

MAINTENANCE: how many bytes a VACUUM would reclaim.

Definition at line 234 of file database.h.

Referenced by _prompt_maintenance().

◆ snapshot_available

gboolean dt_database_prompt_context_t::snapshot_available

CORRUPTED: TRUE when a snapshot exists, i.e. RESTORE is worth offering.

Definition at line 232 of file database.h.

Referenced by _database_prompt().


The documentation for this struct was generated from the following file: