blob: 48c21230c6b7eafccf10aed28e90f5893b48e49a [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001/*
cristyb56bb242014-11-25 17:12:48 +00002 Copyright 1999-2015 ImageMagick Studio LLC, a non-profit organization
cristy3ed852e2009-09-05 21:47:34 +00003 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
cristye7139e02012-02-29 12:42:18 +000019#ifndef _MAGICKWAND_MAGICKWAND_H
20#define _MAGICKWAND_MAGICKWAND_H
cristy3ed852e2009-09-05 21:47:34 +000021
22#if defined(__cplusplus) || defined(c_plusplus)
23extern "C" {
24#endif
25
26#if !defined(_MAGICKWAND_CONFIG_H)
27# define _MAGICKWAND_CONFIG_H
28# if !defined(vms) && !defined(macintosh)
cristy4c08aed2011-07-01 19:47:50 +000029# include "MagickCore/magick-config.h"
cristy3ed852e2009-09-05 21:47:34 +000030# 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
cristyba56db52011-05-20 02:08:11 +000039#if defined(_magickcore_restrict) && !defined(restrict)
40# define restrict _magickcore_restrict
41#endif
cristy3ed852e2009-09-05 21:47:34 +000042# if defined(__cplusplus) || defined(c_plusplus)
43# undef inline
44# endif
45#endif
46
cristyc3eda392013-04-03 00:22:13 +000047#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
cristy3ed852e2009-09-05 21:47:34 +000055#include <stdio.h>
56#include <stdarg.h>
57#include <stdlib.h>
cristy5a41c362012-10-31 11:39:27 +000058#include <math.h>
cristy3ed852e2009-09-05 21:47:34 +000059#include <sys/types.h>
cristy6398ec72013-11-28 02:00:27 +000060#include <time.h>
cristy3ed852e2009-09-05 21:47:34 +000061
cristy0157aea2010-04-24 21:12:18 +000062#if defined(WIN32) || defined(WIN64)
cristyc3eda392013-04-03 00:22:13 +000063# define MAGICKWAND_WINDOWS_SUPPORT
cristy0157aea2010-04-24 21:12:18 +000064#else
cristyc3eda392013-04-03 00:22:13 +000065# define MAGICKWAND_POSIX_SUPPORT
cristy0157aea2010-04-24 21:12:18 +000066#endif
cristy3ed852e2009-09-05 21:47:34 +000067
cristy3ed852e2009-09-05 21:47:34 +000068typedef struct _MagickWand
69 MagickWand;
70
cristy87110812013-04-03 00:40:44 +000071#include "MagickWand/method-attribute.h"
cristy4c08aed2011-07-01 19:47:50 +000072#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"
anthony76edd742012-04-09 03:09:04 +000083#include "MagickWand/wandcli.h"
anthony2052d272012-02-28 12:48:29 +000084#include "MagickWand/operation.h"
anthony00886dc2012-02-12 13:00:55 +000085#include "MagickWand/magick-cli.h"
cristy4c08aed2011-07-01 19:47:50 +000086#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"
cristy3ed852e2009-09-05 21:47:34 +000094
95extern WandExport char
96 *MagickGetException(const MagickWand *,ExceptionType *);
97
98extern WandExport ExceptionType
99 MagickGetExceptionType(const MagickWand *);
100
cristy3ed852e2009-09-05 21:47:34 +0000101extern WandExport MagickBooleanType
102 IsMagickWand(const MagickWand *),
cristy019459e2014-01-02 23:47:13 +0000103 IsMagickWandInstantiated(void),
cristy3ed852e2009-09-05 21:47:34 +0000104 MagickClearException(MagickWand *),
cristybb503372010-05-27 20:51:26 +0000105 MagickSetIteratorIndex(MagickWand *,const ssize_t);
cristy3ed852e2009-09-05 21:47:34 +0000106
107extern WandExport MagickWand
108 *CloneMagickWand(const MagickWand *),
109 *DestroyMagickWand(MagickWand *),
110 *NewMagickWand(void),
111 *NewMagickWandFromImage(const Image *);
112
cristy5ed838e2010-05-31 00:05:35 +0000113extern WandExport ssize_t
114 MagickGetIteratorIndex(MagickWand *);
115
cristy3ed852e2009-09-05 21:47:34 +0000116extern 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