diff options
Diffstat (limited to 'dmagick/c/magickVersion.d.in')
| -rw-r--r-- | dmagick/c/magickVersion.d.in | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dmagick/c/magickVersion.d.in b/dmagick/c/magickVersion.d.in new file mode 100644 index 0000000..3d7d79c --- /dev/null +++ b/dmagick/c/magickVersion.d.in @@ -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 = 0x@MagickLibVersion@; +///ditto +enum MagickLibVersionText = "@MagickLibVersionText@"; + +/// The quantum depth used by MagickCore. +enum MagickQuantumDepth = @QuantumDepth@; + +/// Defines if HDRI is enabled. +enum MagickHDRISupport = @HDRI@; + +/* + * 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*); + } +} |
