home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / onlineco / files / ImageMagick-6.0.1-Q16-windows-dll.exe / {app} / include / magick / module.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-04-13  |  1.4 KB  |  70 lines

  1. /*
  2.   ImageMagick Modules Methods.
  3. */
  4. #ifndef _MAGICK_MODULE_H
  5. #define _MAGICK_MODULE_H
  6.  
  7. #if defined(__cplusplus) || defined(c_plusplus)
  8. extern "C" {
  9. #endif
  10.  
  11. typedef enum
  12. {
  13.   MagickCoderModule,
  14.   MagickFilterModule
  15. } MagickModuleType;
  16.  
  17. typedef struct _ModuleInfo
  18. {
  19.   char
  20.     *path,
  21.     *tag;
  22.  
  23.   void
  24.     *handle,
  25.     (*register_module)(void),
  26.     (*unregister_module)(void);
  27.  
  28.   time_t
  29.     load_time;
  30.  
  31.   unsigned int
  32.     stealth;
  33.  
  34.   struct _ModuleInfo
  35.     *previous,
  36.     *next;  /* deprecated, use GetModuleInfoList() */
  37.  
  38.   unsigned long
  39.     signature;
  40. } ModuleInfo;
  41.  
  42. extern MagickExport char
  43.   **GetModuleList(const char *,unsigned long *);
  44.  
  45. extern MagickExport char
  46.   *TagToModule(const char *);
  47.  
  48. extern MagickExport const ModuleInfo
  49.   *GetModuleInfo(const char *,ExceptionInfo *),
  50.   **GetModuleInfoList(const char *,unsigned long *);
  51.  
  52. extern MagickExport unsigned int
  53.   ExecuteModuleProcess(const char *,Image **,const int,char **),
  54.   ExecuteStaticModuleProcess(const char *,Image **,const int,char **),
  55.   ListModuleInfo(FILE *,ExceptionInfo *),
  56.   OpenModule(const char *,ExceptionInfo *),
  57.   OpenModules(ExceptionInfo *);
  58.  
  59. extern MagickExport void
  60.   DestroyModuleList(void),
  61.   *GetModuleBlob(const char *,char *,size_t *,ExceptionInfo *),
  62.   RegisterStaticModules(void),
  63.   UnregisterStaticModules(void);
  64.  
  65. #if defined(__cplusplus) || defined(c_plusplus)
  66. }
  67. #endif
  68.  
  69. #endif
  70.