|
MagickCore
6.7.5
|
#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/hashmap.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/xml-tree.h"
Go to the source code of this file.
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 | InitializeConfigureList (ExceptionInfo *) |
| static MagickBooleanType | LoadConfigureLists (const char *, ExceptionInfo *) |
| 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) |
| static MagickBooleanType | LoadConfigureList (const char *xml, const char *filename, const size_t depth, ExceptionInfo *exception) |
Variables | |
| static const ConfigureMapInfo | ConfigureMap [] |
| static LinkedListInfo * | configure_list = (LinkedListInfo *) NULL |
| static SemaphoreInfo * | configure_semaphore = (SemaphoreInfo *) NULL |
| static volatile MagickBooleanType | instantiate_configure = MagickFalse |
| #define ConfigureFilename "configure.xml" |
Definition at line 63 of file configure.c.
Referenced by InitializeConfigureList().
| #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 int ConfigureCompare | ( | const void * | x, |
| const void * | y | ||
| ) | [static] |
Definition at line 405 of file configure.c.
References LocaleCompare().
Referenced by GetConfigureList().
| MagickPrivate MagickBooleanType ConfigureComponentGenesis | ( | void | ) |
Definition at line 118 of file configure.c.
References AcquireSemaphoreInfo(), configure_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickPrivate void ConfigureComponentTerminus | ( | void | ) |
Definition at line 162 of file configure.c.
References configure_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), configure_list, DestroyLinkedList(), DestroyConfigureElement(), instantiate_configure, MagickFalse, UnlockSemaphoreInfo(), and DestroySemaphoreInfo().
Referenced by MagickCoreTerminus().
| static int ConfigureInfoCompare | ( | const void * | x, |
| const void * | y | ||
| ) | [static] |
Definition at line 309 of file configure.c.
References LocaleCompare().
Referenced by GetConfigureInfoList().
| static void* DestroyConfigureElement | ( | void * | configure_info | ) | [static] |
Definition at line 143 of file configure.c.
References _ConfigureInfo::exempt, MagickFalse, _ConfigureInfo::value, DestroyString(), _ConfigureInfo::name, _ConfigureInfo::path, and RelinquishMagickMemory().
Referenced by ConfigureComponentTerminus().
| MagickExport LinkedListInfo* DestroyConfigureOptions | ( | LinkedListInfo * | options | ) |
Definition at line 204 of file configure.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, DestroyLinkedList(), and DestroyOptions().
Referenced by LoadCoderLists(), LoadColorLists(), LoadConfigureLists(), LoadDelegateLists(), LoadLogLists(), LoadMagicLists(), LoadMimeLists(), LoadPolicyLists(), GetThresholdMap(), ListThresholdMaps(), and LoadTypeLists().
| static void* DestroyOptions | ( | void * | option | ) | [static] |
Definition at line 199 of file configure.c.
References DestroyStringInfo().
Referenced by DestroyConfigureOptions().
| MagickExport const ConfigureInfo* GetConfigureInfo | ( | const char * | name, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 240 of file configure.c.
References configure_list, instantiate_configure, MagickFalse, InitializeConfigureList(), IsLinkedListEmpty(), LocaleCompare(), GetValueFromLinkedList(), LockSemaphoreInfo(), configure_semaphore, ResetLinkedListIterator(), GetNextValueInLinkedList(), _ConfigureInfo::name, InsertValueInLinkedList(), RemoveElementByValueFromLinkedList(), and UnlockSemaphoreInfo().
Referenced by GetConfigureInfoList(), GetConfigureList(), and GetConfigureOption().
| MagickExport const ConfigureInfo** GetConfigureInfoList | ( | const char * | pattern, |
| size_t * | number_options, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 326 of file configure.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, GetConfigureInfo(), AcquireQuantumMemory(), GetNumberOfElementsInLinkedList(), configure_list, LockSemaphoreInfo(), configure_semaphore, ResetLinkedListIterator(), GetNextValueInLinkedList(), _ConfigureInfo::stealth, MagickFalse, GlobExpression(), _ConfigureInfo::name, UnlockSemaphoreInfo(), and ConfigureInfoCompare().
Referenced by ListConfigureInfo().
| MagickExport char** GetConfigureList | ( | const char * | pattern, |
| size_t * | number_options, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 420 of file configure.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, GetConfigureInfo(), AcquireQuantumMemory(), GetNumberOfElementsInLinkedList(), configure_list, LockSemaphoreInfo(), configure_semaphore, ResetLinkedListIterator(), GetNextValueInLinkedList(), _ConfigureInfo::stealth, MagickFalse, GlobExpression(), _ConfigureInfo::name, ConstantString(), UnlockSemaphoreInfo(), and ConfigureCompare().
| MagickExport char* GetConfigureOption | ( | const char * | option | ) |
Definition at line 485 of file configure.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, AcquireExceptionInfo(), GetConfigureInfo(), DestroyExceptionInfo(), GetConfigureValue(), and ConstantString().
| MagickExport LinkedListInfo* GetConfigureOptions | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 535 of file configure.c.
References MaxTextExtent, LogMagickEvent(), TraceEvent, GetMagickModule, CopyMagickString(), NewLinkedList(), GetConfigurePaths(), ResetLinkedListIterator(), GetNextValueInLinkedList(), FormatLocaleString(), ConfigureEvent, ConfigureFileToStringInfo(), AppendValueToLinkedList(), DestroyLinkedList(), RelinquishMagickMemory(), GetNumberOfElementsInLinkedList(), AcquireStringInfo(), SetStringInfoLength(), SetStringInfoDatum(), SetStringInfoPath(), ThrowMagickException(), and ConfigureWarning.
Referenced by LoadCoderLists(), LoadColorLists(), LoadConfigureLists(), LoadDelegateLists(), LoadLogLists(), LoadMagicLists(), LoadMimeLists(), LoadPolicyLists(), GetThresholdMap(), ListThresholdMaps(), and LoadTypeLists().
| MagickExport LinkedListInfo* GetConfigurePaths | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 626 of file configure.c.
References MaxTextExtent, LogMagickEvent(), TraceEvent, GetMagickModule, CopyMagickString(), NewLinkedList(), GetEnvironmentValue(), DirectoryListSeparator, DirectorySeparator, ConcatenateMagickString(), AppendValueToLinkedList(), ConstantString(), DestroyString(), MAGICKCORE_SHARE_PATH, MAGICKCORE_SHAREARCH_PATH, MAGICKCORE_CONFIGURE_PATH, MAGICKCORE_DOCUMENTATION_PATH, RegistryKey, FormatLocaleString(), RelinquishMagickMemory(), MAGICKCORE_CONFIGURE_RELATIVE_PATH, MAGICKCORE_SHARE_RELATIVE_PATH, GetClientPath(), ChopPathComponents(), MagickCoreDLL, MagickFalse, and MagickCoreDebugDLL.
Referenced by GetConfigureOptions(), GetLocaleOptions(), and GetMagickHomeURL().
| MagickExport const char* GetConfigureValue | ( | const ConfigureInfo * | configure_info | ) |
Definition at line 841 of file configure.c.
References LogMagickEvent(), TraceEvent, GetMagickModule, _ConfigureInfo::signature, MagickSignature, and _ConfigureInfo::value.
Referenced by GetConfigureOption().
| static MagickBooleanType InitializeConfigureList | ( | ExceptionInfo * | exception | ) | [static] |
Definition at line 871 of file configure.c.
References configure_list, instantiate_configure, MagickFalse, configure_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), LoadConfigureLists(), ConfigureFilename, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetConfigureInfo().
| MagickExport MagickBooleanType ListConfigureInfo | ( | FILE * | file, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 914 of file configure.c.
References GetConfigureInfoList(), MagickFalse, LocaleCompare(), FormatLocaleFile(), _ConfigureInfo::path, RelinquishMagickMemory(), and MagickTrue.
| static MagickBooleanType LoadConfigureList | ( | const char * | xml, |
| const char * | filename, | ||
| const size_t | depth, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 1005 of file configure.c.
References MaxTextExtent, LogMagickEvent(), ConfigureEvent, GetMagickModule, configure_list, NewLinkedList(), ThrowFileException, ResourceLimitError, MagickFalse, MagickTrue, AcquireString(), GetMagickToken(), CopyMagickString(), LocaleNCompare(), LocaleCompare(), ThrowMagickException(), ConfigureError, GetPathComponent(), HeadPath, ConcatenateMagickString(), DirectorySeparator, FileToString(), RelinquishMagickMemory(), AcquireMagickMemory(), ThrowFatalException, ResourceLimitFatalError, ResetMagickMemory(), _ConfigureInfo::path, ConstantString(), _ConfigureInfo::exempt, _ConfigureInfo::signature, MagickSignature, AppendValueToLinkedList(), _ConfigureInfo::name, _ConfigureInfo::stealth, IsMagickTrue(), and _ConfigureInfo::value.
Referenced by LoadConfigureLists().
| static MagickBooleanType LoadConfigureLists | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1208 of file configure.c.
References MagickFalse, configure_list, NewLinkedList(), ThrowFileException, ResourceLimitError, ConfigureMap, AcquireMagickMemory(), ThrowMagickException(), GetMagickModule, _ConfigureInfo::name, ResetMagickMemory(), _ConfigureInfo::path, _ConfigureMapInfo::name, _ConfigureInfo::value, _ConfigureMapInfo::value, _ConfigureInfo::exempt, MagickTrue, _ConfigureInfo::signature, MagickSignature, AppendValueToLinkedList(), GetConfigureOptions(), GetNextValueInLinkedList(), LoadConfigureList(), GetStringInfoDatum(), GetStringInfoPath(), and DestroyConfigureOptions().
Referenced by InitializeConfigureList().
LinkedListInfo* configure_list = (LinkedListInfo *) NULL [static] |
Definition at line 85 of file configure.c.
Referenced by ConfigureComponentTerminus(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), InitializeConfigureList(), LoadConfigureList(), and LoadConfigureLists().
SemaphoreInfo* configure_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 88 of file configure.c.
Referenced by ConfigureComponentGenesis(), ConfigureComponentTerminus(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), and InitializeConfigureList().
const ConfigureMapInfo ConfigureMap[] [static] |
{
{ "NAME", "ImageMagick" }
}
Definition at line 79 of file configure.c.
Referenced by LoadConfigureLists().
volatile MagickBooleanType instantiate_configure = MagickFalse [static] |
Definition at line 91 of file configure.c.
Referenced by ConfigureComponentTerminus(), GetConfigureInfo(), and InitializeConfigureList().