summaryrefslogtreecommitdiff
path: root/dmagick/c/magickVersion.d
diff options
context:
space:
mode:
Diffstat (limited to 'dmagick/c/magickVersion.d')
-rw-r--r--dmagick/c/magickVersion.d48
1 files changed, 48 insertions, 0 deletions
diff --git a/dmagick/c/magickVersion.d b/dmagick/c/magickVersion.d
new file mode 100644
index 0000000..42e177d
--- /dev/null
+++ b/dmagick/c/magickVersion.d
@@ -0,0 +1,48 @@
+module dmagick.c.magickVersion;
+
+import core.stdc.config;
+import core.stdc.stdio;
+
+/// Defines the version of ImageMagick where these headers are based on.
+enum MagickLibVersion = 0x707;
+///ditto
+enum MagickLibVersionText = "7.0.7";
+
+/// The quantum depth used by MagickCore.
+enum MagickQuantumDepth = 16;
+
+/// Defines if HDRI is enabled.
+enum MagickHDRISupport = true;
+
+/*
+ * With ImageMagick 6.6.3 long and unsinged long were changed to
+ * ssize_t and size_t. This is only a problem for 64bits windows.
+ */
+static if (MagickLibVersion < 0x663 && c_ulong.sizeof != size_t.sizeof)
+{
+ static assert(0, "Only ImageMagick version 6.6.3 and up are supported on your platform");
+}
+
+extern(C)
+{
+ char* GetMagickHomeURL();
+
+ const(char)* GetMagickCopyright();
+
+ static if ( MagickLibVersion >= 0x681 )
+ {
+ const(char)* GetMagickDelegates();
+ }
+
+ const(char)* GetMagickFeatures();
+ const(char)* GetMagickPackageName();
+ const(char)* GetMagickQuantumDepth(size_t*);
+ const(char)* GetMagickQuantumRange(size_t*);
+ const(char)* GetMagickReleaseDate();
+ const(char)* GetMagickVersion(size_t*);
+
+ static if ( MagickLibVersion >= 0x681 )
+ {
+ void ListMagickVersion(FILE*);
+ }
+}