|
WizardsToolkit
1.0.7
|
#include "wizard/studio.h"#include "wizard/blob.h"#include "wizard/client.h"#include "wizard/configure.h"#include "wizard/exception.h"#include "wizard/exception-private.h"#include "wizard/hashmap.h"#include "wizard/log.h"#include "wizard/memory_.h"#include "wizard/semaphore.h"#include "wizard/string_.h"#include "wizard/token.h"#include "wizard/utility.h"#include "wizard/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 WizardBooleanType | InitializeConfigureList (ExceptionInfo *) |
| static WizardBooleanType | LoadConfigureLists (const char *, ExceptionInfo *) |
| WizardExport WizardBooleanType | ConfigureComponentGenesis (void) |
| static void * | DestroyConfigureElement (void *configure_info) |
| WizardExport void | ConfigureComponentTerminus (void) |
| static void * | DestroyOptions (void *option) |
| WizardExport LinkedListInfo * | DestroyConfigureOptions (LinkedListInfo *options) |
| WizardExport const ConfigureInfo * | GetConfigureInfo (const char *name, ExceptionInfo *exception) |
| static int | ConfigureInfoCompare (const void *x, const void *y) |
| WizardExport const ConfigureInfo ** | GetConfigureInfoList (const char *pattern, size_t *number_options, ExceptionInfo *exception) |
| static int | ConfigureCompare (const void *x, const void *y) |
| WizardExport char ** | GetConfigureList (const char *pattern, size_t *number_options, ExceptionInfo *exception) |
| WizardExport LinkedListInfo * | GetConfigureOptions (const char *filename, ExceptionInfo *exception) |
| WizardExport LinkedListInfo * | GetConfigurePaths (const char *filename, ExceptionInfo *exception) |
| WizardExport const char * | GetConfigureValue (const ConfigureInfo *configure_info) |
| WizardExport WizardBooleanType | ListConfigureInfo (FILE *file, ExceptionInfo *exception) |
| static WizardBooleanType | 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 WizardBooleanType | instantiate_configure = WizardFalse |
| #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 406 of file configure.c.
References strcasecmp.
Referenced by GetConfigureList().
| WizardExport WizardBooleanType ConfigureComponentGenesis | ( | void | ) |
Definition at line 115 of file configure.c.
References AcquireSemaphoreInfo(), configure_semaphore, and WizardTrue.
Referenced by WizardsToolkitGenesis().
| WizardExport void ConfigureComponentTerminus | ( | void | ) |
Definition at line 160 of file configure.c.
References configure_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), configure_list, DestroyLinkedList(), DestroyConfigureElement(), instantiate_configure, WizardFalse, UnlockSemaphoreInfo(), and DestroySemaphoreInfo().
| static int ConfigureInfoCompare | ( | const void * | x, |
| const void * | y | ||
| ) | [static] |
Definition at line 310 of file configure.c.
References strcasecmp.
Referenced by GetConfigureInfoList().
| static void* DestroyConfigureElement | ( | void * | configure_info | ) | [static] |
Definition at line 141 of file configure.c.
References _ConfigureInfo::exempt, WizardFalse, _ConfigureInfo::value, RelinquishWizardMemory(), _ConfigureInfo::name, and _ConfigureInfo::path.
Referenced by ConfigureComponentTerminus().
| WizardExport LinkedListInfo* DestroyConfigureOptions | ( | LinkedListInfo * | options | ) |
Definition at line 202 of file configure.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, DestroyLinkedList(), and DestroyOptions().
Referenced by LoadConfigureLists(), LoadLogLists(), and LoadMimeLists().
| static void* DestroyOptions | ( | void * | option | ) | [static] |
Definition at line 197 of file configure.c.
References DestroyStringInfo().
Referenced by DestroyConfigureOptions().
| WizardExport const ConfigureInfo* GetConfigureInfo | ( | const char * | name, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 238 of file configure.c.
References configure_list, instantiate_configure, WizardFalse, InitializeConfigureList(), IsLinkedListEmpty(), strcasecmp, GetValueFromLinkedList(), LockSemaphoreInfo(), configure_semaphore, ResetLinkedListIterator(), GetNextValueInLinkedList(), _ConfigureInfo::name, ThrowWizardException(), GetWizardModule, OptionWarning, InsertValueInLinkedList(), RemoveElementByValueFromLinkedList(), and UnlockSemaphoreInfo().
Referenced by GetConfigureInfoList(), and GetConfigureList().
| WizardExport const ConfigureInfo** GetConfigureInfoList | ( | const char * | pattern, |
| size_t * | number_options, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 327 of file configure.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, GetConfigureInfo(), AcquireQuantumMemory(), GetNumberOfElementsInLinkedList(), configure_list, LockSemaphoreInfo(), configure_semaphore, ResetLinkedListIterator(), GetNextValueInLinkedList(), _ConfigureInfo::stealth, WizardFalse, GlobExpression(), _ConfigureInfo::name, UnlockSemaphoreInfo(), and ConfigureInfoCompare().
Referenced by ListConfigureInfo().
| WizardExport char** GetConfigureList | ( | const char * | pattern, |
| size_t * | number_options, | ||
| ExceptionInfo * | exception | ||
| ) |
Definition at line 421 of file configure.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, GetConfigureInfo(), LockSemaphoreInfo(), configure_semaphore, UnlockSemaphoreInfo(), AcquireQuantumMemory(), GetNumberOfElementsInLinkedList(), configure_list, ResetLinkedListIterator(), GetNextValueInLinkedList(), _ConfigureInfo::stealth, WizardFalse, GlobExpression(), _ConfigureInfo::name, ConstantString(), and ConfigureCompare().
| WizardExport LinkedListInfo* GetConfigureOptions | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 492 of file configure.c.
References MaxTextExtent, LogWizardEvent(), TraceEvent, GetWizardModule, CopyWizardString(), NewLinkedList(), GetConfigurePaths(), ResetLinkedListIterator(), GetNextValueInLinkedList(), FormatLocaleString(), ConfigureEvent, ConfigureFileToStringInfo(), AppendValueToLinkedList(), DestroyLinkedList(), RelinquishWizardMemory(), NTResourceToBlob(), StringToStringInfo(), SetStringInfoPath(), GetNumberOfElementsInLinkedList(), ThrowWizardException(), and ConfigureWarning.
Referenced by LoadConfigureLists(), LoadLogLists(), and LoadMimeLists().
| WizardExport LinkedListInfo* GetConfigurePaths | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 581 of file configure.c.
References MaxTextExtent, LogWizardEvent(), TraceEvent, GetWizardModule, CopyWizardString(), NewLinkedList(), GetEnvironmentValue(), DirectoryListSeparator, DirectorySeparator, ConcatenateWizardString(), AppendValueToLinkedList(), AcquireString(), RelinquishWizardMemory(), WIZARDSTOOLKIT_CONFIGURE_PATH, WIZARDSTOOLKIT_SHARE_PATH, ConstantString(), WIZARDSTOOLKIT_SHAREARCH_PATH, WIZARDSTOOLKIT_DOCUMENTATION_PATH, NTRegistryKeyLookup(), FormatLocaleString(), WIZARDSTOOLKIT_CONFIGURE_RELATIVE_PATH, WIZARDSTOOLKIT_SHARE_RELATIVE_PATH, GetClientPath(), ChopPathComponents(), NTGetModulePath(), WizardFalse, and RemoveElementByValueFromLinkedList().
Referenced by GetConfigureOptions().
| WizardExport const char* GetConfigureValue | ( | const ConfigureInfo * | configure_info | ) |
Definition at line 789 of file configure.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, _ConfigureInfo::signature, WizardSignature, and _ConfigureInfo::value.
| static WizardBooleanType InitializeConfigureList | ( | ExceptionInfo * | exception | ) | [static] |
Definition at line 819 of file configure.c.
References configure_list, instantiate_configure, WizardFalse, configure_semaphore, AcquireSemaphoreInfo(), LockSemaphoreInfo(), LoadConfigureLists(), ConfigureFilename, WizardTrue, and UnlockSemaphoreInfo().
Referenced by GetConfigureInfo().
| WizardExport WizardBooleanType ListConfigureInfo | ( | FILE * | file, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 862 of file configure.c.
References GetConfigureInfoList(), WizardFalse, strcasecmp, _ConfigureInfo::path, RelinquishWizardMemory(), and WizardTrue.
| static WizardBooleanType LoadConfigureList | ( | const char * | xml, |
| const char * | filename, | ||
| const size_t | depth, | ||
| ExceptionInfo * | exception | ||
| ) | [static] |
Definition at line 951 of file configure.c.
References LogWizardEvent(), ConfigureEvent, GetWizardModule, WizardFalse, configure_list, NewLinkedList(), ThrowWizardException(), ResourceFatalError, NewXMLTree(), GetXMLTreeChild(), GetXMLTreeAttribute(), ConfigureError, MaxTextExtent, GetPathComponent(), HeadPath, ConcatenateWizardString(), DirectorySeparator, FileToString(), RelinquishWizardMemory(), GetNextXMLTreeTag(), AcquireWizardMemory(), ThrowFatalException, ResetWizardMemory(), _ConfigureInfo::path, ConstantString(), _ConfigureInfo::exempt, _ConfigureInfo::signature, WizardSignature, _ConfigureInfo::name, _ConfigureInfo::stealth, IsWizardTrue(), _ConfigureInfo::value, AppendValueToLinkedList(), and DestroyXMLTree().
Referenced by LoadConfigureLists().
| static WizardBooleanType LoadConfigureLists | ( | const char * | filename, |
| ExceptionInfo * | exception | ||
| ) |
Definition at line 1082 of file configure.c.
References MaxTextExtent, WizardFalse, configure_list, NewLinkedList(), ThrowFileException, FileError, ConfigureMap, AcquireWizardMemory(), ThrowWizardException(), GetWizardModule, ResourceError, ResetWizardMemory(), _ConfigureInfo::path, _ConfigureInfo::name, _ConfigureMapInfo::name, _ConfigureInfo::value, _ConfigureMapInfo::value, _ConfigureInfo::exempt, WizardTrue, _ConfigureInfo::signature, WizardSignature, AppendValueToLinkedList(), GetConfigureOptions(), GetNextValueInLinkedList(), CopyWizardString(), GetStringInfoPath(), LoadConfigureList(), GetStringInfoDatum(), and DestroyConfigureOptions().
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 WizardBooleanType instantiate_configure = WizardFalse [static] |
Definition at line 88 of file configure.c.
Referenced by ConfigureComponentTerminus(), GetConfigureInfo(), and InitializeConfigureList().