root / ImageMagick / trunk / wand / MagickWand.h

Revision 11785, 4.9 kB (checked in by cristy, 2 weeks ago)
Line 
1/*
2  Copyright 1999-2008 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.
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
19#ifndef _MAGICK_WAND_H
20#define _MAGICK_WAND_H
21
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)
29include "magick/magick-config.h"
30# else
31include "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
39# if defined(__cplusplus) || defined(c_plusplus)
40undef inline
41# endif
42#endif
43
44#include <stdio.h>
45#include <stdarg.h>
46#include <stdlib.h>
47#include <sys/types.h>
48
49#if defined(__CYGWIN32__)
50if !defined(__CYGWIN__)
51#    define __CYGWIN__ __CYGWIN32__
52endif
53#endif
54#if defined(_WIN32) || defined(WIN32)
55if !defined(__WINDOWS__)
56#    if defined(_WIN32)
57#      define __WINDOWS__ _WIN32
58#    else
59#      if defined(WIN32)
60#        define __WINDOWS__ WIN32
61#      endif
62#    endif
63endif
64#endif
65
66#if defined(_WIN64) || defined(WIN64)
67if !defined(__WINDOWS__)
68#    if defined(_WIN64)
69#      define __WINDOWS__ _WIN64
70#    else
71#      if defined(WIN64)
72#        define __WINDOWS__ WIN64
73#      endif
74#    endif
75endif
76#endif
77
78#if defined(__WINDOWS__)
79# if defined(_MT) && defined(_DLL) && !defined(_MAGICKDLL_) && !defined(_LIB)
80define _MAGICKDLL_
81# endif
82# if defined(_MAGICKDLL_)
83if defined(_VISUALC_)
84#   pragma warning( disable: 4273 )  /* Disable the dll linkage warnings */
85endif
86if !defined(_MAGICKLIB_)
87#   define WandExport  __declspec(dllimport)
88#   if defined(_VISUALC_)
89#    pragma message( "MagickWand lib DLL import interface" )
90#   endif
91else
92#   define WandExport  __declspec(dllexport)
93#   if defined(_VISUALC_)
94#    pragma message( "MagickWand lib DLL export interface" )
95#   endif
96endif
97# else
98define WandExport
99if defined(_VISUALC_)
100#   pragma message( "MagickWand lib static interface" )
101endif
102# endif
103
104# if defined(_DLL) && !defined(_LIB)
105define ModuleExport  __declspec(dllexport)
106if defined(_VISUALC_)
107#   pragma message( "MagickWand module DLL export interface" )
108endif
109# else
110define ModuleExport
111if defined(_VISUALC_)
112#   pragma message( "MagickWand module static interface" )
113endif
114
115# endif
116# define WandGlobal __declspec(thread)
117# if defined(_VISUALC_)
118pragma warning(disable : 4018)
119pragma warning(disable : 4244)
120pragma warning(disable : 4142)
121pragma warning(disable : 4800)
122pragma warning(disable : 4786)
123pragma warning(disable : 4996)
124# endif
125#else
126# define WandExport
127# define ModuleExport
128# define WandGlobal
129#endif
130
131#if !defined(MaxTextExtent)
132# define MaxTextExtent  4096
133#endif
134#define WandSignature  0xabacadabUL
135
136#if !defined(wand_attribute)
137if !defined(__GNUC__)
138#    define wand_attribute(x)  /* nothing */
139else
140#    define wand_attribute  __attribute__
141endif
142#endif
143
144typedef struct _MagickWand
145  MagickWand;
146
147#include "magick/MagickCore.h"
148#include "wand/animate.h"
149#include "wand/compare.h"
150#include "wand/composite.h"
151#include "wand/conjure.h"
152#include "wand/convert.h"
153#include "wand/deprecate.h"
154#include "wand/display.h"
155#include "wand/drawing-wand.h"
156#include "wand/identify.h"
157#include "wand/import.h"
158#include "wand/magick-property.h"
159#include "wand/magick-image.h"
160#include "wand/mogrify.h"
161#include "wand/montage.h"
162#include "wand/pixel-iterator.h"
163#include "wand/pixel-wand.h"
164#include "wand/stream.h"
165
166extern WandExport char
167  *MagickGetException(const MagickWand *,ExceptionType *);
168
169extern WandExport ExceptionType
170  MagickGetExceptionType(const MagickWand *);
171
172extern WandExport long
173  MagickGetIteratorIndex(MagickWand *);
174
175extern WandExport MagickBooleanType
176  IsMagickWand(const MagickWand *),
177  MagickClearException(MagickWand *),
178  MagickSetIteratorIndex(MagickWand *,const long);
179
180extern WandExport MagickWand
181  *CloneMagickWand(const MagickWand *),
182  *DestroyMagickWand(MagickWand *),
183  *NewMagickWand(void),
184        *NewMagickWandFromImage(const Image *);
185
186extern WandExport void
187  ClearMagickWand(MagickWand *),
188  MagickWandGenesis(void),
189  MagickWandTerminus(void),
190  *MagickRelinquishMemory(void *),
191  MagickResetIterator(MagickWand *),
192  MagickSetFirstIterator(MagickWand *),
193  MagickSetLastIterator(MagickWand *);
194
195#if defined(__cplusplus) || defined(c_plusplus)
196}
197#endif
198
199#endif
Note: See TracBrowser for help on using the browser.