2 Copyright 1999-2018 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
8 https://www.imagemagick.org/script/license.php
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
16 MagickCore delegates private methods.
18 #ifndef MAGICKCORE_DELEGATE_PRIVATE_H
19 #define MAGICKCORE_DELEGATE_PRIVATE_H
21 #if defined(MAGICKCORE_GS_DELEGATE)
22 #include "ghostscript/iapi.h"
23 #include "ghostscript/ierrors.h"
25 typedef struct gsapi_revision_s
28 const char *copyright;
34 #if defined(__cplusplus) || defined(c_plusplus)
38 #ifndef gs_main_instance_DEFINED
39 # define gs_main_instance_DEFINED
40 typedef struct gs_main_instance_s
44 #if !defined(MagickDLLCall)
45 # if defined(MAGICKCORE_WINDOWS_SUPPORT)
46 # define MagickDLLCall __stdcall
48 # define MagickDLLCall
52 typedef struct _GhostInfo
55 (MagickDLLCall *delete_instance)(gs_main_instance *);
58 (MagickDLLCall *exit)(gs_main_instance *);
61 (MagickDLLCall *init_with_args)(gs_main_instance *,int,char **);
64 (MagickDLLCall *new_instance)(gs_main_instance **,void *);
67 (MagickDLLCall *run_string)(gs_main_instance *,const char *,int,int *);
70 (MagickDLLCall *set_stdio)(gs_main_instance *,int(MagickDLLCall *)(void *,
71 char *,int),int(MagickDLLCall *)(void *,const char *,int),
72 int(MagickDLLCall *)(void *,const char *,int));
75 (MagickDLLCall *revision)(gsapi_revision_t *, int);
78 extern MagickPrivate MagickBooleanType
79 DelegateComponentGenesis(void);
81 extern MagickPrivate void
82 DelegateComponentTerminus(void);
84 #if defined(__cplusplus) || defined(c_plusplus)