MagickCore  6.9.11
Convert, Edit, Or Compose Bitmap Images
delegate-private.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
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.
15 
16  MagickCore delegates private methods.
17 */
18 #ifndef MAGICKCORE_DELEGATE_PRIVATE_H
19 #define MAGICKCORE_DELEGATE_PRIVATE_H
20 
21 #if defined(MAGICKCORE_GS_DELEGATE)
22 #include "ghostscript/iapi.h"
23 #include "ghostscript/ierrors.h"
24 #else
25 typedef struct gsapi_revision_s
26 {
27  const char *product;
28  const char *copyright;
29  long revision;
32 #endif
33 
34 #if defined(__cplusplus) || defined(c_plusplus)
35 extern "C" {
36 #endif
37 
38 #ifndef gs_main_instance_DEFINED
39 # define gs_main_instance_DEFINED
40 typedef struct gs_main_instance_s
42 #endif
43 
44 #if !defined(MagickDLLCall)
45 # if defined(MAGICKCORE_WINDOWS_SUPPORT)
46 # define MagickDLLCall __stdcall
47 # else
48 # define MagickDLLCall
49 # endif
50 #endif
51 
52 typedef struct _GhostInfo
53 {
55  (MagickDLLCall *delete_instance)(gs_main_instance *);
56 
59 
61  (MagickDLLCall *init_with_args)(gs_main_instance *,int,char **);
62 
64  (MagickDLLCall *new_instance)(gs_main_instance **,void *);
65 
67  (MagickDLLCall *run_string)(gs_main_instance *,const char *,int,int *);
68 
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));
73 
75  (MagickDLLCall *revision)(gsapi_revision_t *, int);
77 
78 #if defined(__cplusplus) || defined(c_plusplus)
79 }
80 #endif
81 
82 #endif
gsapi_revision_s
Definition: delegate-private.h:26
_GhostInfo::int
char ** int(MagickDLLCall *new_instance)(gs_main_instance **
gsapi_revision_s::revisiondate
long revisiondate
Definition: delegate-private.h:30
_GhostInfo::int
char void const char int char const char int(MagickDLLCall *)(void *
_GhostInfo::void
void(MagickDLLCall *delete_instance)(gs_main_instance *)
_GhostInfo::int
int(MagickDLLCall *exit)(gs_main_instance *)
gsapi_revision_s::product
const char * product
Definition: delegate-private.h:27
_GhostInfo::int
int(MagickDLLCall *init_with_args)(gs_main_instance *
_GhostInfo::int
int(MagickDLLCall *revision)(gsapi_revision_t *
_GhostInfo
Definition: delegate-private.h:53
_GhostInfo::int
char void const char int
Definition: delegate-private.h:67
_GhostInfo::int
char void const char int char int(MagickDLLCall *)(void *
GhostInfo
struct _GhostInfo GhostInfo
_GhostInfo::int
char void * int(MagickDLLCall *run_string)(gs_main_instance *
_GhostInfo::int
char void const char int int(MagickDLLCall *)(void *
gsapi_revision_s::revision
long revision
Definition: delegate-private.h:29
MagickDLLCall
#define MagickDLLCall
Definition: delegate-private.h:48
gsapi_revision_t
struct gsapi_revision_s gsapi_revision_t
gs_main_instance
struct gs_main_instance_s gs_main_instance
Definition: delegate-private.h:40
_GhostInfo::int
char void const char int * int(MagickDLLCall *set_stdio)(gs_main_instance *
_GhostInfo::int
int
Definition: delegate-private.h:61
gsapi_revision_s::copyright
const char * copyright
Definition: delegate-private.h:28