MagickCore 7.1.0
Convert, Edit, Or Compose Bitmap Images
|
#include "MagickCore/studio.h"
#include "MagickCore/blob.h"
#include "MagickCore/client.h"
#include "MagickCore/configure.h"
#include "MagickCore/configure-private.h"
#include "MagickCore/exception.h"
#include "MagickCore/exception-private.h"
#include "MagickCore/linked-list.h"
#include "MagickCore/memory_.h"
#include "MagickCore/mime.h"
#include "MagickCore/mime-private.h"
#include "MagickCore/option.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Go to the source code of this file.
Data Structures | |
struct | _MimeInfo |
Macros | |
#define | MimeFilename "mime.xml" |
Functions | |
static MagickBooleanType | IsMimeCacheInstantiated (ExceptionInfo *) |
static MagickBooleanType | LoadMimeCache (LinkedListInfo *, const char *, const char *, const size_t, ExceptionInfo *) |
MagickExport LinkedListInfo * | AcquireMimeCache (const char *filename, ExceptionInfo *exception) |
MagickExport const MimeInfo * | GetMimeInfo (const char *filename, const unsigned char *magic, const size_t length, ExceptionInfo *exception) |
static int | MimeInfoCompare (const void *x, const void *y) |
MagickExport const MimeInfo ** | GetMimeInfoList (const char *pattern, size_t *number_aliases, ExceptionInfo *exception) |
static int | MimeCompare (const void *x, const void *y) |
MagickExport char ** | GetMimeList (const char *pattern, size_t *number_aliases, ExceptionInfo *exception) |
MagickExport const char * | GetMimeDescription (const MimeInfo *mime_info) |
MagickExport const char * | GetMimeType (const MimeInfo *mime_info) |
MagickExport MagickBooleanType | ListMimeInfo (FILE *file, ExceptionInfo *exception) |
MagickExport char * | MagickToMime (const char *magick) |
MagickPrivate MagickBooleanType | MimeComponentGenesis (void) |
static void * | DestroyMimeElement (void *mime_info) |
MagickPrivate void | MimeComponentTerminus (void) |
Variables | |
static LinkedListInfo * | mime_cache = (LinkedListInfo *) NULL |
static SemaphoreInfo * | mime_semaphore = (SemaphoreInfo *) NULL |
MagickExport LinkedListInfo * AcquireMimeCache | ( | const char * | filename, |
ExceptionInfo * | exception | ||
) |
Definition at line 155 of file mime.c.
References DestroyConfigureOptions(), GetConfigureOptions(), GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), LoadMimeCache(), magick_unreferenced, and NewLinkedList().
Referenced by IsMimeCacheInstantiated().
|
static |
Definition at line 1062 of file mime.c.
References _MimeInfo::description, DestroyString(), _MimeInfo::magic, _MimeInfo::path, _MimeInfo::pattern, RelinquishMagickMemory(), and _MimeInfo::type.
Referenced by MimeComponentTerminus().
MagickExport const char * GetMimeDescription | ( | const MimeInfo * | mime_info | ) |
Definition at line 598 of file mime.c.
References _MimeInfo::description, GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MimeInfo::signature, and TraceEvent.
MagickExport const MimeInfo * GetMimeInfo | ( | const char * | filename, |
const unsigned char * | magic, | ||
const size_t | length, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 220 of file mime.c.
References ByteData, _MimeInfo::data_type, _MimeInfo::endian, _MimeInfo::extent, GetNextValueInLinkedList(), GlobExpression(), InsertValueInLinkedList(), IsMimeCacheInstantiated(), _MimeInfo::length, LockSemaphoreInfo(), LongData, LSBEndian, _MimeInfo::magic, MagickFalse, _MimeInfo::mask, mime_cache, mime_semaphore, MSBEndian, _MimeInfo::offset, _MimeInfo::pattern, _MimeInfo::priority, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), ShortData, StringData, UndefinedEndian, UnlockSemaphoreInfo(), and _MimeInfo::value.
Referenced by GetMimeInfoList(), GetMimeList(), and MagickToMime().
MagickExport const MimeInfo ** GetMimeInfoList | ( | const char * | pattern, |
size_t * | number_aliases, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 436 of file mime.c.
References AcquireQuantumMemory(), GetMagickModule, GetMimeInfo(), GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, mime_cache, mime_semaphore, MimeInfoCompare(), ResetLinkedListIterator(), _MimeInfo::stealth, TraceEvent, _MimeInfo::type, and UnlockSemaphoreInfo().
Referenced by ListMimeInfo().
MagickExport char ** GetMimeList | ( | const char * | pattern, |
size_t * | number_aliases, | ||
ExceptionInfo * | exception | ||
) |
Definition at line 532 of file mime.c.
References AcquireQuantumMemory(), ConstantString(), GetMagickModule, GetMimeInfo(), GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, mime_cache, mime_semaphore, MimeCompare(), ResetLinkedListIterator(), _MimeInfo::stealth, TraceEvent, _MimeInfo::type, and UnlockSemaphoreInfo().
MagickExport const char * GetMimeType | ( | const MimeInfo * | mime_info | ) |
Definition at line 629 of file mime.c.
References GetMagickModule, IsEventLogging(), LogMagickEvent(), MagickCoreSignature, MagickFalse, _MimeInfo::signature, TraceEvent, and _MimeInfo::type.
Referenced by MagickToMime().
|
static |
Definition at line 661 of file mime.c.
References AcquireMimeCache(), ActivateSemaphoreInfo(), LockSemaphoreInfo(), MagickFalse, MagickTrue, mime_cache, mime_semaphore, MimeFilename, and UnlockSemaphoreInfo().
Referenced by GetMimeInfo().
MagickExport MagickBooleanType ListMimeInfo | ( | FILE * | file, |
ExceptionInfo * | exception | ||
) |
Definition at line 699 of file mime.c.
References FormatLocaleFile(), GetMimeInfoList(), MagickFalse, MagickTrue, _MimeInfo::path, and RelinquishMagickMemory().
|
static |
Definition at line 790 of file mime.c.
References AcquireCriticalMemory(), AcquireString(), AppendValueToLinkedList(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), _MimeInfo::data_type, _MimeInfo::description, DestroyString(), DestroyXMLTree(), DirectorySeparator, _MimeInfo::endian, _MimeInfo::extent, FileToXML(), GetMagickModule, GetNextXMLTreeTag(), GetPathComponent(), GetXMLTreeAttribute(), GetXMLTreeChild(), HeadPath, IsStringTrue(), _MimeInfo::length, LoadMimeCache(), LogMagickEvent(), _MimeInfo::magic, MagickCoreSignature, MagickDataTypeOptions, MagickEndianOptions, MagickFalse, MagickMaxRecursionDepth, MagickPathExtent, MagickTrue, _MimeInfo::mask, NewXMLTree(), _MimeInfo::offset, ParseCommandOption(), _MimeInfo::path, _MimeInfo::pattern, _MimeInfo::priority, ResourceLimitError, _MimeInfo::signature, _MimeInfo::stealth, StringData, SubstituteString(), ThrowMagickException(), _MimeInfo::type, and _MimeInfo::value.
Referenced by AcquireMimeCache(), and LoadMimeCache().
MagickExport char * MagickToMime | ( | const char * | magick | ) |
Definition at line 994 of file mime.c.
References AcquireExceptionInfo(), ConstantString(), DestroyExceptionInfo(), FormatLocaleString(), GetMimeInfo(), GetMimeType(), LocaleLower(), and MagickPathExtent.
|
static |
Definition at line 517 of file mime.c.
Referenced by GetMimeList().
MagickPrivate MagickBooleanType MimeComponentGenesis | ( | void | ) |
Definition at line 1036 of file mime.c.
References AcquireSemaphoreInfo(), MagickTrue, and mime_semaphore.
Referenced by MagickCoreGenesis().
MagickPrivate void MimeComponentTerminus | ( | void | ) |
Definition at line 1082 of file mime.c.
References ActivateSemaphoreInfo(), DestroyLinkedList(), DestroyMimeElement(), LockSemaphoreInfo(), mime_cache, mime_semaphore, RelinquishSemaphoreInfo(), and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
|
static |
Definition at line 419 of file mime.c.
Referenced by GetMimeInfoList().
|
static |
Definition at line 112 of file mime.c.
Referenced by GetMimeInfo(), GetMimeInfoList(), GetMimeList(), IsMimeCacheInstantiated(), and MimeComponentTerminus().
|
static |
Definition at line 115 of file mime.c.
Referenced by GetMimeInfo(), GetMimeInfoList(), GetMimeList(), IsMimeCacheInstantiated(), MimeComponentGenesis(), and MimeComponentTerminus().