--- truecrypt/common/dictionary.h 2018/04/24 16:42:56 1.1.1.1 +++ truecrypt/common/dictionary.h 2018/04/24 17:06:21 1.1.1.8 @@ -1,21 +1,30 @@ +/* + Copyright (c) 2005-2009 TrueCrypt Developers Association. All rights reserved. + + Governed by the TrueCrypt License 2.8 the full text of which is contained in + the file License.txt included in TrueCrypt binary and source code distribution + packages. +*/ + #ifndef DICTIONARY_H #define DICTIONARY_H #include -#define DATA_POOL_CAPACITY 1000000 +#ifdef __cplusplus +extern "C" { +#endif -typedef struct -{ - char *Key; - int IntKey; - void *Value; -} DictionaryEntry; +#define DATA_POOL_CAPACITY 1000000 -int AddDictionaryEntry (char *key, int intKey, void *value); -void *GetDictionaryValue (char *key); +void AddDictionaryEntry (char *key, int intKey, void *value); +void *GetDictionaryValue (const char *key); void *GetDictionaryValueByInt (int intKey); void *AddPoolData (void *data, size_t dataSize); void ClearDictionaryPool (); +#ifdef __cplusplus +} +#endif + #endif