MagickCore  7.0.1
mime.c File Reference
Include dependency graph for mime.c:

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 LinkedListInfoAcquireMimeCache (const char *filename, ExceptionInfo *exception)
 
MagickExport const MimeInfoGetMimeInfo (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 const char * MimeMap
 
static LinkedListInfomime_cache = (LinkedListInfo *) NULL
 
static SemaphoreInfomime_semaphore = (SemaphoreInfo *) NULL
 

Macro Definition Documentation

#define MimeFilename   "mime.xml"

Definition at line 63 of file mime.c.

Referenced by IsMimeCacheInstantiated().

Function Documentation

static void* DestroyMimeElement ( void *  mime_info)
static
MagickExport const char* GetMimeDescription ( const MimeInfo mime_info)
MagickExport const char* GetMimeType ( const MimeInfo mime_info)
static MagickBooleanType IsMimeCacheInstantiated ( ExceptionInfo exception)
static
MagickExport MagickBooleanType ListMimeInfo ( FILE *  file,
ExceptionInfo exception 
)
MagickExport char* MagickToMime ( const char *  magick)
static int MimeCompare ( const void *  x,
const void *  y 
)
static

Definition at line 523 of file mime.c.

Referenced by GetMimeList().

MagickPrivate MagickBooleanType MimeComponentGenesis ( void  )

Definition at line 1041 of file mime.c.

References AcquireSemaphoreInfo(), MagickTrue, and mime_semaphore.

Referenced by MagickCoreGenesis().

static int MimeInfoCompare ( const void *  x,
const void *  y 
)
static

Definition at line 426 of file mime.c.

Referenced by GetMimeInfoList().

Variable Documentation

const char* MimeMap
static
Initial value:
= (char *)
"<?xml version=\"1.0\"?>"
"<mimemap>"
"</mimemap>"

Definition at line 112 of file mime.c.

Referenced by AcquireMimeCache().