Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
common/module.h
Go to the documentation of this file.
1/*
2 This file is part of darktable,
3 Copyright (C) 2017 Tobias Ellinghaus.
4 Copyright (C) 2026 Aurélien PIERRE.
5
6 darktable is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or
9 (at your option) any later version.
10
11 darktable is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with darktable. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef DT_COMMON_MODULE_H
21#define DT_COMMON_MODULE_H
22
23#include <glib.h>
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
34#define DT_MODULE_MANIFEST_NAME "modules.manifest"
35
50gchar **dt_module_read_manifest(const char *subdir, char *moduledir);
51
57GList *dt_module_load_modules(const char *subdir, size_t module_size,
58 int (*load_module_so)(void *module, const char *libname, const char *plugin_name),
59 void (*init_module)(void *module),
60 gint (*sort_modules)(gconstpointer a, gconstpointer b));
61
62#ifdef __cplusplus
63}
64#endif
65
66#endif // DT_COMMON_MODULE_H
67
68// clang-format off
69// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
70// vim: shiftwidth=2 expandtab tabstop=2 cindent
71// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
72// clang-format on
GList * dt_module_load_modules(const char *subdir, size_t module_size, int(*load_module_so)(void *module, const char *libname, const char *plugin_name), void(*init_module)(void *module), gint(*sort_modules)(gconstpointer a, gconstpointer b))
Load every module the given directory's manifest lists.
Definition module.c:106
gchar ** dt_module_read_manifest(const char *subdir, char *moduledir)
Read a module directory's manifest and return the module base names it lists.
Definition module.c:56