/dmagick/c/magickDelegate.d

http://github.com/MikeWey/DMagick · D · 60 lines · 45 code · 15 blank · 0 comment · 1 complexity · 1590d094dc2900b90854d51bb199c58c MD5 · raw file

  1. module dmagick.c.magickDelegate;
  2. import core.stdc.stdio;
  3. import dmagick.c.exception;
  4. import dmagick.c.image;
  5. import dmagick.c.magickType;
  6. import dmagick.c.magickVersion;
  7. import dmagick.c.semaphore;
  8. alias ptrdiff_t ssize_t;
  9. extern(C)
  10. {
  11. struct DelegateInfo
  12. {
  13. char*
  14. path,
  15. decode,
  16. encode,
  17. commands;
  18. ssize_t
  19. mode;
  20. MagickBooleanType
  21. thread_support,
  22. spawn,
  23. stealth;
  24. DelegateInfo*
  25. previous,
  26. next;
  27. size_t
  28. signature;
  29. static if ( MagickLibVersion >= 0x689 )
  30. {
  31. SemaphoreInfo* semaphore;
  32. }
  33. }
  34. char* GetDelegateCommand(const(ImageInfo)*, Image*, const(char)*, const(char)*, ExceptionInfo*);
  35. char** GetDelegateList(const(char)*,size_t *,ExceptionInfo *);
  36. const(char)* GetDelegateCommands(const(DelegateInfo)*);
  37. const(DelegateInfo)* GetDelegateInfo(const(char)*, const(char)*, ExceptionInfo* exception);
  38. const(DelegateInfo)** GetDelegateInfoList(const(char)*, size_t*, ExceptionInfo*);
  39. ssize_t GetDelegateMode(const(DelegateInfo)*);
  40. MagickBooleanType DelegateComponentGenesis();
  41. MagickBooleanType GetDelegateThreadSupport(const(DelegateInfo)*);
  42. MagickBooleanType InvokeDelegate(ImageInfo*, Image*, const(char)*, const(char)*, ExceptionInfo*);
  43. MagickBooleanType ListDelegateInfo(FILE*, ExceptionInfo*);
  44. void DelegateComponentTerminus();
  45. }