module.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2009 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.
00006   obtain a copy of the License at
00007   
00008     http://www.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 #if defined(__cplusplus) || defined(c_plusplus)
00022 extern "C" {
00023 #endif
00024 
00025 #include <time.h>
00026 #include "magick/version.h"
00027 
00028 #define MagickImageCoderSignature  ((unsigned long) \
00029   (((MagickLibVersion) << 8) | MAGICKCORE_QUANTUM_DEPTH))
00030 #define MagickImageFilterSignature  ((unsigned long) \
00031   (((MagickLibVersion) << 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   unsigned long
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   unsigned long
00063     signature;
00064 } ModuleInfo;
00065 
00066 typedef ModuleExport unsigned long
00067   ImageFilterHandler(Image **,const int,const char **,ExceptionInfo *);
00068 
00069 extern MagickExport char
00070   **GetModuleList(const char *,unsigned long *,ExceptionInfo *);
00071 
00072 extern MagickExport const ModuleInfo
00073   **GetModuleInfoList(const char *,unsigned long *,ExceptionInfo *);
00074 
00075 extern MagickExport MagickBooleanType
00076   InitializeModuleList(ExceptionInfo *),
00077   InvokeDynamicImageFilter(const char *,Image **,const int,const char **,
00078     ExceptionInfo *),
00079   ListModuleInfo(FILE *,ExceptionInfo *),
00080   ModuleComponentGenesis(void),
00081   OpenModule(const char *,ExceptionInfo *),
00082   OpenModules(ExceptionInfo *);
00083 
00084 extern MagickExport ModuleInfo
00085   *GetModuleInfo(const char *,ExceptionInfo *);
00086 
00087 extern MagickExport void
00088   DestroyModuleList(void),
00089   ModuleComponentTerminus(void),
00090   RegisterStaticModules(void),
00091   UnregisterStaticModules(void);
00092 
00093 #if defined(__cplusplus) || defined(c_plusplus)
00094 }
00095 #endif
00096 
00097 #endif

Generated on 19 Nov 2009 for MagickCore by  doxygen 1.6.1