MagickCore
6.8.5
|
#include "magick/studio.h"
#include "magick/exception.h"
#include "magick/exception-private.h"
#include "magick/hashmap.h"
#include "magick/memory_.h"
#include "magick/semaphore.h"
#include "magick/signature-private.h"
#include "magick/string_.h"
Data Structures | |
struct | _ElementInfo |
struct | _EntryInfo |
struct | _LinkedListInfo |
struct | _HashmapInfo |
Macros | |
#define | MaxCapacities 20 |
Typedefs | |
typedef struct _ElementInfo | ElementInfo |
typedef struct _EntryInfo | EntryInfo |
#define MaxCapacities 20 |
Referenced by IncreaseHashmapCapacity().
typedef struct _ElementInfo ElementInfo |
typedef struct _EntryInfo EntryInfo |
MagickExport MagickBooleanType AppendValueToLinkedList | ( | LinkedListInfo * | list_info, |
const void * | value | ||
) |
References AcquireMagickMemory(), _LinkedListInfo::capacity, _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, IsEventLogging(), LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _ElementInfo::next, _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by GetConfigureOptions(), GetConfigurePaths(), GetLocaleOptions(), LoadColorList(), LoadColorLists(), LoadConfigureList(), LoadConfigureLists(), LoadDelegateList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), LoadPolicyList(), LoadPolicyLists(), and ThrowException().
MagickExport void ClearLinkedList | ( | LinkedListInfo * | list_info, |
void *(*)(void *) | relinquish_value | ||
) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, _LinkedListInfo::next, RelinquishMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
MagickExport MagickBooleanType CompareHashmapString | ( | const void * | target, |
const void * | source | ||
) |
References LocaleCompare(), MagickFalse, and MagickTrue.
MagickExport MagickBooleanType CompareHashmapStringInfo | ( | const void * | target, |
const void * | source | ||
) |
References CompareStringInfo(), MagickFalse, and MagickTrue.
MagickExport HashmapInfo* DestroyHashmap | ( | HashmapInfo * | hashmap_info | ) |
References _HashmapInfo::capacity, _HashmapInfo::debug, DestroyLinkedList(), DestroySemaphoreInfo(), GetMagickModule, GetNextValueInLinkedList(), _LinkedListInfo::head, _EntryInfo::key, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _HashmapInfo::map, _LinkedListInfo::next, _HashmapInfo::relinquish_key, _HashmapInfo::relinquish_value, RelinquishMagickMemory(), _HashmapInfo::semaphore, _HashmapInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _EntryInfo::value.
MagickExport LinkedListInfo* DestroyLinkedList | ( | LinkedListInfo * | list_info, |
void *(*)(void *) | relinquish_value | ||
) |
References _LinkedListInfo::debug, DestroySemaphoreInfo(), GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, RelinquishMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by ColorComponentTerminus(), ConfigureComponentTerminus(), DelegateComponentTerminus(), DestroyConfigureOptions(), DestroyExceptionInfo(), DestroyHashmap(), DestroyLocaleOptions(), GetConfigureOptions(), GetLocaleOptions(), LogComponentTerminus(), MagicComponentTerminus(), MimeComponentTerminus(), and PolicyComponentTerminus().
MagickExport void* GetLastValueInLinkedList | ( | LinkedListInfo * | list_info | ) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by ThrowException().
MagickExport void* GetNextKeyInHashmap | ( | HashmapInfo * | hashmap_info | ) |
References _HashmapInfo::capacity, _HashmapInfo::debug, GetMagickModule, GetNextValueInLinkedList(), _LinkedListInfo::head, _HashmapInfo::head_of_list, _EntryInfo::key, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _HashmapInfo::map, _LinkedListInfo::next, _HashmapInfo::next, _HashmapInfo::semaphore, _HashmapInfo::signature, TraceEvent, and UnlockSemaphoreInfo().
MagickExport void* GetNextValueInHashmap | ( | HashmapInfo * | hashmap_info | ) |
References _HashmapInfo::capacity, _HashmapInfo::debug, GetMagickModule, GetNextValueInLinkedList(), _LinkedListInfo::head, _HashmapInfo::head_of_list, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _HashmapInfo::map, _LinkedListInfo::next, _HashmapInfo::next, _HashmapInfo::semaphore, _HashmapInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _EntryInfo::value.
MagickExport void* GetNextValueInLinkedList | ( | LinkedListInfo * | list_info | ) |
References _LinkedListInfo::debug, GetMagickModule, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by CatchException(), DestroyHashmap(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetConfigureOptions(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetLocaleOptions(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMagicInfo(), GetMagicInfoList(), GetMagickHomeURL(), GetMagicList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetNextKeyInHashmap(), GetNextValueInHashmap(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), GetThresholdMap(), GetValueFromHashmap(), InheritException(), IsRightsAuthorized(), ListThresholdMaps(), LoadCoderLists(), LoadColorLists(), LoadConfigureLists(), LoadDelegateLists(), LoadLocaleLists(), LoadLogLists(), LoadMagicLists(), LoadMimeLists(), LoadPolicyLists(), LoadTypeLists(), PutEntryInHashmap(), QueryMagickColorname(), and RemoveEntryFromHashmap().
MagickExport size_t GetNumberOfElementsInLinkedList | ( | const LinkedListInfo * | list_info | ) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, _LinkedListInfo::signature, and TraceEvent.
Referenced by GetColorInfoList(), GetColorList(), GetConfigureInfoList(), GetConfigureList(), GetConfigureOptions(), GetDelegateInfoList(), GetDelegateList(), GetLogInfoList(), GetLogList(), GetMagicInfoList(), GetMagicList(), GetMimeInfoList(), GetMimeList(), GetPolicyInfoList(), and GetPolicyList().
MagickExport size_t GetNumberOfEntriesInHashmap | ( | const HashmapInfo * | hashmap_info | ) |
MagickExport void* GetValueFromHashmap | ( | HashmapInfo * | hashmap_info, |
const void * | key | ||
) |
References _HashmapInfo::capacity, _HashmapInfo::compare, _HashmapInfo::debug, GetMagickModule, GetNextValueInLinkedList(), _EntryInfo::hash, _HashmapInfo::hash, _LinkedListInfo::head, _EntryInfo::key, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _HashmapInfo::map, _LinkedListInfo::next, _HashmapInfo::semaphore, _HashmapInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _EntryInfo::value.
MagickExport void* GetValueFromLinkedList | ( | LinkedListInfo * | list_info, |
const size_t | index | ||
) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by GetColorCompliance(), GetConfigureInfo(), GetDelegateInfo(), GetLogInfo(), GetMagicInfo(), GetMimeInfo(), GetPolicyInfo(), and SetLogEventMask().
MagickExport size_t HashPointerType | ( | const void * | pointer | ) |
Referenced by NewHashmap().
MagickExport size_t HashStringInfoType | ( | const void * | string_info | ) |
MagickExport size_t HashStringType | ( | const void * | string | ) |
|
static |
References AcquireQuantumMemory(), _HashmapInfo::capacity, DestroySemaphoreInfo(), _LinkedListInfo::elements, _EntryInfo::hash, _LinkedListInfo::head, LockSemaphoreInfo(), MagickFalse, MagickSignature, MagickTrue, _HashmapInfo::map, MaxCapacities, NewLinkedList(), _ElementInfo::next, _LinkedListInfo::next, RelinquishMagickMemory(), ResetMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by PutEntryInHashmap().
MagickExport MagickBooleanType InsertValueInLinkedList | ( | LinkedListInfo * | list_info, |
const size_t | index, | ||
const void * | value | ||
) |
References AcquireMagickMemory(), _LinkedListInfo::capacity, _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _ElementInfo::next, _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by GetColorCompliance(), GetConfigureInfo(), GetDelegateInfo(), GetLogInfo(), GetMagicInfo(), GetMimeInfo(), GetPolicyInfo(), and PutEntryInHashmap().
MagickExport MagickBooleanType InsertValueInSortedLinkedList | ( | LinkedListInfo * | list_info, |
int(*)(const void *, const void *) | compare, | ||
void ** | replace, | ||
const void * | value | ||
) |
References AcquireMagickMemory(), _LinkedListInfo::capacity, _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _ElementInfo::next, RelinquishMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
MagickExport MagickBooleanType IsHashmapEmpty | ( | const HashmapInfo * | hashmap_info | ) |
MagickExport MagickBooleanType IsLinkedListEmpty | ( | const LinkedListInfo * | list_info | ) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _LinkedListInfo::signature, and TraceEvent.
Referenced by GetColorCompliance(), GetConfigureInfo(), GetDelegateInfo(), GetLogInfo(), GetMagicInfo(), GetMimeInfo(), GetPolicyInfo(), IsEventLogging(), LoadDelegateLists(), and LoadMimeLists().
MagickExport MagickBooleanType LinkedListToArray | ( | LinkedListInfo * | list_info, |
void ** | array | ||
) |
MagickExport HashmapInfo* NewHashmap | ( | const size_t | capacity, |
size_t(*)(const void *) | hash, | ||
MagickBooleanType(*)(const void *, const void *) | compare, | ||
void *(*)(void *) | relinquish_key, | ||
void *(*)(void *) | relinquish_value | ||
) |
References AcquireMagickMemory(), AcquireQuantumMemory(), AllocateSemaphoreInfo(), _HashmapInfo::capacity, _HashmapInfo::compare, _HashmapInfo::debug, _HashmapInfo::entries, _HashmapInfo::hash, HashPointerType(), IsEventLogging(), MagickSignature, _HashmapInfo::map, _HashmapInfo::relinquish_key, _HashmapInfo::relinquish_value, ResetMagickMemory(), ResourceLimitFatalError, _HashmapInfo::semaphore, _HashmapInfo::signature, and ThrowFatalException.
MagickExport LinkedListInfo* NewLinkedList | ( | const size_t | capacity | ) |
References AcquireMagickMemory(), AllocateSemaphoreInfo(), _LinkedListInfo::capacity, _LinkedListInfo::debug, _LinkedListInfo::elements, _LinkedListInfo::head, MagickFalse, MagickSignature, _LinkedListInfo::next, ResetMagickMemory(), ResourceLimitFatalError, _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, and ThrowFatalException.
Referenced by GetConfigureOptions(), GetConfigurePaths(), GetExceptionInfo(), GetLocaleOptions(), IncreaseHashmapCapacity(), LoadColorList(), LoadColorLists(), LoadConfigureList(), LoadConfigureLists(), LoadDelegateList(), LoadLogList(), LoadLogLists(), LoadMagicList(), LoadMagicLists(), LoadMimeList(), LoadPolicyList(), LoadPolicyLists(), and PutEntryInHashmap().
MagickExport MagickBooleanType PutEntryInHashmap | ( | HashmapInfo * | hashmap_info, |
const void * | key, | ||
const void * | value | ||
) |
References AcquireMagickMemory(), _HashmapInfo::capacity, _HashmapInfo::compare, _HashmapInfo::debug, _LinkedListInfo::elements, _HashmapInfo::entries, GetMagickModule, GetNextValueInLinkedList(), _EntryInfo::hash, _HashmapInfo::hash, _LinkedListInfo::head, IncreaseHashmapCapacity(), InsertValueInLinkedList(), _EntryInfo::key, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _HashmapInfo::map, NewLinkedList(), _LinkedListInfo::next, _HashmapInfo::relinquish_key, _HashmapInfo::relinquish_value, RelinquishMagickMemory(), RemoveElementFromLinkedList(), _HashmapInfo::semaphore, _HashmapInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _EntryInfo::value.
MagickExport void* RemoveElementByValueFromLinkedList | ( | LinkedListInfo * | list_info, |
const void * | value | ||
) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, _LinkedListInfo::next, RelinquishMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by GetColorCompliance(), GetConfigureInfo(), GetDelegateInfo(), GetLogInfo(), GetMagicInfo(), GetMimeInfo(), and GetPolicyInfo().
MagickExport void* RemoveElementFromLinkedList | ( | LinkedListInfo * | list_info, |
const size_t | index | ||
) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, _LinkedListInfo::next, RelinquishMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by PutEntryInHashmap(), and RemoveEntryFromHashmap().
MagickExport void* RemoveEntryFromHashmap | ( | HashmapInfo * | hashmap_info, |
const void * | key | ||
) |
References _HashmapInfo::capacity, _HashmapInfo::compare, _HashmapInfo::debug, _HashmapInfo::entries, GetMagickModule, GetNextValueInLinkedList(), _EntryInfo::hash, _HashmapInfo::hash, _LinkedListInfo::head, _EntryInfo::key, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, MagickTrue, _HashmapInfo::map, _LinkedListInfo::next, _HashmapInfo::relinquish_key, RelinquishMagickMemory(), RemoveElementFromLinkedList(), _HashmapInfo::semaphore, _HashmapInfo::signature, TraceEvent, UnlockSemaphoreInfo(), and _EntryInfo::value.
MagickExport void* RemoveLastElementFromLinkedList | ( | LinkedListInfo * | list_info | ) |
References _LinkedListInfo::debug, _LinkedListInfo::elements, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _ElementInfo::next, _LinkedListInfo::next, RelinquishMagickMemory(), _LinkedListInfo::semaphore, _LinkedListInfo::signature, _LinkedListInfo::tail, TraceEvent, UnlockSemaphoreInfo(), and _ElementInfo::value.
Referenced by ClearMagickException().
MagickExport void ResetHashmapIterator | ( | HashmapInfo * | hashmap_info | ) |
MagickExport void ResetLinkedListIterator | ( | LinkedListInfo * | list_info | ) |
References _LinkedListInfo::debug, GetMagickModule, _LinkedListInfo::head, LockSemaphoreInfo(), LogMagickEvent(), MagickFalse, MagickSignature, _LinkedListInfo::next, _LinkedListInfo::semaphore, _LinkedListInfo::signature, TraceEvent, and UnlockSemaphoreInfo().
Referenced by CatchException(), GetColorCompliance(), GetColorInfoList(), GetColorList(), GetConfigureInfo(), GetConfigureInfoList(), GetConfigureList(), GetConfigureOptions(), GetDelegateInfo(), GetDelegateInfoList(), GetDelegateList(), GetLocaleOptions(), GetLogInfo(), GetLogInfoList(), GetLogList(), GetMagicInfo(), GetMagicInfoList(), GetMagicList(), GetMimeInfo(), GetMimeInfoList(), GetMimeList(), GetPolicyInfo(), GetPolicyInfoList(), GetPolicyList(), InheritException(), IsRightsAuthorized(), and QueryMagickColorname().