MagickCore
6.8.5
|
#include "magick/studio.h"
#include "magick/blob.h"
#include "magick/client.h"
#include "magick/configure.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/hashmap.h"
#include "magick/magic.h"
#include "magick/memory_.h"
#include "magick/semaphore.h"
#include "magick/string_.h"
#include "magick/string-private.h"
#include "magick/token.h"
#include "magick/utility.h"
#include "magick/xml-tree.h"
Data Structures | |
struct | _MagicMapInfo |
Macros | |
#define | MagicFilename "magic.xml" |
#define | MagickString(magic) (const unsigned char *) (magic), sizeof(magic)-1 |
Typedefs | |
typedef struct _MagicMapInfo | MagicMapInfo |
Functions | |
static MagickBooleanType | InitializeMagicList (ExceptionInfo *) |
static MagickBooleanType | LoadMagicLists (const char *, ExceptionInfo *) |
MagickExport const MagicInfo * | GetMagicInfo (const unsigned char *magic, const size_t length, ExceptionInfo *exception) |
static int | MagicInfoCompare (const void *x, const void *y) |
MagickExport const MagicInfo ** | GetMagicInfoList (const char *pattern, size_t *number_aliases, ExceptionInfo *exception) |
static int | MagicCompare (const void *x, const void *y) |
MagickExport char ** | GetMagicList (const char *pattern, size_t *number_aliases, ExceptionInfo *exception) |
MagickExport const char * | GetMagicName (const MagicInfo *magic_info) |
MagickExport MagickBooleanType | ListMagicInfo (FILE *file, ExceptionInfo *exception) |
static MagickBooleanType | LoadMagicList (const char *xml, const char *filename, const size_t depth, ExceptionInfo *exception) |
MagickExport MagickBooleanType | MagicComponentGenesis (void) |
static void * | DestroyMagicElement (void *magic_info) |
MagickExport void | MagicComponentTerminus (void) |
Variables | |
static const MagicMapInfo | MagicMap [] |
static LinkedListInfo * | magic_list = (LinkedListInfo *) NULL |
static SemaphoreInfo * | magic_semaphore = (SemaphoreInfo *) NULL |
static volatile MagickBooleanType | instantiate_magic = MagickFalse |
#define MagicFilename "magic.xml" |
Referenced by InitializeMagicList().
#define MagickString | ( | magic | ) | (const unsigned char *) (magic), sizeof(magic)-1 |
typedef struct _MagicMapInfo MagicMapInfo |
|
static |
References DestroyString(), _MagicInfo::exempt, _MagicInfo::magic, MagickFalse, _MagicInfo::name, _MagicInfo::path, RelinquishMagickMemory(), and _MagicInfo::target.
Referenced by MagicComponentTerminus().
MagickExport const MagicInfo* GetMagicInfo | ( | const unsigned char * | magic, |
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
References GetNextValueInLinkedList(), GetValueFromLinkedList(), InitializeMagicList(), InsertValueInLinkedList(), instantiate_magic, IsLinkedListEmpty(), _MagicInfo::length, LockSemaphoreInfo(), _MagicInfo::magic, magic_list, magic_semaphore, MagickFalse, _MagicInfo::offset, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), and UnlockSemaphoreInfo().
Referenced by GetMagicInfoList(), GetMagicList(), and SetImageInfo().
MagickExport const MagicInfo** GetMagicInfoList | ( | const char * | pattern, |
size_t * | number_aliases, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), GetMagicInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), magic_list, magic_semaphore, MagicInfoCompare(), MagickFalse, _MagicInfo::name, ResetLinkedListIterator(), _MagicInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListMagicInfo().
MagickExport char** GetMagicList | ( | const char * | pattern, |
size_t * | number_aliases, | ||
ExceptionInfo * | exception | ||
) |
References AcquireQuantumMemory(), ConstantString(), GetMagicInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), magic_list, magic_semaphore, MagicCompare(), MagickFalse, _MagicInfo::name, ResetLinkedListIterator(), _MagicInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport const char* GetMagicName | ( | const MagicInfo * | magic_info | ) |
References GetMagickModule, LogMagickEvent(), MagickSignature, _MagicInfo::name, _MagicInfo::signature, and TraceEvent.
Referenced by SetImageInfo().
|
static |
References AcquireSemaphoreInfo(), instantiate_magic, LoadMagicLists(), LockSemaphoreInfo(), magic_list, magic_semaphore, MagicFilename, MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetMagicInfo().
MagickExport MagickBooleanType ListMagicInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
|
static |
References AcquireMagickMemory(), AcquireString(), AppendValueToLinkedList(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DirectorySeparator, _MagicInfo::exempt, FileToString(), GetMagickModule, GetMagickToken(), GetPathComponent(), HeadPath, IsMagickTrue(), _MagicInfo::length, LocaleCompare(), LocaleNCompare(), LogMagickEvent(), _MagicInfo::magic, magic_list, MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, _MagicInfo::name, NewLinkedList(), _MagicInfo::offset, _MagicInfo::path, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _MagicInfo::signature, _MagicInfo::stealth, StringToLong(), _MagicInfo::target, ThrowFatalException, ThrowFileException, and ThrowMagickException().
Referenced by LoadMagicLists().
static MagickBooleanType LoadMagicLists | ( | const char * | filename, |
ExceptionInfo * | exception | ||
) |
References AcquireMagickMemory(), AppendValueToLinkedList(), CopyMagickString(), DestroyConfigureOptions(), _MagicInfo::exempt, GetConfigureOptions(), GetMagickModule, GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), _MagicInfo::length, _MagicMapInfo::length, LoadMagicList(), _MagicInfo::magic, _MagicMapInfo::magic, magic_list, MagickFalse, MagickSignature, MagickTrue, MagicMap, MaxTextExtent, _MagicInfo::name, _MagicMapInfo::name, NewLinkedList(), _MagicInfo::offset, _MagicMapInfo::offset, _MagicInfo::path, ResetMagickMemory(), ResourceLimitError, _MagicInfo::signature, _MagicInfo::target, ThrowFileException, and ThrowMagickException().
Referenced by InitializeMagicList().
|
static |
References LocaleCompare().
Referenced by GetMagicList().
MagickExport MagickBooleanType MagicComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), magic_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickExport void MagicComponentTerminus | ( | void | ) |
References AcquireSemaphoreInfo(), DestroyLinkedList(), DestroyMagicElement(), DestroySemaphoreInfo(), instantiate_magic, LockSemaphoreInfo(), magic_list, magic_semaphore, MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
References LocaleCompare().
Referenced by GetMagicInfoList().
|
static |
Referenced by GetMagicInfo(), InitializeMagicList(), and MagicComponentTerminus().
|
static |
Referenced by GetMagicInfo(), GetMagicInfoList(), GetMagicList(), InitializeMagicList(), LoadMagicList(), LoadMagicLists(), and MagicComponentTerminus().
|
static |
Referenced by GetMagicInfo(), GetMagicInfoList(), GetMagicList(), InitializeMagicList(), MagicComponentGenesis(), and MagicComponentTerminus().
|
static |
Referenced by LoadMagicLists().