Skip to content

Commit

Permalink
fixup! Add im7 core GetDelegates() and GetFeatures()
Browse files Browse the repository at this point in the history
  • Loading branch information
coderkun authored and justinfx committed May 22, 2024
1 parent ab55986 commit 6922a51
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions imagick/magick_version.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,15 @@ import "C"
import "unsafe"

// Returns the ImageMagick delegates as a string constant.
func GetDelegates() (delegates string) {
csdelegates := C.GetMagickDelegates()

return C.GoString(csdelegates)
func GetDelegates() string {
cstr := C.GetMagickDelegates()
return C.GoString(cstr)
}

// Returns the ImageMagick features as a string constant.
func GetFeatures() (features string) {
csfeatures := C.GetMagickFeatures()

return C.GoString(csfeatures)
func GetFeatures() string {
cstr := C.GetMagickFeatures()
return C.GoString(cstr)
}

// Returns the ImageMagick API copyright as a string constant.
Expand Down

0 comments on commit 6922a51

Please sign in to comment.