delegate.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. MagickCore delegates methods.
  13. */
  14. #ifndef MAGICKCORE_DELEGATE_H
  15. #define MAGICKCORE_DELEGATE_H
  16. #if defined(__cplusplus) || defined(c_plusplus)
  17. extern "C" {
  18. #endif
  19. #include <stdarg.h>
  20. #include "magick/semaphore.h"
  21. typedef struct _DelegateInfo
  22. {
  23. char
  24. *path,
  25. *decode,
  26. *encode,
  27. *commands;
  28. ssize_t
  29. mode;
  30. MagickBooleanType
  31. thread_support,
  32. spawn,
  33. stealth;
  34. struct _DelegateInfo
  35. *previous,
  36. *next; /* deprecated, use GetDelegateInfoList() */
  37. size_t
  38. signature;
  39. SemaphoreInfo
  40. *semaphore;
  41. } DelegateInfo;
  42. extern MagickExport char
  43. *GetDelegateCommand(const ImageInfo *,Image *,const char *,const char *,
  44. ExceptionInfo *),
  45. **GetDelegateList(const char *,size_t *,ExceptionInfo *);
  46. extern MagickExport const char
  47. *GetDelegateCommands(const DelegateInfo *);
  48. extern MagickExport const DelegateInfo
  49. *GetDelegateInfo(const char *,const char *,ExceptionInfo *exception),
  50. **GetDelegateInfoList(const char *,size_t *,ExceptionInfo *);
  51. extern MagickExport int
  52. ExternalDelegateCommand(const MagickBooleanType,const MagickBooleanType,
  53. const char *,char *,ExceptionInfo *);
  54. extern MagickExport ssize_t
  55. GetDelegateMode(const DelegateInfo *);
  56. extern MagickExport MagickBooleanType
  57. DelegateComponentGenesis(void),
  58. GetDelegateThreadSupport(const DelegateInfo *),
  59. InvokeDelegate(ImageInfo *,Image *,const char *,const char *,ExceptionInfo *),
  60. ListDelegateInfo(FILE *,ExceptionInfo *);
  61. extern MagickExport void
  62. DelegateComponentTerminus(void);
  63. #if defined(__cplusplus) || defined(c_plusplus)
  64. }
  65. #endif
  66. #endif