Lines Matching refs:magic_info

205       *magic_info;  in AcquireMagicList()  local
211 magic_info=(MagicInfo *) AcquireMagickMemory(sizeof(*magic_info)); in AcquireMagicList()
212 if (magic_info == (MagicInfo *) NULL) in AcquireMagicList()
218 (void) memset(magic_info,0,sizeof(*magic_info)); in AcquireMagicList()
219 magic_info->path=(char *) "[built-in]"; in AcquireMagicList()
220 magic_info->name=(char *) p->name; in AcquireMagicList()
221 magic_info->offset=p->offset; in AcquireMagicList()
222 magic_info->target=(char *) p->magic; in AcquireMagicList()
223 magic_info->magic=(unsigned char *) p->magic; in AcquireMagicList()
224 magic_info->length=p->length; in AcquireMagicList()
225 magic_info->exempt=MagickTrue; in AcquireMagicList()
226 magic_info->signature=MagickCoreSignature; in AcquireMagicList()
228 NULL,magic_info); in AcquireMagicList()
231 ResourceLimitError,"MemoryAllocationFailed","`%s'",magic_info->name); in AcquireMagicList()
609 MagickExport const char *GetMagicName(const MagicInfo *magic_info) in GetMagicName() argument
612 assert(magic_info != (MagicInfo *) NULL); in GetMagicName()
613 assert(magic_info->signature == MagickCoreSignature); in GetMagicName()
614 return(magic_info->name); in GetMagicName()
685 **magic_info; in ListMagicInfo() local
698 magic_info=GetMagicInfoList("*",&number_aliases,exception); in ListMagicInfo()
699 if (magic_info == (const MagicInfo **) NULL) in ListMagicInfo()
704 if (magic_info[i]->stealth != MagickFalse) in ListMagicInfo()
707 (LocaleCompare(path,magic_info[i]->path) != 0)) in ListMagicInfo()
709 if (magic_info[i]->path != (char *) NULL) in ListMagicInfo()
710 (void) FormatLocaleFile(file,"\nPath: %s\n\n",magic_info[i]->path); in ListMagicInfo()
716 path=magic_info[i]->path; in ListMagicInfo()
717 (void) FormatLocaleFile(file,"%s",magic_info[i]->name); in ListMagicInfo()
718 for (j=(ssize_t) strlen(magic_info[i]->name); j <= 9; j++) in ListMagicInfo()
720 (void) FormatLocaleFile(file,"%6ld ",(long) magic_info[i]->offset); in ListMagicInfo()
721 if (magic_info[i]->target != (char *) NULL) in ListMagicInfo()
723 for (j=0; magic_info[i]->target[j] != '\0'; j++) in ListMagicInfo()
724 if (isprint((int) ((unsigned char) magic_info[i]->target[j])) != 0) in ListMagicInfo()
725 (void) FormatLocaleFile(file,"%c",magic_info[i]->target[j]); in ListMagicInfo()
728 ((unsigned char) magic_info[i]->target[j])); in ListMagicInfo()
733 magic_info=(const MagicInfo **) RelinquishMagickMemory((void *) magic_info); in ListMagicInfo()
781 static void *DestroyMagicElement(void *magic_info) in DestroyMagicElement() argument
786 p=(MagicInfo *) magic_info; in DestroyMagicElement()