summaryrefslogtreecommitdiff
path: root/xdelta3/linkxd3lib.c
blob: 6064467a6d8d5b81942786bf5d67d91985ccd8eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#include "xdelta3.h"

extern int VVV;

int VVV;

void use(int r)
{
  VVV = r;
}

int main() {
  xd3_config config;
  xd3_stream stream;
  xd3_source source;

  xd3_init_config (& config, 0);
  use (xd3_config_stream (&stream, &config));
  use (xd3_close_stream (&stream));
  xd3_abort_stream (&stream);
  xd3_free_stream (&stream);
  
  xd3_avail_input (& stream, NULL, 0);
  xd3_consume_output (& stream);
  
  use (xd3_bytes_on_srcblk (& source, 0));
  use (xd3_set_source (& stream, & source));
  xd3_set_flags (& stream, 0);
  
  use (xd3_decode_stream (& stream, NULL, 0, NULL, NULL, 0));
  use (xd3_decode_input (&stream));
  use (xd3_decoder_needs_source (& stream));
  use (xd3_get_appheader (& stream, NULL, NULL));
  
  use ((int) xd3_errstring (& stream));
  use ((int) xd3_strerror (0));
			     
#if XD3_ENCODER
  use (xd3_encode_input (&stream));
  use (xd3_encode_stream (& stream, NULL, 0, NULL, NULL, 0));
  use (xd3_set_appheader (& stream));
  use (xd3_encoder_used_source (& stream));
  use (xd3_encoder_srcbase (& stream));
  use (xd3_encoder_srclen (& stream));
#endif
  return 0;
}