/* Copyright 2013 Google Inc. All Rights Reserved. Distributed under MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT */ /* Collection of static dictionary words. */ #ifndef BROTLI_COMMON_DICTIONARY_H_ #define BROTLI_COMMON_DICTIONARY_H_ #include <brotli/port.h> #include <brotli/types.h> #if defined(__cplusplus) || defined(c_plusplus) extern "C" { #endif BrotliDictionary; BROTLI_COMMON_API const BrotliDictionary* BrotliGetDictionary(void); /** * Sets dictionary data. * * When dictionary data is already set / present, this method is no-op. * * Dictionary data MUST be provided before BrotliGetDictionary is invoked. * This method is used ONLY in multi-client environment (e.g. C + Java), * to reduce storage by sharing single dictionary between implementations. */ BROTLI_COMMON_API void BrotliSetDictionaryData(const uint8_t* data); #define BROTLI_MIN_DICTIONARY_WORD_LENGTH … #define BROTLI_MAX_DICTIONARY_WORD_LENGTH … #if defined(__cplusplus) || defined(c_plusplus) } /* extern "C" */ #endif #endif /* BROTLI_COMMON_DICTIONARY_H_ */