module.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2019 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore module methods.
00017 */
00018 #ifndef MAGICKCORE_MODULE_H
00019 #define MAGICKCORE_MODULE_H
00020 
00021 #include <time.h>
00022 #include "magick/version.h"
00023 
00024 #if defined(__cplusplus) || defined(c_plusplus)
00025 extern "C" {
00026 #endif
00027 
00028 #define MagickImageCoderSignature  ((size_t) \
00029   (((MagickLibInterface) << 8) | MAGICKCORE_QUANTUM_DEPTH))
00030 #define MagickImageFilterSignature  ((size_t) \
00031   (((MagickLibInterface) << 8) | MAGICKCORE_QUANTUM_DEPTH))
00032 
00033 typedef enum
00034 {
00035   MagickImageCoderModule,
00036   MagickImageFilterModule
00037 } MagickModuleType;
00038 
00039 typedef struct _ModuleInfo
00040 {
00041   char
00042     *path,
00043     *tag;
00044 
00045   void
00046     *handle,
00047     (*unregister_module)(void);
00048 
00049   size_t
00050     (*register_module)(void);
00051 
00052   time_t
00053     timestamp;
00054 
00055   MagickBooleanType
00056     stealth;
00057 
00058   struct _ModuleInfo
00059     *previous,
00060     *next;  /* deprecated, use GetModuleInfoList() */
00061 
00062   size_t
00063     signature;
00064 } ModuleInfo;
00065 
00066 typedef size_t
00067   ImageFilterHandler(Image **,const int,const char **,ExceptionInfo *);
00068 
00069 extern MagickExport char
00070   **GetModuleList(const char *,const MagickModuleType,size_t *,ExceptionInfo *);
00071 
00072 extern MagickExport const ModuleInfo
00073   **GetModuleInfoList(const char *,size_t *,ExceptionInfo *);
00074 
00075 extern MagickExport MagickBooleanType
00076   InvokeDynamicImageFilter(const char *,Image **,const int,const char **,
00077     ExceptionInfo *),
00078   ListModuleInfo(FILE *,ExceptionInfo *),
00079   ModuleComponentGenesis(void),
00080   OpenModule(const char *,ExceptionInfo *),
00081   OpenModules(ExceptionInfo *);
00082 
00083 extern MagickExport ModuleInfo
00084   *GetModuleInfo(const char *,ExceptionInfo *);
00085 
00086 extern MagickExport void
00087   DestroyModuleList(void),
00088   ModuleComponentTerminus(void);
00089 
00090 #if defined(__cplusplus) || defined(c_plusplus)
00091 }
00092 #endif
00093 
00094 #endif

Generated on 29 Oct 2019 for MagickCore by  doxygen 1.6.1