MagickWand.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. /*
  2. Copyright 1999 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License. You may
  5. obtain a copy of the License at
  6. https://imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. MagickWand Application Programming Interface declarations.
  13. */
  14. #ifndef _MAGICK_WAND_H
  15. #define _MAGICK_WAND_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. #if !defined(MAGICKWAND_CONFIG_H)
  20. # define MAGICKWAND_CONFIG_H
  21. # if !defined(vms) && !defined(macintosh)
  22. # include "magick/magick-config.h"
  23. # else
  24. # include "magick-config.h"
  25. # endif
  26. #if defined(_magickcore_const) && !defined(const)
  27. # define const _magickcore_const
  28. #endif
  29. #if defined(_magickcore_inline) && !defined(inline)
  30. # define inline _magickcore_inline
  31. #endif
  32. #if !defined(magick_restrict)
  33. # if !defined(_magickcore_restrict)
  34. # define magick_restrict restrict
  35. # else
  36. # define magick_restrict _magickcore_restrict
  37. # endif
  38. #endif
  39. # if defined(__cplusplus) || defined(c_plusplus)
  40. # undef inline
  41. # endif
  42. #endif
  43. #define MAGICKWAND_CHECK_VERSION(major,minor,micro) \
  44. ((MAGICKWAND_MAJOR_VERSION > (major)) || \
  45. ((MAGICKWAND_MAJOR_VERSION == (major)) && \
  46. (MAGICKWAND_MINOR_VERSION > (minor))) || \
  47. ((MAGICKWAND_MAJOR_VERSION == (major)) && \
  48. (MAGICKWAND_MINOR_VERSION == (minor)) && \
  49. (MAGICKWAND_MICRO_VERSION >= (micro))))
  50. #include <stdio.h>
  51. #include <stdarg.h>
  52. #include <stdlib.h>
  53. #include <stdint.h>
  54. #include <math.h>
  55. #include <sys/types.h>
  56. #include <time.h>
  57. #if defined(WIN32) || defined(WIN64)
  58. # define MAGICKWAND_WINDOWS_SUPPORT
  59. #else
  60. # define MAGICKWAND_POSIX_SUPPORT
  61. #endif
  62. typedef struct _MagickWand
  63. MagickWand;
  64. #include "wand/method-attribute.h"
  65. #include "magick/MagickCore.h"
  66. #include "wand/animate.h"
  67. #include "wand/compare.h"
  68. #include "wand/composite.h"
  69. #include "wand/conjure.h"
  70. #include "wand/convert.h"
  71. #include "wand/deprecate.h"
  72. #include "wand/display.h"
  73. #include "wand/drawing-wand.h"
  74. #include "wand/identify.h"
  75. #include "wand/import.h"
  76. #include "wand/magick-property.h"
  77. #include "wand/magick-image.h"
  78. #include "wand/mogrify.h"
  79. #include "wand/montage.h"
  80. #include "wand/pixel-iterator.h"
  81. #include "wand/pixel-wand.h"
  82. #include "wand/stream.h"
  83. #include "wand/wand-view.h"
  84. extern WandExport char
  85. *MagickGetException(const MagickWand *,ExceptionType *);
  86. extern WandExport ExceptionType
  87. MagickGetExceptionType(const MagickWand *);
  88. extern WandExport MagickBooleanType
  89. IsMagickWand(const MagickWand *),
  90. IsMagickWandInstantiated(void),
  91. MagickClearException(MagickWand *),
  92. MagickSetIteratorIndex(MagickWand *,const ssize_t);
  93. extern WandExport MagickWand
  94. *CloneMagickWand(const MagickWand *),
  95. *DestroyMagickWand(MagickWand *),
  96. *NewMagickWand(void),
  97. *NewMagickWandFromImage(const Image *);
  98. extern WandExport ssize_t
  99. MagickGetIteratorIndex(MagickWand *);
  100. extern WandExport void
  101. ClearMagickWand(MagickWand *),
  102. MagickWandGenesis(void),
  103. MagickWandTerminus(void),
  104. *MagickRelinquishMemory(void *),
  105. MagickResetIterator(MagickWand *),
  106. MagickSetFirstIterator(MagickWand *),
  107. MagickSetLastIterator(MagickWand *);
  108. #if defined(__cplusplus) || defined(c_plusplus)
  109. }
  110. #endif
  111. #endif