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
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
/* automatically generated by rust-bindgen */

pub const __MINILZO_H_INCLUDED: u32 = 1;
pub const MINILZO_VERSION: u32 = 8352;
pub const _LIBC_LIMITS_H_: u32 = 1;
pub const _FEATURES_H: u32 = 1;
pub const _DEFAULT_SOURCE: u32 = 1;
pub const __USE_ISOC11: u32 = 1;
pub const __USE_ISOC99: u32 = 1;
pub const __USE_ISOC95: u32 = 1;
pub const __USE_POSIX_IMPLICITLY: u32 = 1;
pub const _POSIX_SOURCE: u32 = 1;
pub const _POSIX_C_SOURCE: u32 = 200809;
pub const __USE_POSIX: u32 = 1;
pub const __USE_POSIX2: u32 = 1;
pub const __USE_POSIX199309: u32 = 1;
pub const __USE_POSIX199506: u32 = 1;
pub const __USE_XOPEN2K: u32 = 1;
pub const __USE_XOPEN2K8: u32 = 1;
pub const _ATFILE_SOURCE: u32 = 1;
pub const __USE_MISC: u32 = 1;
pub const __USE_ATFILE: u32 = 1;
pub const __USE_FORTIFY_LEVEL: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0;
pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0;
pub const _STDC_PREDEF_H: u32 = 1;
pub const __STDC_IEC_559__: u32 = 1;
pub const __STDC_IEC_559_COMPLEX__: u32 = 1;
pub const __STDC_ISO_10646__: u32 = 201706;
pub const __GNU_LIBRARY__: u32 = 6;
pub const __GLIBC__: u32 = 2;
pub const __GLIBC_MINOR__: u32 = 30;
pub const _SYS_CDEFS_H: u32 = 1;
pub const __glibc_c99_flexarr_available: u32 = 1;
pub const __WORDSIZE: u32 = 64;
pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1;
pub const __SYSCALL_WORDSIZE: u32 = 64;
pub const __HAVE_GENERIC_SELECTION: u32 = 1;
pub const __GLIBC_USE_LIB_EXT2: u32 = 0;
pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0;
pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0;
pub const MB_LEN_MAX: u32 = 16;
pub const _BITS_POSIX1_LIM_H: u32 = 1;
pub const _POSIX_AIO_LISTIO_MAX: u32 = 2;
pub const _POSIX_AIO_MAX: u32 = 1;
pub const _POSIX_ARG_MAX: u32 = 4096;
pub const _POSIX_CHILD_MAX: u32 = 25;
pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
pub const _POSIX_HOST_NAME_MAX: u32 = 255;
pub const _POSIX_LINK_MAX: u32 = 8;
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
pub const _POSIX_MAX_CANON: u32 = 255;
pub const _POSIX_MAX_INPUT: u32 = 255;
pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
pub const _POSIX_NAME_MAX: u32 = 14;
pub const _POSIX_NGROUPS_MAX: u32 = 8;
pub const _POSIX_OPEN_MAX: u32 = 20;
pub const _POSIX_PATH_MAX: u32 = 256;
pub const _POSIX_PIPE_BUF: u32 = 512;
pub const _POSIX_RE_DUP_MAX: u32 = 255;
pub const _POSIX_RTSIG_MAX: u32 = 8;
pub const _POSIX_SEM_NSEMS_MAX: u32 = 256;
pub const _POSIX_SEM_VALUE_MAX: u32 = 32767;
pub const _POSIX_SIGQUEUE_MAX: u32 = 32;
pub const _POSIX_SSIZE_MAX: u32 = 32767;
pub const _POSIX_STREAM_MAX: u32 = 8;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_TIMER_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX_TZNAME_MAX: u32 = 6;
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
pub const NR_OPEN: u32 = 1024;
pub const NGROUPS_MAX: u32 = 65536;
pub const ARG_MAX: u32 = 131072;
pub const LINK_MAX: u32 = 127;
pub const MAX_CANON: u32 = 255;
pub const MAX_INPUT: u32 = 255;
pub const NAME_MAX: u32 = 255;
pub const PATH_MAX: u32 = 4096;
pub const PIPE_BUF: u32 = 4096;
pub const XATTR_NAME_MAX: u32 = 255;
pub const XATTR_SIZE_MAX: u32 = 65536;
pub const XATTR_LIST_MAX: u32 = 65536;
pub const RTSIG_MAX: u32 = 32;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const PTHREAD_KEYS_MAX: u32 = 1024;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const AIO_PRIO_DELTA_MAX: u32 = 20;
pub const PTHREAD_STACK_MIN: u32 = 16384;
pub const DELAYTIMER_MAX: u32 = 2147483647;
pub const TTY_NAME_MAX: u32 = 32;
pub const LOGIN_NAME_MAX: u32 = 256;
pub const HOST_NAME_MAX: u32 = 64;
pub const MQ_PRIO_MAX: u32 = 32768;
pub const SEM_VALUE_MAX: u32 = 2147483647;
pub const _BITS_POSIX2_LIM_H: u32 = 1;
pub const _POSIX2_BC_BASE_MAX: u32 = 99;
pub const _POSIX2_BC_DIM_MAX: u32 = 2048;
pub const _POSIX2_BC_SCALE_MAX: u32 = 99;
pub const _POSIX2_BC_STRING_MAX: u32 = 1000;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX2_EXPR_NEST_MAX: u32 = 32;
pub const _POSIX2_LINE_MAX: u32 = 2048;
pub const _POSIX2_RE_DUP_MAX: u32 = 255;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const BC_BASE_MAX: u32 = 99;
pub const BC_DIM_MAX: u32 = 2048;
pub const BC_SCALE_MAX: u32 = 99;
pub const BC_STRING_MAX: u32 = 1000;
pub const COLL_WEIGHTS_MAX: u32 = 255;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const CHARCLASS_NAME_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 32767;
pub const __LZODEFS_H_INCLUDED: u32 = 1;
pub const _CRT_NONSTDC_NO_DEPRECATE: u32 = 1;
pub const _CRT_NONSTDC_NO_WARNINGS: u32 = 1;
pub const _CRT_SECURE_NO_DEPRECATE: u32 = 1;
pub const _CRT_SECURE_NO_WARNINGS: u32 = 1;
pub const LZO_0xffffUL: u32 = 65535;
pub const LZO_0xffffffffUL: u32 = 4294967295;
pub const LZO_0xffffL: u32 = 65535;
pub const LZO_0xffffffffL: u32 = 4294967295;
pub const LZO_CFG_USE_COUNTER: u32 = 1;
pub const LZO_OS_POSIX: u32 = 1;
pub const LZO_INFO_OS: &'static [u8; 6usize] = b"posix\0";
pub const LZO_OS_POSIX_LINUX: u32 = 1;
pub const LZO_INFO_OS_POSIX: &'static [u8; 6usize] = b"linux\0";
pub const LZO_CC_CLANG_VENDOR_LLVM: u32 = 1;
pub const LZO_INFO_CC: &'static [u8; 6usize] = b"clang\0";
pub const LZO_ARCH_AMD64: u32 = 1;
pub const LZO_INFO_ARCH: &'static [u8; 6usize] = b"amd64\0";
pub const LZO_ARCH_X64: u32 = 1;
pub const LZO_TARGET_FEATURE_SSE2: u32 = 1;
pub const LZO_MM_FLAT: u32 = 1;
pub const LZO_INFO_MM: &'static [u8; 5usize] = b"flat\0";
pub const LZO_CFG_USE_NEW_STYLE_CASTS: u32 = 0;
pub const __lzo_HAVE_inline: u32 = 1;
pub const __lzo_HAVE_forceinline: u32 = 1;
pub const __lzo_HAVE_noinline: u32 = 1;
pub const __lzo_HAVE_c99_extern_inline: u32 = 1;
pub const __lzo_HAVE_may_alias: u32 = 1;
pub const __lzo_HAVE_noreturn: u32 = 1;
pub const __lzo_HAVE_nothrow: u32 = 1;
pub const __lzo_HAVE_restrict: u32 = 1;
pub const __lzo_HAVE_alignof: u32 = 1;
pub const __lzo_HAVE_constructor: u32 = 1;
pub const __lzo_HAVE_destructor: u32 = 1;
pub const __lzo_HAVE_likely: u32 = 1;
pub const __lzo_HAVE_unlikely: u32 = 1;
pub const __lzo_HAVE_unreachable: u32 = 1;
pub const LZO_SIZEOF_CHAR: u32 = 1;
pub const LZO_WORDSIZE: u32 = 8;
pub const LZO_ABI_LITTLE_ENDIAN: u32 = 1;
pub const LZO_INFO_ABI_ENDIAN: &'static [u8; 3usize] = b"le\0";
pub const LZO_ABI_LP64: u32 = 1;
pub const LZO_INFO_ABI_PM: &'static [u8; 5usize] = b"lp64\0";
pub const LZO_LIBC_GLIBC: u32 = 138752;
pub const LZO_INFO_LIBC: &'static [u8; 6usize] = b"glibc\0";
pub const LZO_ASM_SYNTAX_GNUC: u32 = 1;
pub const LZO_OPT_AVOID_INT_INDEX: u32 = 1;
pub const LZO_OPT_AVOID_UINT_INDEX: u32 = 1;
pub const LZO_OPT_UNALIGNED16: u32 = 1;
pub const LZO_OPT_UNALIGNED32: u32 = 1;
pub const LZO_OPT_UNALIGNED64: u32 = 1;
pub const __LZO_INFOSTR_MM: &'static [u8; 1usize] = b"\0";
pub const __LZO_INFOSTR_PM: &'static [u8; 6usize] = b".lp64\0";
pub const __LZO_INFOSTR_ENDIAN: &'static [u8; 4usize] = b".le\0";
pub const __LZO_INFOSTR_OSNAME: &'static [u8; 12usize] = b"posix.linux\0";
pub const __LZO_INFOSTR_LIBC: &'static [u8; 7usize] = b".glibc\0";
pub const __LZO_INFOSTR_CCVER: &'static [u8; 2usize] = b" \0";
pub const LZO_INFO_STRING: &'static [u8; 39usize] = b"amd64.lp64.le posix.linux.glibc clang \0";
pub const LZO_TYPEOF_CHAR: u32 = 1;
pub const LZO_TYPEOF_SHORT: u32 = 2;
pub const LZO_TYPEOF_INT: u32 = 3;
pub const LZO_TYPEOF_LONG: u32 = 4;
pub const LZO_TYPEOF_LONG_LONG: u32 = 5;
pub const LZO_TYPEOF___INT8: u32 = 17;
pub const LZO_TYPEOF___INT16: u32 = 18;
pub const LZO_TYPEOF___INT32: u32 = 19;
pub const LZO_TYPEOF___INT64: u32 = 20;
pub const LZO_TYPEOF___INT128: u32 = 21;
pub const LZO_TYPEOF___INT256: u32 = 22;
pub const LZO_TYPEOF___MODE_QI: u32 = 33;
pub const LZO_TYPEOF___MODE_HI: u32 = 34;
pub const LZO_TYPEOF___MODE_SI: u32 = 35;
pub const LZO_TYPEOF___MODE_DI: u32 = 36;
pub const LZO_TYPEOF___MODE_TI: u32 = 37;
pub const LZO_TYPEOF_CHAR_P: u32 = 129;
pub const LZO_TYPEOF_LZO_INT16E_T: u32 = 2;
pub const LZO_SIZEOF_LZO_INT16E_T: u32 = 2;
pub const LZO_TYPEOF_LZO_INT32E_T: u32 = 3;
pub const LZO_SIZEOF_LZO_INT32E_T: u32 = 4;
pub const LZO_TYPEOF_LZO_INT64E_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT64E_T: u32 = 8;
pub const LZO_SIZEOF_LZO_INT32L_T: u32 = 4;
pub const LZO_TYPEOF_LZO_INT32L_T: u32 = 3;
pub const LZO_SIZEOF_LZO_INT64L_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT64L_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT32F_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT32F_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT64F_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT64F_T: u32 = 4;
pub const LZO_TYPEOF_LZO_INTPTR_T: u32 = 4;
pub const LZO_TYPEOF_LZO_WORD_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT8_T: u32 = 1;
pub const LZO_TYPEOF_LZO_INT8_T: u32 = 1;
pub const LZO_SIZEOF_LZO_INT16_T: u32 = 2;
pub const LZO_TYPEOF_LZO_INT16_T: u32 = 2;
pub const LZO_SIZEOF_LZO_INT32_T: u32 = 4;
pub const LZO_TYPEOF_LZO_INT32_T: u32 = 3;
pub const LZO_SIZEOF_LZO_INT64_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT64_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT_LEAST32_T: u32 = 4;
pub const LZO_TYPEOF_LZO_INT_LEAST32_T: u32 = 3;
pub const LZO_SIZEOF_LZO_INT_LEAST64_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT_LEAST64_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT_FAST32_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT_FAST32_T: u32 = 4;
pub const LZO_SIZEOF_LZO_INT_FAST64_T: u32 = 8;
pub const LZO_TYPEOF_LZO_INT_FAST64_T: u32 = 4;
pub const __LZOCONF_H_INCLUDED: u32 = 1;
pub const LZO_VERSION: u32 = 8352;
pub const LZO_VERSION_STRING: &'static [u8; 5usize] = b"2.10\0";
pub const LZO_VERSION_DATE: &'static [u8; 12usize] = b"Mar 01 2017\0";
pub const LZO_TYPEOF_LZO_INT: u32 = 4;
pub const LZO_E_OK: u32 = 0;
pub const LZO_E_ERROR: i32 = -1;
pub const LZO_E_OUT_OF_MEMORY: i32 = -2;
pub const LZO_E_NOT_COMPRESSIBLE: i32 = -3;
pub const LZO_E_INPUT_OVERRUN: i32 = -4;
pub const LZO_E_OUTPUT_OVERRUN: i32 = -5;
pub const LZO_E_LOOKBEHIND_OVERRUN: i32 = -6;
pub const LZO_E_EOF_NOT_FOUND: i32 = -7;
pub const LZO_E_INPUT_NOT_CONSUMED: i32 = -8;
pub const LZO_E_NOT_YET_IMPLEMENTED: i32 = -9;
pub const LZO_E_INVALID_ARGUMENT: i32 = -10;
pub const LZO_E_INVALID_ALIGNMENT: i32 = -11;
pub const LZO_E_OUTPUT_NOT_CONSUMED: i32 = -12;
pub const LZO_E_INTERNAL_ERROR: i32 = -99;
pub const LZO1X_MEM_DECOMPRESS: u32 = 0;
pub type size_t = ::std::os::raw::c_ulong;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: u128,
}
#[test]
fn bindgen_test_layout_max_align_t() {
    assert_eq!(
        ::std::mem::size_of::<max_align_t>(),
        32usize,
        concat!("Size of: ", stringify!(max_align_t))
    );
    assert_eq!(
        ::std::mem::align_of::<max_align_t>(),
        16usize,
        concat!("Alignment of ", stringify!(max_align_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce2)
        )
    );
}
extern "C" {
    pub static mut lzo_cta__0: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__1: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__2: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__3: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__4: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__5: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__6: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__7: [::std::os::raw::c_int; 1usize];
}
pub type lzo_llong_t__ = ::std::os::raw::c_longlong;
pub type lzo_ullong_t__ = ::std::os::raw::c_ulonglong;
extern "C" {
    pub static mut lzo_cta__8: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__9: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__10: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__11: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__12: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__13: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__14: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__15: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__16: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__17: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__18: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__19: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__20: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__21: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__22: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__23: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__24: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__25: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__26: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__27: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__28: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__29: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__30: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__31: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__32: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__33: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__34: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__35: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__36: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__37: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__38: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__39: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__40: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__41: [::std::os::raw::c_int; 1usize];
}
pub type lzo_uint = ::std::os::raw::c_ulong;
pub type lzo_int = ::std::os::raw::c_long;
pub type lzo_bool = ::std::os::raw::c_int;
extern "C" {
    pub static mut lzo_cta__42: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__43: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__44: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__45: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__46: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__47: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__48: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__49: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__50: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__51: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__52: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__53: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__54: [::std::os::raw::c_int; 1usize];
}
extern "C" {
    pub static mut lzo_cta__55: [::std::os::raw::c_int; 1usize];
}
pub type lzo_compress_t = ::std::option::Option<
    unsafe extern "C" fn(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type lzo_decompress_t = ::std::option::Option<
    unsafe extern "C" fn(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type lzo_optimize_t = ::std::option::Option<
    unsafe extern "C" fn(
        src: *mut ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int,
>;
pub type lzo_compress_dict_t = ::std::option::Option<
    unsafe extern "C" fn(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
        dict: *const ::std::os::raw::c_uchar,
        dict_len: lzo_uint,
    ) -> ::std::os::raw::c_int,
>;
pub type lzo_decompress_dict_t = ::std::option::Option<
    unsafe extern "C" fn(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
        dict: *const ::std::os::raw::c_uchar,
        dict_len: lzo_uint,
    ) -> ::std::os::raw::c_int,
>;
pub type lzo_alloc_func_t = ::std::option::Option<
    unsafe extern "C" fn(
        self_: *mut lzo_callback_t,
        items: lzo_uint,
        size: lzo_uint,
    ) -> *mut ::std::os::raw::c_void,
>;
pub type lzo_free_func_t = ::std::option::Option<
    unsafe extern "C" fn(self_: *mut lzo_callback_t, ptr: *mut ::std::os::raw::c_void),
>;
pub type lzo_progress_func_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *mut lzo_callback_t,
        arg2: lzo_uint,
        arg3: lzo_uint,
        arg4: ::std::os::raw::c_int,
    ),
>;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct lzo_callback_t {
    pub nalloc: lzo_alloc_func_t,
    pub nfree: lzo_free_func_t,
    pub nprogress: lzo_progress_func_t,
    pub user1: *mut ::std::os::raw::c_void,
    pub user2: lzo_uint,
    pub user3: lzo_uint,
}
#[test]
fn bindgen_test_layout_lzo_callback_t() {
    assert_eq!(
        ::std::mem::size_of::<lzo_callback_t>(),
        48usize,
        concat!("Size of: ", stringify!(lzo_callback_t))
    );
    assert_eq!(
        ::std::mem::align_of::<lzo_callback_t>(),
        8usize,
        concat!("Alignment of ", stringify!(lzo_callback_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_callback_t>())).nalloc as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_callback_t),
            "::",
            stringify!(nalloc)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_callback_t>())).nfree as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_callback_t),
            "::",
            stringify!(nfree)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_callback_t>())).nprogress as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_callback_t),
            "::",
            stringify!(nprogress)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_callback_t>())).user1 as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_callback_t),
            "::",
            stringify!(user1)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_callback_t>())).user2 as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_callback_t),
            "::",
            stringify!(user2)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_callback_t>())).user3 as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_callback_t),
            "::",
            stringify!(user3)
        )
    );
}
extern "C" {
    pub fn __lzo_init_v2(
        arg1: ::std::os::raw::c_uint,
        arg2: ::std::os::raw::c_int,
        arg3: ::std::os::raw::c_int,
        arg4: ::std::os::raw::c_int,
        arg5: ::std::os::raw::c_int,
        arg6: ::std::os::raw::c_int,
        arg7: ::std::os::raw::c_int,
        arg8: ::std::os::raw::c_int,
        arg9: ::std::os::raw::c_int,
        arg10: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lzo_version() -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn lzo_version_string() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn lzo_version_date() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn _lzo_version_string() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn _lzo_version_date() -> *const ::std::os::raw::c_char;
}
extern "C" {
    pub fn lzo_memcmp(
        a: *const ::std::os::raw::c_void,
        b: *const ::std::os::raw::c_void,
        len: lzo_uint,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lzo_memcpy(
        dst: *mut ::std::os::raw::c_void,
        src: *const ::std::os::raw::c_void,
        len: lzo_uint,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn lzo_memmove(
        dst: *mut ::std::os::raw::c_void,
        src: *const ::std::os::raw::c_void,
        len: lzo_uint,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn lzo_memset(
        buf: *mut ::std::os::raw::c_void,
        c: ::std::os::raw::c_int,
        len: lzo_uint,
    ) -> *mut ::std::os::raw::c_void;
}
extern "C" {
    pub fn lzo_adler32(
        c: ::std::os::raw::c_uint,
        buf: *const ::std::os::raw::c_uchar,
        len: lzo_uint,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn lzo_crc32(
        c: ::std::os::raw::c_uint,
        buf: *const ::std::os::raw::c_uchar,
        len: lzo_uint,
    ) -> ::std::os::raw::c_uint;
}
extern "C" {
    pub fn lzo_get_crc32_table() -> *const ::std::os::raw::c_uint;
}
extern "C" {
    pub fn _lzo_config_check() -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union lzo_align_t {
    pub a00: *mut ::std::os::raw::c_void,
    pub a01: *mut ::std::os::raw::c_uchar,
    pub a02: lzo_uint,
    pub a03: lzo_uint,
    pub a04: ::std::os::raw::c_ulong,
    pub a05: *mut ::std::os::raw::c_void,
    pub a06: *mut ::std::os::raw::c_uchar,
    pub a07: ::std::os::raw::c_ulong,
    pub a08: size_t,
    pub a09: isize,
    pub a10: ::std::os::raw::c_ulong,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_lzo_align_t() {
    assert_eq!(
        ::std::mem::size_of::<lzo_align_t>(),
        8usize,
        concat!("Size of: ", stringify!(lzo_align_t))
    );
    assert_eq!(
        ::std::mem::align_of::<lzo_align_t>(),
        8usize,
        concat!("Alignment of ", stringify!(lzo_align_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a00 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a00)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a01 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a01)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a02 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a02)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a03 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a03)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a04 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a04)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a05 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a05)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a06 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a06)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a07 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a07)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a08 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a08)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a09 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a09)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<lzo_align_t>())).a10 as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(lzo_align_t),
            "::",
            stringify!(a10)
        )
    );
}
extern "C" {
    pub fn __lzo_align_gap(
        p: *const ::std::os::raw::c_void,
        size: lzo_uint,
    ) -> ::std::os::raw::c_uint;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __lzo_pu_u {
    pub a: *mut ::std::os::raw::c_uchar,
    pub b: lzo_uint,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout___lzo_pu_u() {
    assert_eq!(
        ::std::mem::size_of::<__lzo_pu_u>(),
        8usize,
        concat!("Size of: ", stringify!(__lzo_pu_u))
    );
    assert_eq!(
        ::std::mem::align_of::<__lzo_pu_u>(),
        8usize,
        concat!("Alignment of ", stringify!(__lzo_pu_u))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__lzo_pu_u>())).a as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__lzo_pu_u),
            "::",
            stringify!(a)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__lzo_pu_u>())).b as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__lzo_pu_u),
            "::",
            stringify!(b)
        )
    );
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union __lzo_pu32_u {
    pub a: *mut ::std::os::raw::c_uchar,
    pub b: ::std::os::raw::c_uint,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout___lzo_pu32_u() {
    assert_eq!(
        ::std::mem::size_of::<__lzo_pu32_u>(),
        8usize,
        concat!("Size of: ", stringify!(__lzo_pu32_u))
    );
    assert_eq!(
        ::std::mem::align_of::<__lzo_pu32_u>(),
        8usize,
        concat!("Alignment of ", stringify!(__lzo_pu32_u))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__lzo_pu32_u>())).a as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__lzo_pu32_u),
            "::",
            stringify!(a)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<__lzo_pu32_u>())).b as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(__lzo_pu32_u),
            "::",
            stringify!(b)
        )
    );
}
extern "C" {
    pub fn lzo1x_1_compress(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lzo1x_decompress(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn lzo1x_decompress_safe(
        src: *const ::std::os::raw::c_uchar,
        src_len: lzo_uint,
        dst: *mut ::std::os::raw::c_uchar,
        dst_len: *mut lzo_uint,
        wrkmem: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}

#[cfg(test)]
mod tests {
    use super::*;
    use std::os::raw::{c_int, c_short, c_long};

    fn size_of<T>() -> c_int {
        std::mem::size_of::<T>() as c_int
    }

    // Simple test to make sure a library function can be correctly called
    #[test]
    fn init_works() {
        let ret = unsafe {
            __lzo_init_v2(lzo_version(),
            size_of::<c_short>(),
            size_of::<c_int>(),
            size_of::<c_long>(),
            size_of::<u32>(), // lzo_uint32_t
            size_of::<lzo_uint>(),
            size_of::<usize>(), // lzo_sizeof_dict_t
            size_of::<usize>(), // char*
            size_of::<usize>(), // lzo_voidp
            size_of::<lzo_callback_t>()
            )
        };
        assert_eq!(ret, 0);
    }
}