• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2   Copyright 1999-2016 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     http://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 {
34   MagickImageCoderModule,
35   MagickImageFilterModule
36 } MagickModuleType;
37 
38 typedef 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;
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 
70 extern MagickExport MagickBooleanType
71   InvokeDynamicImageFilter(const char *,Image **,const int,const char **,
72     ExceptionInfo *),
73   ListModuleInfo(FILE *,ExceptionInfo *);
74 
75 extern MagickExport ModuleInfo
76   *GetModuleInfo(const char *,ExceptionInfo *);
77 
78 extern MagickExport void
79   DestroyModuleList(void),
80   RegisterStaticModules(void),
81   UnregisterStaticModules(void);
82 
83 #if defined(__cplusplus) || defined(c_plusplus)
84 }
85 #endif
86 
87 #endif
88