xref: /freebsd/sys/contrib/zstd/lib/compress/zstd_opt.h (revision 052d3c129019c2f03488f7cb7399580091f9a713)
10c16b537SWarner Losh /*
20c16b537SWarner Losh  * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
30c16b537SWarner Losh  * All rights reserved.
40c16b537SWarner Losh  *
50c16b537SWarner Losh  * This source code is licensed under both the BSD-style license (found in the
60c16b537SWarner Losh  * LICENSE file in the root directory of this source tree) and the GPLv2 (found
70c16b537SWarner Losh  * in the COPYING file in the root directory of this source tree).
80c16b537SWarner Losh  * You may select, at your option, one of the above-listed licenses.
90c16b537SWarner Losh  */
100c16b537SWarner Losh 
110c16b537SWarner Losh #ifndef ZSTD_OPT_H
120c16b537SWarner Losh #define ZSTD_OPT_H
130c16b537SWarner Losh 
140c16b537SWarner Losh #if defined (__cplusplus)
150c16b537SWarner Losh extern "C" {
160c16b537SWarner Losh #endif
170c16b537SWarner Losh 
18*052d3c12SConrad Meyer #include "zstd.h"   /* ZSTD_CCtx, size_t */
19*052d3c12SConrad Meyer 
200c16b537SWarner Losh size_t ZSTD_compressBlock_btopt(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
210c16b537SWarner Losh size_t ZSTD_compressBlock_btultra(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
220c16b537SWarner Losh 
230c16b537SWarner Losh size_t ZSTD_compressBlock_btopt_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
240c16b537SWarner Losh size_t ZSTD_compressBlock_btultra_extDict(ZSTD_CCtx* ctx, const void* src, size_t srcSize);
250c16b537SWarner Losh 
260c16b537SWarner Losh #if defined (__cplusplus)
270c16b537SWarner Losh }
280c16b537SWarner Losh #endif
290c16b537SWarner Losh 
300c16b537SWarner Losh #endif /* ZSTD_OPT_H */
31