blob: eeabcdfc87a21cb200732455ff6b4f3482474b44 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristy1454be72011-12-19 01:52:48 +00002 Copyright 1999-2012 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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#if defined(__cplusplus) || defined(c_plusplus)
22extern "C" {
23#endif
24
25#include <time.h>
cristy4c08aed2011-07-01 19:47:50 +000026#include "MagickCore/version.h"
cristy3ed852e2009-09-05 21:47:34 +000027
cristybb503372010-05-27 20:51:26 +000028#define MagickImageCoderSignature ((size_t) \
cristy3ed852e2009-09-05 21:47:34 +000029 (((MagickLibVersion) << 8) | MAGICKCORE_QUANTUM_DEPTH))
cristybb503372010-05-27 20:51:26 +000030#define MagickImageFilterSignature ((size_t) \
cristy3ed852e2009-09-05 21:47:34 +000031 (((MagickLibVersion) << 8) | MAGICKCORE_QUANTUM_DEPTH))
32
33typedef enum
34{
35 MagickImageCoderModule,
36 MagickImageFilterModule
37} MagickModuleType;
38
39typedef struct _ModuleInfo
40{
41 char
42 *path,
43 *tag;
44
45 void
46 *handle,
47 (*unregister_module)(void);
48
cristybb503372010-05-27 20:51:26 +000049 size_t
cristy3ed852e2009-09-05 21:47:34 +000050 (*register_module)(void);
51
52 time_t
53 timestamp;
54
55 MagickBooleanType
56 stealth;
57
cristybb503372010-05-27 20:51:26 +000058 size_t
cristy3ed852e2009-09-05 21:47:34 +000059 signature;
60} ModuleInfo;
61
cristy7b8e0c32011-08-31 16:57:19 +000062typedef size_t
cristy3ed852e2009-09-05 21:47:34 +000063 ImageFilterHandler(Image **,const int,const char **,ExceptionInfo *);
64
65extern MagickExport char
cristy8a0e4432010-06-30 15:00:28 +000066 **GetModuleList(const char *,const MagickModuleType,size_t *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000067
68extern MagickExport const ModuleInfo
cristybb503372010-05-27 20:51:26 +000069 **GetModuleInfoList(const char *,size_t *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000070
71extern MagickExport MagickBooleanType
cristy3ed852e2009-09-05 21:47:34 +000072 InvokeDynamicImageFilter(const char *,Image **,const int,const char **,
73 ExceptionInfo *),
cristy7832dc22011-09-05 01:21:53 +000074 ListModuleInfo(FILE *,ExceptionInfo *);
cristy3ed852e2009-09-05 21:47:34 +000075
76extern MagickExport ModuleInfo
77 *GetModuleInfo(const char *,ExceptionInfo *);
78
79extern MagickExport void
80 DestroyModuleList(void),
cristy3ed852e2009-09-05 21:47:34 +000081 RegisterStaticModules(void),
82 UnregisterStaticModules(void);
83
84#if defined(__cplusplus) || defined(c_plusplus)
85}
86#endif
87
88#endif