Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
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
11#ifndef CONFIG_H
12#define CONFIG_H
13
14#include <stddef.h>
15
16#define ZSTD_STATIC_LINKING_ONLY
17#include <zstd.h>
18
19#include "data.h"
20
21typedef struct {
22 ZSTD_cParameter param;
23 int value;
25
26typedef struct {
27 size_t size;
28 param_value_t const* data;
30
34typedef struct {
35 const char* name;
40 char const* cli_args;
45 param_values_t param_values;
50 int use_dictionary;
55 int no_pledged_src_size;
60 int advanced_api_only;
61} config_t;
62
68int config_skip_data(config_t const* config, data_t const* data);
69
70#define CONFIG_NO_LEVEL (-ZSTD_TARGETLENGTH_MAX - 1)
77
82 config_t const* config,
83 uint64_t srcSize,
84 size_t dictSize);
85
89extern config_t const* const* configs;
90
91#endif
static const void * data
Definition XzCrc64.c:50
char int srcSize
Definition lz4.h:806
Definition zstd_v04.c:255
Definition deflate.c:120
Definition config.h:34
Definition data.h:28
Definition poolTests.c:28
Definition config.h:21
Definition config.h:26
ZSTD_parameters config_get_zstd_params(config_t const *config, uint64_t srcSize, size_t dictSize)
Definition config.c:352
int config_get_level(config_t const *config)
Definition config.c:341
int config_skip_data(config_t const *config, data_t const *data)
Definition config.c:337
config_t const *const * configs
Definition config.c:335
size_t size
Definition platform.h:559
char name[NAME_LEN_MAX+1]
Name of the filter.
Definition string_conversion.c:450
const void size_t dictSize
Definition zbuff.h:76
ZSTD_cParameter
Definition zstd.h:271