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 | MagickWand Application Programming Interface declarations. |
| 17 | */ |
| 18 | |
cristy | e7139e0 | 2012-02-29 12:42:18 +0000 | [diff] [blame] | 19 | #ifndef _MAGICKWAND_MAGICKWAND_H |
| 20 | #define _MAGICKWAND_MAGICKWAND_H |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 21 | |
| 22 | #if defined(__cplusplus) || defined(c_plusplus) |
| 23 | extern "C" { |
| 24 | #endif |
| 25 | |
| 26 | #if !defined(_MAGICKWAND_CONFIG_H) |
| 27 | # define _MAGICKWAND_CONFIG_H |
| 28 | # if !defined(vms) && !defined(macintosh) |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 29 | # include "MagickCore/magick-config.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 30 | # else |
| 31 | # include "magick-config.h" |
| 32 | # endif |
| 33 | #if defined(_magickcore_const) && !defined(const) |
| 34 | # define const _magickcore_const |
| 35 | #endif |
| 36 | #if defined(_magickcore_inline) && !defined(inline) |
| 37 | # define inline _magickcore_inline |
| 38 | #endif |
cristy | ba56db5 | 2011-05-20 02:08:11 +0000 | [diff] [blame] | 39 | #if defined(_magickcore_restrict) && !defined(restrict) |
| 40 | # define restrict _magickcore_restrict |
| 41 | #endif |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 42 | # if defined(__cplusplus) || defined(c_plusplus) |
| 43 | # undef inline |
| 44 | # endif |
| 45 | #endif |
| 46 | |
cristy | c3eda39 | 2013-04-03 00:22:13 +0000 | [diff] [blame] | 47 | #define MAGICKWAND_CHECK_VERSION(major,minor,micro) \ |
| 48 | ((MAGICKWAND_MAJOR_VERSION > (major)) || \ |
| 49 | ((MAGICKWAND_MAJOR_VERSION == (major)) && \ |
| 50 | (MAGICKWAND_MINOR_VERSION > (minor))) || \ |
| 51 | ((MAGICKWAND_MAJOR_VERSION == (major)) && \ |
| 52 | (MAGICKWAND_MINOR_VERSION == (minor)) && \ |
| 53 | (MAGICKWAND_MICRO_VERSION >= (micro)))) |
| 54 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 55 | #include <stdio.h> |
| 56 | #include <stdarg.h> |
| 57 | #include <stdlib.h> |
cristy | 5a41c36 | 2012-10-31 11:39:27 +0000 | [diff] [blame] | 58 | #include <math.h> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 59 | #include <sys/types.h> |
cristy | 6398ec7 | 2013-11-28 02:00:27 +0000 | [diff] [blame] | 60 | #include <time.h> |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 61 | |
cristy | 0157aea | 2010-04-24 21:12:18 +0000 | [diff] [blame] | 62 | #if defined(WIN32) || defined(WIN64) |
cristy | c3eda39 | 2013-04-03 00:22:13 +0000 | [diff] [blame] | 63 | # define MAGICKWAND_WINDOWS_SUPPORT |
cristy | 0157aea | 2010-04-24 21:12:18 +0000 | [diff] [blame] | 64 | #else |
cristy | c3eda39 | 2013-04-03 00:22:13 +0000 | [diff] [blame] | 65 | # define MAGICKWAND_POSIX_SUPPORT |
cristy | 0157aea | 2010-04-24 21:12:18 +0000 | [diff] [blame] | 66 | #endif |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 67 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 68 | typedef struct _MagickWand |
| 69 | MagickWand; |
| 70 | |
cristy | 8711081 | 2013-04-03 00:40:44 +0000 | [diff] [blame] | 71 | #include "MagickWand/method-attribute.h" |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 72 | #include "MagickCore/MagickCore.h" |
| 73 | #include "MagickWand/animate.h" |
| 74 | #include "MagickWand/compare.h" |
| 75 | #include "MagickWand/composite.h" |
| 76 | #include "MagickWand/conjure.h" |
| 77 | #include "MagickWand/convert.h" |
| 78 | #include "MagickWand/deprecate.h" |
| 79 | #include "MagickWand/display.h" |
| 80 | #include "MagickWand/drawing-wand.h" |
| 81 | #include "MagickWand/identify.h" |
| 82 | #include "MagickWand/import.h" |
anthony | 76edd74 | 2012-04-09 03:09:04 +0000 | [diff] [blame] | 83 | #include "MagickWand/wandcli.h" |
anthony | 2052d27 | 2012-02-28 12:48:29 +0000 | [diff] [blame] | 84 | #include "MagickWand/operation.h" |
anthony | 00886dc | 2012-02-12 13:00:55 +0000 | [diff] [blame] | 85 | #include "MagickWand/magick-cli.h" |
cristy | 4c08aed | 2011-07-01 19:47:50 +0000 | [diff] [blame] | 86 | #include "MagickWand/magick-property.h" |
| 87 | #include "MagickWand/magick-image.h" |
| 88 | #include "MagickWand/mogrify.h" |
| 89 | #include "MagickWand/montage.h" |
| 90 | #include "MagickWand/pixel-iterator.h" |
| 91 | #include "MagickWand/pixel-wand.h" |
| 92 | #include "MagickWand/stream.h" |
| 93 | #include "MagickWand/wand-view.h" |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 94 | |
| 95 | extern WandExport char |
| 96 | *MagickGetException(const MagickWand *,ExceptionType *); |
| 97 | |
| 98 | extern WandExport ExceptionType |
| 99 | MagickGetExceptionType(const MagickWand *); |
| 100 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 101 | extern WandExport MagickBooleanType |
| 102 | IsMagickWand(const MagickWand *), |
cristy | 019459e | 2014-01-02 23:47:13 +0000 | [diff] [blame] | 103 | IsMagickWandInstantiated(void), |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 104 | MagickClearException(MagickWand *), |
cristy | bb50337 | 2010-05-27 20:51:26 +0000 | [diff] [blame] | 105 | MagickSetIteratorIndex(MagickWand *,const ssize_t); |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 106 | |
| 107 | extern WandExport MagickWand |
| 108 | *CloneMagickWand(const MagickWand *), |
| 109 | *DestroyMagickWand(MagickWand *), |
| 110 | *NewMagickWand(void), |
| 111 | *NewMagickWandFromImage(const Image *); |
| 112 | |
cristy | 5ed838e | 2010-05-31 00:05:35 +0000 | [diff] [blame] | 113 | extern WandExport ssize_t |
| 114 | MagickGetIteratorIndex(MagickWand *); |
| 115 | |
cristy | 3ed852e | 2009-09-05 21:47:34 +0000 | [diff] [blame] | 116 | extern WandExport void |
| 117 | ClearMagickWand(MagickWand *), |
| 118 | MagickWandGenesis(void), |
| 119 | MagickWandTerminus(void), |
| 120 | *MagickRelinquishMemory(void *), |
| 121 | MagickResetIterator(MagickWand *), |
| 122 | MagickSetFirstIterator(MagickWand *), |
| 123 | MagickSetLastIterator(MagickWand *); |
| 124 | |
| 125 | #if defined(__cplusplus) || defined(c_plusplus) |
| 126 | } |
| 127 | #endif |
| 128 | |
| 129 | #endif |