Rizin
unix-like reverse engineering framework and cli tools
filter_common.h
Go to the documentation of this file.
1 //
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
12 
13 #ifndef LZMA_FILTER_COMMON_H
14 #define LZMA_FILTER_COMMON_H
15 
16 #include "common.h"
17 
18 
20 typedef struct {
23 
27 
30  uint64_t (*memusage)(const void *options);
31 
33 
34 
35 typedef const lzma_filter_coder *(*lzma_filter_find)(lzma_vli id);
36 
37 
40  const lzma_filter *filters,
41  lzma_filter_find coder_find, bool is_encoder);
42 
43 
45  const lzma_filter *filters);
46 
47 
48 #endif
const lzma_allocator * allocator
Definition: block.h:377
const lzma_filter * filters
Definition: container.h:315
uint64_t lzma_raw_coder_memusage(lzma_filter_find coder_find, const lzma_filter *filters)
lzma_ret lzma_raw_coder_init(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter *filters, lzma_filter_find coder_find, bool is_encoder)
const lzma_filter_coder *(* lzma_filter_find)(lzma_vli id)
Definition: filter_common.h:35
static const char struct stat static buf struct stat static buf static vhangup int options
Definition: sflib.h:145
int id
Definition: op.c:540
unsigned long uint64_t
Definition: sftypes.h:28
Custom functions for memory handling.
Definition: base.h:372
Both lzma_filter_encoder and lzma_filter_decoder begin with these members.
Definition: filter_common.h:20
lzma_init_function init
Definition: filter_common.h:26
lzma_vli id
Filter ID.
Definition: filter_common.h:22
Filter options.
Definition: filter.h:43
Hold data and function pointers of the next filter in the chain.
Definition: common.h:135
Definitions common to the whole liblzma library.
lzma_ret(* lzma_init_function)(lzma_next_coder *next, const lzma_allocator *allocator, const lzma_filter_info *filters)
Type of a function used to initialize a filter encoder or decoder.
Definition: common.h:97
uint64_t lzma_vli
Variable-length integer type.
Definition: vli.h:63
lzma_ret
Return values used by several functions in liblzma.
Definition: base.h:57