| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 1 | /* |
| cristy | b56bb24 | 2014-11-25 17:12:48 +0000 | [diff] [blame] | 2 | Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 3 | dedicated to making software imaging solutions freely available. |
| 4 | |
| 5 | You may not use this file except in compliance with the License. |
| 6 | obtain a copy of the License at |
| 7 | |
| 8 | http://www.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 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21 | #if defined(MAGICKCORE_GS_DELEGATE) |
| 22 | #include "ghostscript/iapi.h" |
| 23 | #include "ghostscript/ierrors.h" |
| dirk | 6d23b5c | 2015-01-05 19:52:49 +0000 | [diff] [blame] | 24 | #else |
| 25 | typedef struct gsapi_revision_s |
| 26 | { |
| 27 | const char *product; |
| 28 | const char *copyright; |
| 29 | long revision; |
| 30 | long revisiondate; |
| 31 | } gsapi_revision_t; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 32 | #endif |
| 33 | |
| cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 34 | #if defined(__cplusplus) || defined(c_plusplus) |
| 35 | extern "C" { |
| 36 | #endif |
| 37 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 38 | #ifndef gs_main_instance_DEFINED |
| 39 | # define gs_main_instance_DEFINED |
| 40 | typedef struct gs_main_instance_s |
| 41 | gs_main_instance; |
| 42 | #endif |
| 43 | |
| 44 | #if !defined(MagickDLLCall) |
| cristy | 0157aea | 2010-04-24 21:12:18 +0000 | [diff] [blame] | 45 | # if defined(MAGICKCORE_WINDOWS_SUPPORT) |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 46 | # define MagickDLLCall __stdcall |
| 47 | # else |
| 48 | # define MagickDLLCall |
| 49 | # endif |
| 50 | #endif |
| 51 | |
| cristy | defb3f0 | 2009-09-10 02:18:35 +0000 | [diff] [blame] | 52 | typedef struct _GhostInfo |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 53 | { |
| dirk | 5278499 | 2014-05-03 13:00:18 +0000 | [diff] [blame] | 54 | void |
| 55 | (MagickDLLCall *delete_instance)(gs_main_instance *); |
| 56 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 57 | int |
| 58 | (MagickDLLCall *exit)(gs_main_instance *); |
| 59 | |
| 60 | int |
| 61 | (MagickDLLCall *init_with_args)(gs_main_instance *,int,char **); |
| 62 | |
| 63 | int |
| 64 | (MagickDLLCall *new_instance)(gs_main_instance **,void *); |
| 65 | |
| 66 | int |
| 67 | (MagickDLLCall *run_string)(gs_main_instance *,const char *,int,int *); |
| 68 | |
| dirk | 5278499 | 2014-05-03 13:00:18 +0000 | [diff] [blame] | 69 | 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)); |
| dirk | 6d23b5c | 2015-01-05 19:52:49 +0000 | [diff] [blame] | 73 | |
| 74 | int |
| 75 | (MagickDLLCall *revision)(gsapi_revision_t *, int); |
| cristy | defb3f0 | 2009-09-10 02:18:35 +0000 | [diff] [blame] | 76 | } GhostInfo; |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 77 | |
| cristy | 5ff4eaf | 2011-09-03 01:38:02 +0000 | [diff] [blame] | 78 | extern MagickPrivate MagickBooleanType |
| 79 | DelegateComponentGenesis(void); |
| 80 | |
| 81 | extern MagickPrivate void |
| 82 | DelegateComponentTerminus(void); |
| 83 | |
| cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 84 | #if defined(__cplusplus) || defined(c_plusplus) |
| 85 | } |
| 86 | #endif |
| 87 | |
| 88 | #endif |