From f26bcf3294c0589ae42b08d72da91a2631efaca6 Mon Sep 17 00:00:00 2001 From: Oliver Hanraths Date: Tue, 21 May 2024 13:32:31 +0200 Subject: [PATCH] Add im7 core GetDelegates() and GetFeatures() --- imagick/magick_version.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/imagick/magick_version.go b/imagick/magick_version.go index 30fee02..2beba9f 100644 --- a/imagick/magick_version.go +++ b/imagick/magick_version.go @@ -5,11 +5,26 @@ package imagick /* +#include #include */ import "C" import "unsafe" +// Returns the ImageMagick delegates as a string constant. +func GetDelegates() (delegates string) { + csdelegates := C.GetMagickDelegates() + + return C.GoString(csdelegates) +} + +// Returns the ImageMagick features as a string constant. +func GetFeatures() (features string) { + csfeatures := C.GetMagickFeatures() + + return C.GoString(csfeatures) +} + // Returns the ImageMagick API copyright as a string constant. func GetCopyright() string { cstr := C.MagickGetCopyright()