cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
Cristy | 7ce65e7 | 2015-12-12 18:03:16 -0500 | [diff] [blame] | 2 | Copyright 1999-2016 ImageMagick Studio LLC, a non-profit organization |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 | |
cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 21 | #include "MagickCore/version.h" |
| 22 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 23 | #if defined(__cplusplus) || defined(c_plusplus) |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 27 | #define MagickImageCoderSignature ((size_t) \ |
cristy | ed2c720 | 2014-09-13 13:00:37 +0000 | [diff] [blame] | 28 | (((MagickLibInterface) << 8) | MAGICKCORE_QUANTUM_DEPTH)) |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 29 | #define MagickImageFilterSignature ((size_t) \ |
cristy | ed2c720 | 2014-09-13 13:00:37 +0000 | [diff] [blame] | 30 | (((MagickLibInterface) << 8) | MAGICKCORE_QUANTUM_DEPTH)) |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 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 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 48 | size_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 49 | (*register_module)(void); |
| 50 | |
| 51 | time_t |
| 52 | timestamp; |
| 53 | |
| 54 | MagickBooleanType |
| 55 | stealth; |
| 56 | |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 57 | size_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 58 | signature; |
| 59 | } ModuleInfo; |
| 60 | |
cristy | 7b8e0c3 | 2011-08-31 16:57:19 +0000 | [diff] [blame] | 61 | typedef size_t |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 62 | ImageFilterHandler(Image **,const int,const char **,ExceptionInfo *); |
| 63 | |
| 64 | extern MagickExport char |
cristy | 8a0e443 | 2010-06-30 15:00:28 +0000 | [diff] [blame] | 65 | **GetModuleList(const char *,const MagickModuleType,size_t *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 66 | |
| 67 | extern MagickExport const ModuleInfo |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 68 | **GetModuleInfoList(const char *,size_t *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 69 | |
| 70 | extern MagickExport MagickBooleanType |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 71 | InvokeDynamicImageFilter(const char *,Image **,const int,const char **, |
| 72 | ExceptionInfo *), |
cristy | 7832dc2 | 2011-09-05 01:21:53 +0000 | [diff] [blame] | 73 | ListModuleInfo(FILE *,ExceptionInfo *); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 74 | |
| 75 | extern MagickExport ModuleInfo |
| 76 | *GetModuleInfo(const char *,ExceptionInfo *); |
| 77 | |
| 78 | extern MagickExport void |
| 79 | DestroyModuleList(void), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 80 | RegisterStaticModules(void), |
| 81 | UnregisterStaticModules(void); |
| 82 | |
| 83 | #if defined(__cplusplus) || defined(c_plusplus) |
| 84 | } |
| 85 | #endif |
| 86 | |
| 87 | #endif |