MagickCore 7.1.1
Convert, Edit, Or Compose Bitmap Images
Loading...
Searching...
No Matches
module.h
1/*
2 Copyright @ 2000 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License. You may
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 MagickCore module methods.
17*/
18#ifndef MAGICKCORE_MODULE_H
19#define MAGICKCORE_MODULE_H
20
21#include "MagickCore/version.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27#define MagickImageCoderSignature ((size_t) \
28 (((MagickLibInterface) << 8) | MAGICKCORE_QUANTUM_DEPTH))
29#define MagickImageFilterSignature ((size_t) \
30 (((MagickLibInterface) << 8) | MAGICKCORE_QUANTUM_DEPTH))
31
32typedef enum
33{
34 MagickImageCoderModule,
35 MagickImageFilterModule
36} MagickModuleType;
37
38typedef struct _ModuleInfo
39{
40 char
41 *path,
42 *tag;
43
44 void
45 *handle,
46 (*unregister_module)(void);
47
48 size_t
49 (*register_module)(void);
50
51 time_t
52 timestamp;
53
54 MagickBooleanType
55 stealth;
56
57 size_t
58 signature;
60
61typedef size_t
62 ImageFilterHandler(Image **,const int,const char **,ExceptionInfo *);
63
64extern MagickExport char
65 **GetModuleList(const char *,const MagickModuleType,size_t *,ExceptionInfo *);
66
67extern MagickExport const ModuleInfo
68 **GetModuleInfoList(const char *,size_t *,ExceptionInfo *);
69
70extern MagickExport MagickBooleanType
71 InvokeDynamicImageFilter(const char *,Image **,const int,const char **,
73 ListModuleInfo(FILE *,ExceptionInfo *);
74
75extern MagickExport ModuleInfo
76 *GetModuleInfo(const char *,ExceptionInfo *);
77
78extern MagickExport void
79 DestroyModuleList(void);
80
81#if defined(__cplusplus) || defined(c_plusplus)
82}
83#endif
84
85#endif