2 Copyright 1999-2012 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 ImageMagick pixel wand API.
18 #ifndef _OPERATION_PRIVATE_H
19 #define _OPERATION_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #define CLIWandException(severity,tag,option) \
26 (void) ThrowMagickException(cli_wand->wand.exception,GetMagickModule(), \
27 severity,tag, cli_wand->location, option, cli_wand->filename, \
28 cli_wand->line, cli_wand->column);
30 #define CLIWandExceptionBreak(severity,tag,option) \
32 CLIWandException(severity,tag,option); \
36 #define CLIWandExceptionReturn(severity,tag,option) \
38 CLIWandException(severity,tag,option); \
42 /* Define a generic stack linked list, for pushing and popping
43 user defined ImageInfo settings, and Image lists.
44 See '(' ')' and '-clone' CLI options.
52 /* Note this defines an extension to the normal MagickWand
53 Which adds extra elements specific to the Shell API interface
54 while still allowing the Wand to be passed to MagickWand API
55 for specific operations.
57 struct _MagickCLI /* CLI interface version of MagickWand */
59 struct _MagickWand /* this must be the first structure */
63 *quantize_info; /* for CLI API usage, not used by MagickWand API */
66 *draw_info; /* for CLI API usage, not used by MagickWand API */
69 *image_list_stack, /* Stacks of Image Lists and Image Info settings */
73 *location, /* Location string for exception reporting */
74 *filename; /* EG: "'%s' @ \"%s\" line %u column %u"
75 option, filename, line, column */
77 line, /* location of current option for error above */
85 #if defined(__cplusplus) || defined(c_plusplus)