--- truecrypt/common/dictionary.h 2018/04/24 16:47:30 1.1.1.2 +++ truecrypt/common/dictionary.h 2018/04/24 16:57:30 1.1.1.5 @@ -1,7 +1,7 @@ /* - Copyright (c) TrueCrypt Foundation. All rights reserved. + Copyright (c) 2005 TrueCrypt Foundation. All rights reserved. - Covered by the TrueCrypt License 2.3 the full text of which is contained + Governed by the TrueCrypt License 2.6 the full text of which is contained in the file License.txt included in TrueCrypt binary and source code distribution packages. */ @@ -11,6 +11,10 @@ #include +#ifdef __cplusplus +extern "C" { +#endif + #define DATA_POOL_CAPACITY 1000000 typedef struct @@ -21,9 +25,13 @@ typedef struct } DictionaryEntry; int AddDictionaryEntry (char *key, int intKey, void *value); -void *GetDictionaryValue (char *key); +void *GetDictionaryValue (const char *key); void *GetDictionaryValueByInt (int intKey); void *AddPoolData (void *data, size_t dataSize); void ClearDictionaryPool (); +#ifdef __cplusplus +} +#endif + #endif