![]() |
Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
|
#include <method.h>
Data Fields | |
char const * | name |
method_state_t *(* | create )(data_t const *data) |
result_t(* | compress )(method_state_t *state, config_t const *config) |
void(* | destroy )(method_state_t *state) |
A method that compresses the data using config.
result_t(* compress)(method_state_t *state, config_t const *config) |
Compresses the data in the state using the given config.
state | A pointer to the state returned by create(). |
method_state_t *(* create)(data_t const *data) |
Creates a state that must contain a member variable of method_state_t, and returns a pointer to that member variable.
This method can be used to do expensive work that only depends on the data, like loading the data file into a buffer.
void(* destroy)(method_state_t *state) |
Frees the state.
char const * name |
The identifier for this method in the results.