summaryrefslogtreecommitdiff
path: root/dmagick/c/magickDelegate.d
diff options
context:
space:
mode:
authorMike Wey2011-01-08 17:48:30 +0100
committerMike Wey2011-01-08 17:48:30 +0100
commitcbac78bbec726017355cb455a776f193e7fc3022 (patch)
treea41c564c7ef5aec9dd2b18e58e94b213193044be /dmagick/c/magickDelegate.d
initial checkin
Diffstat (limited to 'dmagick/c/magickDelegate.d')
-rw-r--r--dmagick/c/magickDelegate.d52
1 files changed, 52 insertions, 0 deletions
diff --git a/dmagick/c/magickDelegate.d b/dmagick/c/magickDelegate.d
new file mode 100644
index 0000000..e458c33
--- /dev/null
+++ b/dmagick/c/magickDelegate.d
@@ -0,0 +1,52 @@
+module dmagick.c.magickDelegate;
+
+import core.stdc.stdio;
+import core.sys.posix.sys.types;
+
+import dmagick.c.exception;
+import dmagick.c.image;
+import dmagick.c.magickType;
+
+extern(C)
+{
+ struct DelegateInfo
+ {
+ char*
+ path,
+ decode,
+ encode,
+ commands;
+
+ ssize_t
+ mode;
+
+ MagickBooleanType
+ thread_support,
+ spawn,
+ stealth;
+
+ DelegateInfo*
+ previous,
+ next;
+
+ size_t
+ signature;
+ }
+
+ char* GetDelegateCommand(const ImageInfo*, Image*, const char*, const char*, ExceptionInfo*);
+ char** GetDelegateList(const char *,size_t *,ExceptionInfo *);
+
+ const(char*) GetDelegateCommands(const DelegateInfo*);
+
+ const(DelegateInfo*) GetDelegateInfo(const char*, const char*, ExceptionInfo* exception);
+ const(DelegateInfo**) GetDelegateInfoList(const char*, size_t*, ExceptionInfo*);
+
+ ssize_t GetDelegateMode(const DelegateInfo*);
+
+ MagickBooleanType DelegateComponentGenesis();
+ MagickBooleanType GetDelegateThreadSupport(const DelegateInfo*);
+ MagickBooleanType InvokeDelegate(ImageInfo*, Image*, const char*, const char*, ExceptionInfo*);
+ MagickBooleanType ListDelegateInfo(FILE*, ExceptionInfo*);
+
+ void DelegateComponentTerminus();
+}