![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | DT_MODULE_VERSION 23 |
| Version of the module interface every dynamically-loaded module is checked against at load time. | |
| #define | DT_MODULE(MODVER) |
| Instantiate the version handshake every module must export. Use once, at file scope, in each module's main .c file. | |
| #define | DT_MODULE_INTROSPECTION(MODVER, PARAMSTYPE) DT_MODULE(MODVER) |
| DT_MODULE() for a module whose params struct is introspected. | |
Functions | |
| static int | dt_version () |
| The interface version the HOST expects, in the host's own build configuration. | |
| char * | dt_version_major_minor () |
The application version, truncated to <major>.<minor>. | |
| #define DT_MODULE | ( | MODVER | ) |
Instantiate the version handshake every module must export. Use once, at file scope, in each module's main .c file.
This DEFINES two functions – dt_module_dt_version() and dt_module_mod_version() – rather than declaring anything, so it is a definition site, not a header-style annotation: exactly one per shared object.
| MODVER | the module's OWN parameter version, independent of DT_MODULE_VERSION. Bump it when that module's params struct changes, and provide legacy_params() to migrate old history and presets. |
Definition at line 72 of file module_versioning.h.
| #define DT_MODULE_INTROSPECTION | ( | MODVER, | |
| PARAMSTYPE | |||
| ) | DT_MODULE(MODVER) |
DT_MODULE() for a module whose params struct is introspected.
| MODVER | as for DT_MODULE(). |
| PARAMSTYPE | the params struct type. |
PARAMSTYPE is IGNORED by the preprocessor – this expands to plain DT_MODULE(MODVER). It is read at BUILD time by the introspection generator, which parses the source text and emits the field table into a generated header. Two consequences: the argument must name a type the generator can find by parsing, and a change to that struct's fields or $DEFAULT annotations only takes effect once the generated file is regenerated. A stale generated file compiles cleanly and silently keeps the old defaults. Definition at line 95 of file module_versioning.h.
| #define DT_MODULE_VERSION 23 |
Version of the module interface every dynamically-loaded module is checked against at load time.
Definition at line 39 of file module_versioning.h.
|
inlinestatic |
The interface version the HOST expects, in the host's own build configuration.
Definition at line 101 of file module_versioning.h.
References DT_MODULE_VERSION.
| char * dt_version_major_minor | ( | ) |
The application version, truncated to <major>.<minor>.
Definition at line 314 of file darktable.c.
References darktable_package_string, L, and p.