Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
legacy_presets.c File Reference
#include "database/legacy_presets.h"
#include <glib.h>
#include <sqlite3.h>
+ Include dependency graph for legacy_presets.c:

Go to the source code of this file.

Functions

void dt_legacy_presets_create (sqlite3 *handle)
 

Variables

static const char * sql_lines []
 

Function Documentation

◆ dt_legacy_presets_create()

void dt_legacy_presets_create ( sqlite3 *  handle)

(Re)create main.legacy_presets and fill it with the presets darktable shipped before the auto-apply cleanup. Drops and re-inserts every time it is called.

Takes the connection rather than the database object because it runs from inside dt_database_open(), while the schema is still being built and before the module has published anything – there is nothing to look up yet.

Definition at line 1134 of file legacy_presets.c.

References i, L, and sql_lines.

Referenced by _database_init().

Variable Documentation

◆ sql_lines

const char* sql_lines[]
static

Definition at line 35 of file legacy_presets.c.

Referenced by dt_legacy_presets_create().