blob: 2ad60da2c4f29ee2abaf51a803670ce0c2cbf463 [file] [log] [blame]
Brandon Maierdbe88da2023-01-12 10:27:45 -06001/*
2 * Copyright (c) Yann Collet, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
10
Brandon Maierdbe88da2023-01-12 10:27:45 -060011#ifndef ZSTD_DDICT_H
12#define ZSTD_DDICT_H
13
14/*-*******************************************************
15 * Dependencies
16 *********************************************************/
17#include "../common/zstd_deps.h" /* size_t */
18#include <linux/zstd.h> /* ZSTD_DDict, and several public functions */
19
Brandon Maierdbe88da2023-01-12 10:27:45 -060020/*-*******************************************************
21 * Interface
22 *********************************************************/
23
24/* note: several prototypes are already published in `zstd.h` :
25 * ZSTD_createDDict()
26 * ZSTD_createDDict_byReference()
27 * ZSTD_createDDict_advanced()
28 * ZSTD_freeDDict()
29 * ZSTD_initStaticDDict()
30 * ZSTD_sizeof_DDict()
31 * ZSTD_estimateDDictSize()
32 * ZSTD_getDictID_fromDict()
33 */
34
35const void* ZSTD_DDict_dictContent(const ZSTD_DDict* ddict);
36size_t ZSTD_DDict_dictSize(const ZSTD_DDict* ddict);
37
38void ZSTD_copyDDictParameters(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict);
39
Brandon Maierdbe88da2023-01-12 10:27:45 -060040#endif /* ZSTD_DDICT_H */