delegate-private.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 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 delegates private methods.
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

Generated on 21 Sep 2020 for MagickCore by  doxygen 1.6.1