Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
method.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 METHOD_H
12#define METHOD_H
13
14#include <stddef.h>
15
16#include "data.h"
17#include "config.h"
18#include "result.h"
19
24typedef struct {
25 data_t const* data;
27
31typedef struct {
32 char const* name;
40 method_state_t* (*create)(data_t const* data);
48 result_t (*compress)(method_state_t* state, config_t const* config);
52 void (*destroy)(method_state_t* state);
53} method_t;
54
58void method_set_zstdcli(char const* zstdcli);
59
63extern method_t const* const* methods;
64
65#endif
static const void * data
Definition XzCrc64.c:50
struct config_s config
Definition config.h:34
Definition data.h:28
Definition method.h:24
Definition method.h:31
Definition result.h:39
char name[NAME_LEN_MAX+1]
Name of the filter.
Definition string_conversion.c:450
method_t const *const * methods
Definition method.c:701
void method_set_zstdcli(char const *zstdcli)
Definition method.c:23