Ansel
0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dynload.h
Go to the documentation of this file.
1
/*
2
This file is part of darktable,
3
Copyright (C) 2011-2020 darktable developers.
4
5
darktable 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
darktable is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
You should have received a copy of the GNU General Public License
16
along with darktable. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
19
#pragma once
20
21
#ifdef HAVE_OPENCL
22
23
#ifdef HAVE_CONFIG_H
24
#include "config.h"
25
#endif
26
27
#ifndef __APPLE__
28
#include <glib.h>
29
#include <gmodule.h>
30
#endif
31
32
typedef
struct
dt_gmodule_t
33
{
34
#ifndef __APPLE__
35
GModule *gmodule;
36
#else
37
void
*gmodule;
38
#endif
39
char
*library;
40
} dt_gmodule_t;
41
42
43
/* check if gmodules is supported on this platform */
44
int
dt_gmodule_supported(
void
);
45
46
/* dynamically load library */
47
dt_gmodule_t *dt_gmodule_open(
const
char
*);
48
49
/* get pointer to function */
50
int
dt_gmodule_symbol(dt_gmodule_t *,
const
char
*,
void
(**)(
void
));
51
52
#endif
// HAVE_OPENCL
53
54
// clang-format off
55
// modelines: These editor modelines have been set for all relevant files by tools/update_modelines.py
56
// vim: shiftwidth=2 expandtab tabstop=2 cindent
57
// kate: tab-indents: off; indent-width 2; replace-tabs on; indent-mode cstyle; remove-trailing-spaces modified;
58
// clang-format on
59
src
common
dynload.h
Generated by
1.9.8