#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/log.h"#include "magick/memory_.h"#include "magick/semaphore.h"#include "magick/string_.h"#include "magick/token.h"#include "magick/utility.h"#include "magick/xml-tree.h"
Go to the source code of this file.
Data Structures | |
| struct | _ConfigureMapInfo |
Defines | |
| #define | ConfigureFilename "configure.xml" |
Typedefs | |
| typedef struct _ConfigureMapInfo | ConfigureMapInfo |
Functions | |
| static MagickBooleanType | InitializeConfigureList (ExceptionInfo *) |
| static MagickBooleanType | LoadConfigureLists (const char *, ExceptionInfo *) |
| MagickExport MagickBooleanType | ConfigureComponentGenesis (void) |
| static void * | DestroyConfigureElement (void *configure_info) |
| MagickExport 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, unsigned long *number_options, ExceptionInfo *exception) |
| static int | ConfigureCompare (const void *x, const void *y) |
| MagickExport char ** | GetConfigureList (const char *pattern, unsigned long *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 unsigned long 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 60 of file configure.c.
Referenced by InitializeConfigureList().
| typedef struct _ConfigureMapInfo ConfigureMapInfo |
| static int ConfigureCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
Definition at line 402 of file configure.c.
References LocaleCompare().
Referenced by GetConfigureList().
| MagickExport MagickBooleanType ConfigureComponentGenesis | ( | void | ) |
Definition at line 115 of file configure.c.
References AcquireSemaphoreInfo(), configure_semaphore, and MagickTrue.
Referenced by MagickCoreGenesis().
| MagickExport void ConfigureComponentTerminus | ( | void | ) |
Definition at line 159 of file configure.c.
References AcquireSemaphoreInfo(), configure_list, configure_semaphore, DestroyConfigureElement(), DestroyLinkedList(), DestroySemaphoreInfo(), instantiate_configure, LockSemaphoreInfo(), MagickFalse, and UnlockSemaphoreInfo().
Referenced by MagickCoreTerminus().
| static int ConfigureInfoCompare | ( | const void * | x, | |
| const void * | y | |||
| ) | [static] |
Definition at line 306 of file configure.c.
References LocaleCompare().
Referenced by GetConfigureInfoList().
| static void* DestroyConfigureElement | ( | void * | configure_info | ) | [static] |
Definition at line 140 of file configure.c.
References DestroyString(), _ConfigureInfo::exempt, MagickFalse, _ConfigureInfo::name, _ConfigureInfo::path, RelinquishMagickMemory(), and _ConfigureInfo::value.
Referenced by ConfigureComponentTerminus().
| MagickExport LinkedListInfo* DestroyConfigureOptions | ( | LinkedListInfo * | options | ) |
Definition at line 201 of file configure.c.
References DestroyLinkedList(), DestroyOptions(), GetMagickModule, LogMagickEvent(), and TraceEvent.
Referenced by GetThresholdMap(), ListThresholdMaps(), LoadCoderLists(), LoadColorLists(), LoadConfigureLists(), LoadDelegateLists(), LoadLogLists(), LoadMagicLists(), LoadMimeLists(), LoadPolicyLists(), and LoadTypeLists().
| static void* DestroyOptions | ( | void * | option | ) | [static] |
Definition at line 196 of file configure.c.
References DestroyStringInfo().
Referenced by DestroyConfigureOptions().
| MagickExport const ConfigureInfo* GetConfigureInfo | ( | const char * | name, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 237 of file configure.c.
References configure_list, configure_semaphore, GetNextValueInLinkedList(), GetValueFromLinkedList(), InitializeConfigureList(), InsertValueInLinkedList(), instantiate_configure, IsLinkedListEmpty(), LocaleCompare(), LockSemaphoreInfo(), MagickFalse, _ConfigureInfo::name, RemoveElementByValueFromLinkedList(), ResetLinkedListIterator(), and UnlockSemaphoreInfo().
Referenced by GetConfigureInfoList(), GetConfigureList(), and GetConfigureOption().
| MagickExport const ConfigureInfo** GetConfigureInfoList | ( | const char * | pattern, | |
| unsigned long * | number_options, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 323 of file configure.c.
References AcquireQuantumMemory(), configure_list, 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, | |
| unsigned long * | number_options, | |||
| ExceptionInfo * | exception | |||
| ) |
Definition at line 417 of file configure.c.
References AcquireQuantumMemory(), configure_list, 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 | ) |
Definition at line 482 of file configure.c.
References AcquireExceptionInfo(), ConstantString(), DestroyExceptionInfo(), GetConfigureInfo(), GetConfigureValue(), GetMagickModule, LogMagickEvent(), and TraceEvent.
| MagickExport LinkedListInfo* GetConfigureOptions | ( | const char * | filename, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 532 of file configure.c.
References AppendValueToLinkedList(), ConfigureEvent, ConfigureFileToStringInfo(), ConfigureWarning, CopyMagickString(), DestroyLinkedList(), DestroyString(), FormatMagickString(), GetConfigurePaths(), GetMagickModule, GetNextValueInLinkedList(), GetNumberOfElementsInLinkedList(), LogMagickEvent(), MaxTextExtent, NewLinkedList(), NTResourceToBlob(), RelinquishMagickMemory(), ResetLinkedListIterator(), SetStringInfoPath(), StringToStringInfo(), ThrowMagickException(), and TraceEvent.
Referenced by GetThresholdMap(), ListThresholdMaps(), LoadCoderLists(), LoadColorLists(), LoadConfigureLists(), LoadDelegateLists(), LoadLogLists(), LoadMagicLists(), LoadMimeLists(), LoadPolicyLists(), and LoadTypeLists().
| MagickExport LinkedListInfo* GetConfigurePaths | ( | const char * | filename, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 621 of file configure.c.
References AppendValueToLinkedList(), ChopPathComponents(), ConcatenateMagickString(), ConstantString(), CopyMagickString(), DestroyString(), DirectoryListSeparator, DirectorySeparator, FormatMagickString(), GetClientPath(), GetEnvironmentValue(), GetMagickModule, LogMagickEvent(), MAGICKCORE_CONFIGURE_PATH, MAGICKCORE_CONFIGURE_RELATIVE_PATH, MAGICKCORE_DOCUMENTATION_PATH, MAGICKCORE_SHARE_CONFIGURE_PATH, MAGICKCORE_SHARE_CONFIGURE_RELATIVE_PATH, MAGICKCORE_SHARE_PATH, MagickFalse, MaxTextExtent, NewLinkedList(), NTGetModulePath(), NTRegistryKeyLookup(), RelinquishMagickMemory(), RemoveElementByValueFromLinkedList(), and TraceEvent.
Referenced by GetConfigureOptions(), GetLocaleOptions(), and GetMagickHomeURL().
| MagickExport const char* GetConfigureValue | ( | const ConfigureInfo * | configure_info | ) |
Definition at line 835 of file configure.c.
References GetMagickModule, LogMagickEvent(), MagickSignature, _ConfigureInfo::signature, TraceEvent, and _ConfigureInfo::value.
Referenced by GetConfigureOption().
| static MagickBooleanType InitializeConfigureList | ( | ExceptionInfo * | exception | ) | [static] |
Definition at line 865 of file configure.c.
References AcquireSemaphoreInfo(), configure_list, configure_semaphore, ConfigureFilename, instantiate_configure, LoadConfigureLists(), LockSemaphoreInfo(), MagickFalse, MagickTrue, and UnlockSemaphoreInfo().
Referenced by GetConfigureInfo().
| MagickExport MagickBooleanType ListConfigureInfo | ( | FILE * | file, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 908 of file configure.c.
References GetConfigureInfoList(), LocaleCompare(), MagickFalse, MagickTrue, _ConfigureInfo::path, and RelinquishMagickMemory().
| static MagickBooleanType LoadConfigureList | ( | const char * | xml, | |
| const char * | filename, | |||
| const unsigned long | depth, | |||
| ExceptionInfo * | exception | |||
| ) | [static] |
Definition at line 997 of file configure.c.
References AcquireMagickMemory(), AcquireString(), AppendValueToLinkedList(), ConcatenateMagickString(), configure_list, ConfigureError, ConfigureEvent, ConstantString(), CopyMagickString(), DirectorySeparator, _ConfigureInfo::exempt, FileToString(), GetMagickModule, GetMagickToken(), GetPathComponent(), HeadPath, IsMagickTrue(), LocaleCompare(), LocaleNCompare(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, MaxTextExtent, _ConfigureInfo::name, NewLinkedList(), _ConfigureInfo::path, RelinquishMagickMemory(), ResetMagickMemory(), ResourceLimitError, ResourceLimitFatalError, _ConfigureInfo::signature, _ConfigureInfo::stealth, ThrowFatalException, ThrowFileException, ThrowMagickException(), and _ConfigureInfo::value.
Referenced by LoadConfigureLists().
| static MagickBooleanType LoadConfigureLists | ( | const char * | filename, | |
| ExceptionInfo * | exception | |||
| ) |
Definition at line 1200 of file configure.c.
References AcquireMagickMemory(), AppendValueToLinkedList(), configure_list, ConfigureMap, DestroyConfigureOptions(), _ConfigureInfo::exempt, GetConfigureOptions(), GetMagickModule, GetNextValueInLinkedList(), GetStringInfoDatum(), GetStringInfoPath(), LoadConfigureList(), MagickFalse, MagickSignature, MagickTrue, _ConfigureMapInfo::name, _ConfigureInfo::name, NewLinkedList(), _ConfigureInfo::path, ResetMagickMemory(), ResourceLimitError, _ConfigureInfo::signature, ThrowFileException, ThrowMagickException(), _ConfigureMapInfo::value, and _ConfigureInfo::value.
Referenced by InitializeConfigureList().
LinkedListInfo* configure_list = (LinkedListInfo *) NULL [static] |
Definition at line 82 of file configure.c.
Referenced by ConfigureComponentTerminus(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), InitializeConfigureList(), LoadConfigureList(), and LoadConfigureLists().
SemaphoreInfo* configure_semaphore = (SemaphoreInfo *) NULL [static] |
Definition at line 85 of file configure.c.
Referenced by ConfigureComponentGenesis(), ConfigureComponentTerminus(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), and InitializeConfigureList().
const ConfigureMapInfo ConfigureMap[] [static] |
{
{ "NAME", "ImageMagick" }
}
Definition at line 76 of file configure.c.
Referenced by LoadConfigureLists().
volatile MagickBooleanType instantiate_configure = MagickFalse [static] |
Definition at line 88 of file configure.c.
Referenced by ConfigureComponentTerminus(), GetConfigureInfo(), and InitializeConfigureList().
1.6.1