#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/log.h"
#include "MagickCore/memory_.h"
#include "MagickCore/semaphore.h"
#include "MagickCore/string_.h"
#include "MagickCore/string-private.h"
#include "MagickCore/token.h"
#include "MagickCore/utility.h"
#include "MagickCore/utility-private.h"
#include "MagickCore/version.h"
#include "MagickCore/xml-tree.h"
#include "MagickCore/xml-tree-private.h"
Data Structures | |
struct | _ConfigureMapInfo |
Defines | |
#define | ConfigureFilename "configure.xml" |
#define | RegistryKey "ConfigurePath" |
#define | MagickCoreDLL "CORE_RL_MagickCore_.dll" |
#define | MagickCoreDebugDLL "CORE_DB_MagickCore_.dll" |
Typedefs | |
typedef struct _ConfigureMapInfo | ConfigureMapInfo |
Functions | |
static MagickBooleanType | IsConfigureCacheInstantiated (ExceptionInfo *) |
static MagickBooleanType | LoadConfigureCache (LinkedListInfo *, const char *, const char *, const size_t, ExceptionInfo *) |
static void | AddConfigureKey (LinkedListInfo *cache, const char *path, const char *name, const char *value, MagickBooleanType exempt) |
static LinkedListInfo * | AcquireConfigureCache (const char *filename, ExceptionInfo *exception) |
MagickPrivate MagickBooleanType | ConfigureComponentGenesis (void) |
static void * | DestroyConfigureElement (void *configure_info) |
MagickPrivate void | ConfigureComponentTerminus (void) |
static void * | DestroyOptions (void *option) |
MagickExport LinkedListInfo * | DestroyConfigureOptions (LinkedListInfo *options) |
MagickExport const ConfigureInfo * | GetConfigureInfo (const char *name, ExceptionInfo *exception) |
static int | ConfigureInfoCompare (const void *x, const void *y) |
MagickExport const ConfigureInfo ** | GetConfigureInfoList (const char *pattern, size_t *number_options, ExceptionInfo *exception) |
static int | ConfigureCompare (const void *x, const void *y) |
MagickExport char ** | GetConfigureList (const char *pattern, size_t *number_options, ExceptionInfo *exception) |
MagickExport char * | GetConfigureOption (const char *option) |
MagickExport LinkedListInfo * | GetConfigureOptions (const char *filename, ExceptionInfo *exception) |
MagickExport LinkedListInfo * | GetConfigurePaths (const char *filename, ExceptionInfo *exception) |
MagickExport const char * | GetConfigureValue (const ConfigureInfo *configure_info) |
MagickExport MagickBooleanType | ListConfigureInfo (FILE *file, ExceptionInfo *exception) |
Variables | |
static LinkedListInfo * | configure_cache = (LinkedListInfo *) NULL |
static SemaphoreInfo * | configure_semaphore = (SemaphoreInfo *) NULL |
#define ConfigureFilename "configure.xml" |
Referenced by IsConfigureCacheInstantiated().
#define MagickCoreDebugDLL "CORE_DB_MagickCore_.dll" |
Referenced by GetConfigurePaths().
#define MagickCoreDLL "CORE_RL_MagickCore_.dll" |
Referenced by GetConfigurePaths().
#define RegistryKey "ConfigurePath" |
Referenced by GetConfigurePaths().
typedef struct _ConfigureMapInfo ConfigureMapInfo |
static LinkedListInfo* AcquireConfigureCache | ( | const char * | filename, | |
ExceptionInfo * | exception | |||
) | [static] |
References AcquireUniqueFilename(), AddConfigureKey(), DestroyConfigureOptions(), GetConfigureOptions(), GetMagickDelegates(), GetMagickFeatures(), GetMagickQuantumDepth(), GetNextValueInLinkedList(), GetPathComponent(), GetStringInfoDatum(), GetStringInfoPath(), HeadPath, LoadConfigureCache(), MagickFalse, MagickPathExtent, MagickTrue, and NewLinkedList().
Referenced by IsConfigureCacheInstantiated().
static void AddConfigureKey | ( | LinkedListInfo * | cache, | |
const char * | path, | |||
const char * | name, | |||
const char * | value, | |||
MagickBooleanType | exempt | |||
) | [inline, static] |
static int ConfigureCompare | ( | const void * | x, | |
const void * | y | |||
) | [static] |
References LocaleCompare().
Referenced by GetConfigureList().
MagickPrivate MagickBooleanType ConfigureComponentGenesis | ( | void | ) |
References AcquireSemaphoreInfo(), configure_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
MagickPrivate void ConfigureComponentTerminus | ( | void | ) |
static int ConfigureInfoCompare | ( | const void * | x, | |
const void * | y | |||
) | [static] |
References LocaleCompare().
Referenced by GetConfigureInfoList().
static void* DestroyConfigureElement | ( | void * | configure_info | ) | [static] |
References DestroyString(), _ConfigureInfo::exempt, MagickFalse, _ConfigureInfo::name, _ConfigureInfo::path, RelinquishMagickMemory(), and _ConfigureInfo::value.
Referenced by ConfigureComponentTerminus().
MagickExport LinkedListInfo* DestroyConfigureOptions | ( | LinkedListInfo * | options | ) |
References DestroyLinkedList(), and DestroyOptions().
Referenced by AcquireColorCache(), AcquireConfigureCache(), AcquireDelegateCache(), AcquireMimeCache(), AcquirePolicyCache(), AcquireTypeCache(), GetThresholdMap(), and ListThresholdMaps().
static void* DestroyOptions | ( | void * | option | ) | [static] |
References DestroyStringInfo().
Referenced by DestroyConfigureOptions().
MagickExport const ConfigureInfo* GetConfigureInfo | ( | const char * | name, | |
ExceptionInfo * | exception | |||
) |
References configure_cache, configure_semaphore, GetNextValueInLinkedList(), InsertValueInLinkedList(), IsConfigureCacheInstantiated(), LocaleCompare(), LockSemaphoreInfo(), MagickFalse, _ConfigureInfo::name, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), and UnlockSemaphoreInfo().
Referenced by GetConfigureInfoList(), GetConfigureList(), and GetConfigureOption().
MagickExport const ConfigureInfo** GetConfigureInfoList | ( | const char * | pattern, | |
size_t * | number_options, | |||
ExceptionInfo * | exception | |||
) |
References AcquireQuantumMemory(), configure_cache, configure_semaphore, ConfigureInfoCompare(), GetConfigureInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _ConfigureInfo::name, ResetLinkedListIterator(), _ConfigureInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
Referenced by ListConfigureInfo().
MagickExport char** GetConfigureList | ( | const char * | pattern, | |
size_t * | number_options, | |||
ExceptionInfo * | exception | |||
) |
References AcquireQuantumMemory(), configure_cache, configure_semaphore, ConfigureCompare(), ConstantString(), GetConfigureInfo(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), GlobExpression(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, _ConfigureInfo::name, ResetLinkedListIterator(), _ConfigureInfo::stealth, TraceEvent, and UnlockSemaphoreInfo().
MagickExport char* GetConfigureOption | ( | const char * | option | ) |
MagickExport LinkedListInfo* GetConfigureOptions | ( | const char * | filename, | |
ExceptionInfo * | exception | |||
) |
References AcquireStringInfo(), AppendValueToLinkedList(), ConfigureEvent, ConfigureFileToStringInfo(), ConfigureWarning, CopyMagickString(), DestroyLinkedList(), FormatLocaleString(), GetConfigurePaths(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), LogMagickEvent(), MagickPathExtent, NewLinkedList(), RelinquishMagickMemory(), ResetLinkedListIterator(), SetStringInfoDatum(), SetStringInfoLength(), SetStringInfoPath(), ThrowMagickException(), and TraceEvent.
Referenced by AcquireColorCache(), AcquireConfigureCache(), AcquireDelegateCache(), AcquireMimeCache(), AcquirePolicyCache(), AcquireTypeCache(), GetThresholdMap(), and ListThresholdMaps().
MagickExport LinkedListInfo* GetConfigurePaths | ( | const char * | filename, | |
ExceptionInfo * | exception | |||
) |
References AppendValueToLinkedList(), ChopPathComponents(), ConcatenateMagickString(), ConfigureWarning, ConstantString(), CopyMagickString(), DestroyString(), DirectoryListSeparator, DirectorySeparator, FormatLocaleString(), GetClientPath(), GetEnvironmentValue(), GetMagickModule, GetNumberOfElementsInLinkedList(), LogMagickEvent(), MAGICKCORE_CONFIGURE_PATH, MAGICKCORE_CONFIGURE_RELATIVE_PATH, MAGICKCORE_DOCUMENTATION_PATH, MAGICKCORE_SHARE_PATH, MAGICKCORE_SHARE_RELATIVE_PATH, MagickCoreDebugDLL, MagickCoreDLL, MagickFalse, MagickPathExtent, NewLinkedList(), RegistryKey, RelinquishMagickMemory(), ThrowMagickException(), and TraceEvent.
Referenced by GetConfigureOptions(), GetLocaleOptions(), and GetMagickHomeURL().
MagickExport const char* GetConfigureValue | ( | const ConfigureInfo * | configure_info | ) |
References GetMagickModule, LogMagickEvent(), MagickCoreSignature, _ConfigureInfo::signature, TraceEvent, and _ConfigureInfo::value.
Referenced by GetConfigureOption().
static MagickBooleanType IsConfigureCacheInstantiated | ( | ExceptionInfo * | exception | ) | [static] |
References AcquireConfigureCache(), ActivateSemaphoreInfo(), configure_cache, configure_semaphore, ConfigureFilename, LockSemaphoreInfo(), MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetConfigureInfo().
MagickExport MagickBooleanType ListConfigureInfo | ( | FILE * | file, | |
ExceptionInfo * | exception | |||
) |
static MagickBooleanType LoadConfigureCache | ( | LinkedListInfo * | cache, | |
const char * | xml, | |||
const char * | filename, | |||
const size_t | depth, | |||
ExceptionInfo * | exception | |||
) | [static] |
References AcquireCriticalMemory(), AcquireString(), AppendValueToLinkedList(), ConcatenateMagickString(), ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DestroyString(), DirectorySeparator, _ConfigureInfo::exempt, FileToXML(), GetMagickModule, GetNextToken(), GetPathComponent(), HeadPath, IsStringTrue(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickCoreSignature, MagickFalse, MagickMaxRecursionDepth, MagickPathExtent, MagickTrue, _ConfigureInfo::name, _ConfigureInfo::path, RelinquishMagickMemory(), ResourceLimitError, _ConfigureInfo::signature, _ConfigureInfo::stealth, ThrowMagickException(), and _ConfigureInfo::value.
Referenced by AcquireConfigureCache().
LinkedListInfo* configure_cache = (LinkedListInfo *) NULL [static] |
SemaphoreInfo* configure_semaphore = (SemaphoreInfo *) NULL [static] |