MagickCore  7.0.7
Convert, Edit, Or Compose Bitmap Images
module.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2018 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.
6  obtain a copy of the License at
7 
8  https://www.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)
24 extern "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 
32 typedef enum
33 {
37 
38 typedef struct _ModuleInfo
39 {
40  char
41  *path,
42  *tag;
43 
44  void
46  (*unregister_module)(void);
47 
48  size_t
49  (*register_module)(void);
50 
51  time_t
53 
56 
57  size_t
59 } ModuleInfo;
60 
61 typedef size_t
62  ImageFilterHandler(Image **,const int,const char **,ExceptionInfo *);
63 
64 extern MagickExport char
65  **GetModuleList(const char *,const MagickModuleType,size_t *,ExceptionInfo *);
66 
67 extern MagickExport const ModuleInfo
68  **GetModuleInfoList(const char *,size_t *,ExceptionInfo *);
69 
71  InvokeDynamicImageFilter(const char *,Image **,const int,const char **,
72  ExceptionInfo *),
73  ListModuleInfo(FILE *,ExceptionInfo *);
74 
76  *GetModuleInfo(const char *,ExceptionInfo *);
77 
78 extern MagickExport void
79  DestroyModuleList(void),
82 
83 #if defined(__cplusplus) || defined(c_plusplus)
84 }
85 #endif
86 
87 #endif
MagickExport void RegisterStaticModules(void)
size_t(* register_module)(void)
Definition: module.h:49
MagickExport char ** GetModuleList(const char *, const MagickModuleType, size_t *, ExceptionInfo *)
size_t ImageFilterHandler(Image **, const int, const char **, ExceptionInfo *)
Definition: module.h:62
Definition: image.h:151
MagickExport const ModuleInfo ** GetModuleInfoList(const char *, size_t *, ExceptionInfo *)
MagickExport void DestroyModuleList(void)
MagickBooleanType
Definition: magick-type.h:156
size_t signature
Definition: module.h:58
MagickExport void UnregisterStaticModules(void)
Definition: static.c:359
MagickExport ModuleInfo * GetModuleInfo(const char *, ExceptionInfo *)
struct _ModuleInfo ModuleInfo
MagickExport MagickBooleanType ListModuleInfo(FILE *, ExceptionInfo *)
MagickModuleType
Definition: module.h:32
MagickBooleanType stealth
Definition: module.h:55
void * handle
Definition: module.h:45
char * path
Definition: module.h:41
char * tag
Definition: module.h:41
#define MagickExport
MagickExport MagickBooleanType InvokeDynamicImageFilter(const char *, Image **, const int, const char **, ExceptionInfo *)
time_t timestamp
Definition: module.h:52