Renamed SetMagickInfo to AcquireMagickInfo and made the module and description mandatory.
Changed RegisterMagickInfo to return a boolean instead of the supplied pointer.
diff --git a/coders/json.c b/coders/json.c
index 37b919d..0b8db16 100644
--- a/coders/json.c
+++ b/coders/json.c
@@ -109,11 +109,10 @@
MagickInfo
*entry;
- entry=SetMagickInfo("JSON");
+ entry=AcquireMagickInfo("JSON","JSON",
+ "The image format and characteristics");
entry->encoder=(EncodeImageHandler *) WriteJSONImage;
entry->flags^=CoderBlobSupportFlag;
- entry->description=ConstantString("The image format and characteristics");
- entry->module=ConstantString("JSON");
(void) RegisterMagickInfo(entry);
return(MagickImageCoderSignature);
}