2 Copyright 1999-2013 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 http://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 MagickWand Application Programming Interface declarations.
19 #ifndef _MAGICKWAND_MAGICKWAND_H
20 #define _MAGICKWAND_MAGICKWAND_H
22 #if defined(__cplusplus) || defined(c_plusplus)
26 #if !defined(_MAGICKWAND_CONFIG_H)
27 # define _MAGICKWAND_CONFIG_H
28 # if !defined(vms) && !defined(macintosh)
29 # include "MagickCore/magick-config.h"
31 # include "magick-config.h"
33 #if defined(_magickcore_const) && !defined(const)
34 # define const _magickcore_const
36 #if defined(_magickcore_inline) && !defined(inline)
37 # define inline _magickcore_inline
39 #if defined(_magickcore_restrict) && !defined(restrict)
40 # define restrict _magickcore_restrict
42 # if defined(__cplusplus) || defined(c_plusplus)
51 #include <sys/types.h>
53 #if defined(WIN32) || defined(WIN64)
54 # define MAGICKCORE_WINDOWS_SUPPORT
56 # define MAGICKCORE_POSIX_SUPPORT
59 #if defined(__BORLANDC__) && defined(_DLL)
60 # pragma message("BCBMagick lib DLL export interface")
65 #include "MagickWand/method-attribute.h"
67 #if defined(MAGICKCORE_WINDOWS_SUPPORT) && !defined(__CYGWIN__)
69 # if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB)
72 # if defined(_MAGICKDLL_)
73 # if defined(_VISUALC_)
74 # pragma warning( disable: 4273 ) /* Disable the dll linkage warnings */
76 # if !defined(_MAGICKLIB_)
77 # if defined(__GNUC__)
78 # define WandExport __attribute__ ((__dllimport__))
80 # define WandExport __declspec(dllimport)
82 # if defined(_VISUALC_)
83 # pragma message( "MagickWand lib DLL import interface" )
86 # if defined(__GNUC__)
87 # define WandExport __attribute__ ((__dllexport__))
89 # define WandExport __declspec(dllexport)
91 # if defined(_VISUALC_)
92 # pragma message( "MagickWand lib DLL export interface" )
97 # if defined(_VISUALC_)
98 # pragma message( "MagickWand lib static interface" )
102 # define WandGlobal __declspec(thread)
103 # if defined(_VISUALC_)
104 # pragma warning(disable : 4018)
105 # pragma warning(disable : 4244)
106 # pragma warning(disable : 4142)
107 # pragma warning(disable : 4800)
108 # pragma warning(disable : 4786)
109 # pragma warning(disable : 4996)
113 # define WandExport __attribute__ ((__visibility__ ("default")))
114 # define WandPrivate __attribute__ ((__visibility__ ("hidden")))
122 #if defined(MAGICKCORE_HAVE___ATTRIBUTE__)
123 # define wand_aligned(x) __attribute__((__aligned__(x)))
124 # define wand_attribute __attribute__
125 # define wand_unused(x) wand_unused_ ## x __attribute__((__unused__))
127 # define wand_aligned(x) /* nothing */
128 # define wand_attribute(x) /* nothing */
129 # define wand_unused(x) x
132 #if defined(MAGICKCORE_HAVE___ALLOC_SIZE__)
133 # define wand_alloc_size(x) __attribute__((__alloc_size__(x)))
134 # define wand_alloc_sizes(x,y) __attribute__((__alloc_size__(x,y)))
135 # define wand_cold __attribute__((__cold__))
136 # define wand_hot __attribute__((__hot__))
138 # define wand_alloc_size(x) /* nothing */
139 # define wand_alloc_sizes(x,y) /* nothing */
144 typedef struct _MagickWand
147 #include "MagickCore/MagickCore.h"
148 #include "MagickWand/animate.h"
149 #include "MagickWand/compare.h"
150 #include "MagickWand/composite.h"
151 #include "MagickWand/conjure.h"
152 #include "MagickWand/convert.h"
153 #include "MagickWand/deprecate.h"
154 #include "MagickWand/display.h"
155 #include "MagickWand/drawing-wand.h"
156 #include "MagickWand/identify.h"
157 #include "MagickWand/import.h"
158 #include "MagickWand/wandcli.h"
159 #include "MagickWand/operation.h"
160 #include "MagickWand/magick-cli.h"
161 #include "MagickWand/magick-property.h"
162 #include "MagickWand/magick-image.h"
163 #include "MagickWand/mogrify.h"
164 #include "MagickWand/montage.h"
165 #include "MagickWand/pixel-iterator.h"
166 #include "MagickWand/pixel-wand.h"
167 #include "MagickWand/stream.h"
168 #include "MagickWand/wand-view.h"
170 extern WandExport char
171 *MagickGetException(const MagickWand *,ExceptionType *);
173 extern WandExport ExceptionType
174 MagickGetExceptionType(const MagickWand *);
176 extern WandExport MagickBooleanType
177 IsMagickWand(const MagickWand *),
178 MagickClearException(MagickWand *),
179 MagickSetIteratorIndex(MagickWand *,const ssize_t);
181 extern WandExport MagickWand
182 *CloneMagickWand(const MagickWand *),
183 *DestroyMagickWand(MagickWand *),
184 *NewMagickWand(void),
185 *NewMagickWandFromImage(const Image *);
187 extern WandExport ssize_t
188 MagickGetIteratorIndex(MagickWand *);
190 extern WandExport void
191 ClearMagickWand(MagickWand *),
192 MagickWandGenesis(void),
193 MagickWandTerminus(void),
194 *MagickRelinquishMemory(void *),
195 MagickResetIterator(MagickWand *),
196 MagickSetFirstIterator(MagickWand *),
197 MagickSetLastIterator(MagickWand *);
199 #if defined(__cplusplus) || defined(c_plusplus)