1 | #include "xdelta3.h"
|
---|
2 |
|
---|
3 | extern int VVV;
|
---|
4 |
|
---|
5 | int VVV;
|
---|
6 |
|
---|
7 | void use(int r)
|
---|
8 | {
|
---|
9 | VVV = r;
|
---|
10 | }
|
---|
11 |
|
---|
12 | int main() {
|
---|
13 | xd3_config config;
|
---|
14 | xd3_stream stream;
|
---|
15 | xd3_source source;
|
---|
16 |
|
---|
17 | xd3_init_config (& config, 0);
|
---|
18 | use (xd3_config_stream (&stream, &config));
|
---|
19 | use (xd3_close_stream (&stream));
|
---|
20 | xd3_abort_stream (&stream);
|
---|
21 | xd3_free_stream (&stream);
|
---|
22 |
|
---|
23 | xd3_avail_input (& stream, NULL, 0);
|
---|
24 | xd3_consume_output (& stream);
|
---|
25 |
|
---|
26 | use (xd3_bytes_on_srcblk (& source, 0));
|
---|
27 | use (xd3_set_source (& stream, & source));
|
---|
28 | xd3_set_flags (& stream, 0);
|
---|
29 |
|
---|
30 | use (xd3_decode_stream (& stream, NULL, 0, NULL, NULL, 0));
|
---|
31 | use (xd3_decode_input (&stream));
|
---|
32 | use (xd3_decoder_needs_source (& stream));
|
---|
33 | use (xd3_get_appheader (& stream, NULL, NULL));
|
---|
34 |
|
---|
35 | use ((int) xd3_errstring (& stream));
|
---|
36 | use ((int) xd3_strerror (0));
|
---|
37 |
|
---|
38 | #if XD3_ENCODER
|
---|
39 | use (xd3_encode_input (&stream));
|
---|
40 | use (xd3_encode_stream (& stream, NULL, 0, NULL, NULL, 0));
|
---|
41 | use (xd3_set_appheader (& stream));
|
---|
42 | use (xd3_encoder_used_source (& stream));
|
---|
43 | use (xd3_encoder_srcbase (& stream));
|
---|
44 | use (xd3_encoder_srclen (& stream));
|
---|
45 | #endif
|
---|
46 | return 0;
|
---|
47 | }
|
---|