00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MAGICKCORE_DELEGATE_PRIVATE_H
00019 #define MAGICKCORE_DELEGATE_PRIVATE_H
00020
00021 #if defined(MAGICKCORE_GS_DELEGATE)
00022 #include "ghostscript/iapi.h"
00023 #include "ghostscript/ierrors.h"
00024 #else
00025 typedef struct gsapi_revision_s
00026 {
00027 const char *product;
00028 const char *copyright;
00029 long revision;
00030 long revisiondate;
00031 } gsapi_revision_t;
00032 #endif
00033
00034 #if defined(__cplusplus) || defined(c_plusplus)
00035 extern "C" {
00036 #endif
00037
00038 #ifndef gs_main_instance_DEFINED
00039 # define gs_main_instance_DEFINED
00040 typedef struct gs_main_instance_s
00041 gs_main_instance;
00042 #endif
00043
00044 #if !defined(MagickDLLCall)
00045 # if defined(MAGICKCORE_WINDOWS_SUPPORT)
00046 # define MagickDLLCall __stdcall
00047 # else
00048 # define MagickDLLCall
00049 # endif
00050 #endif
00051
00052 typedef struct _GhostInfo
00053 {
00054 void
00055 (MagickDLLCall *delete_instance)(gs_main_instance *);
00056
00057 int
00058 (MagickDLLCall *exit)(gs_main_instance *);
00059
00060 int
00061 (MagickDLLCall *init_with_args)(gs_main_instance *,int,char **);
00062
00063 int
00064 (MagickDLLCall *new_instance)(gs_main_instance **,void *);
00065
00066 int
00067 (MagickDLLCall *run_string)(gs_main_instance *,const char *,int,int *);
00068
00069 int
00070 (MagickDLLCall *set_stdio)(gs_main_instance *,int(MagickDLLCall *)(void *,
00071 char *,int),int(MagickDLLCall *)(void *,const char *,int),
00072 int(MagickDLLCall *)(void *,const char *,int));
00073
00074 int
00075 (MagickDLLCall *revision)(gsapi_revision_t *, int);
00076 } GhostInfo;
00077
00078 #if defined(__cplusplus) || defined(c_plusplus)
00079 }
00080 #endif
00081
00082 #endif