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
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
/* automatically generated by rust-bindgen */

pub const OCONFIG_TYPE_STRING: u32 = 0;
pub const OCONFIG_TYPE_NUMBER: u32 = 1;
pub const OCONFIG_TYPE_BOOLEAN: u32 = 2;
pub const DATA_MAX_NAME_LEN: u32 = 64;
pub const DS_TYPE_COUNTER: u32 = 0;
pub const DS_TYPE_GAUGE: u32 = 1;
pub const DS_TYPE_DERIVE: u32 = 2;
pub const DS_TYPE_ABSOLUTE: u32 = 3;
pub const LOG_ERR: u32 = 3;
pub const LOG_WARNING: u32 = 4;
pub const LOG_NOTICE: u32 = 5;
pub const LOG_INFO: u32 = 6;
pub const LOG_DEBUG: u32 = 7;
pub type __time_t = ::std::os::raw::c_long;
pub type __syscall_slong_t = ::std::os::raw::c_long;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct oconfig_value_s {
    pub value: oconfig_value_s__bindgen_ty_1,
    pub type_: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union oconfig_value_s__bindgen_ty_1 {
    pub string: *mut ::std::os::raw::c_char,
    pub number: f64,
    pub boolean: ::std::os::raw::c_int,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_oconfig_value_s__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<oconfig_value_s__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(oconfig_value_s__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<oconfig_value_s__bindgen_ty_1>(),
        8usize,
        concat!("Alignment of ", stringify!(oconfig_value_s__bindgen_ty_1))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<oconfig_value_s__bindgen_ty_1>())).string as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_value_s__bindgen_ty_1),
            "::",
            stringify!(string)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<oconfig_value_s__bindgen_ty_1>())).number as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_value_s__bindgen_ty_1),
            "::",
            stringify!(number)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<oconfig_value_s__bindgen_ty_1>())).boolean as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_value_s__bindgen_ty_1),
            "::",
            stringify!(boolean)
        )
    );
}
#[test]
fn bindgen_test_layout_oconfig_value_s() {
    assert_eq!(
        ::std::mem::size_of::<oconfig_value_s>(),
        16usize,
        concat!("Size of: ", stringify!(oconfig_value_s))
    );
    assert_eq!(
        ::std::mem::align_of::<oconfig_value_s>(),
        8usize,
        concat!("Alignment of ", stringify!(oconfig_value_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_value_s>())).value as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_value_s),
            "::",
            stringify!(value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_value_s>())).type_ as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_value_s),
            "::",
            stringify!(type_)
        )
    );
}
pub type oconfig_value_t = oconfig_value_s;
pub type oconfig_item_t = oconfig_item_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct oconfig_item_s {
    pub key: *mut ::std::os::raw::c_char,
    pub values: *mut oconfig_value_t,
    pub values_num: ::std::os::raw::c_int,
    pub parent: *mut oconfig_item_t,
    pub children: *mut oconfig_item_t,
    pub children_num: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_oconfig_item_s() {
    assert_eq!(
        ::std::mem::size_of::<oconfig_item_s>(),
        48usize,
        concat!("Size of: ", stringify!(oconfig_item_s))
    );
    assert_eq!(
        ::std::mem::align_of::<oconfig_item_s>(),
        8usize,
        concat!("Alignment of ", stringify!(oconfig_item_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_item_s>())).key as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_item_s),
            "::",
            stringify!(key)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_item_s>())).values as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_item_s),
            "::",
            stringify!(values)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_item_s>())).values_num as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_item_s),
            "::",
            stringify!(values_num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_item_s>())).parent as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_item_s),
            "::",
            stringify!(parent)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_item_s>())).children as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_item_s),
            "::",
            stringify!(children)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<oconfig_item_s>())).children_num as *const _ as usize },
        40usize,
        concat!(
            "Offset of field: ",
            stringify!(oconfig_item_s),
            "::",
            stringify!(children_num)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct timespec {
    pub tv_sec: __time_t,
    pub tv_nsec: __syscall_slong_t,
}
#[test]
fn bindgen_test_layout_timespec() {
    assert_eq!(
        ::std::mem::size_of::<timespec>(),
        16usize,
        concat!("Size of: ", stringify!(timespec))
    );
    assert_eq!(
        ::std::mem::align_of::<timespec>(),
        8usize,
        concat!("Alignment of ", stringify!(timespec))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timespec>())).tv_sec as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(timespec),
            "::",
            stringify!(tv_sec)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<timespec>())).tv_nsec as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(timespec),
            "::",
            stringify!(tv_nsec)
        )
    );
}
pub type pthread_t = ::std::os::raw::c_ulong;
#[repr(C)]
#[derive(Copy, Clone)]
pub union pthread_attr_t {
    pub __size: [::std::os::raw::c_char; 56usize],
    pub __align: ::std::os::raw::c_long,
    _bindgen_union_align: [u64; 7usize],
}
#[test]
fn bindgen_test_layout_pthread_attr_t() {
    assert_eq!(
        ::std::mem::size_of::<pthread_attr_t>(),
        56usize,
        concat!("Size of: ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        ::std::mem::align_of::<pthread_attr_t>(),
        8usize,
        concat!("Alignment of ", stringify!(pthread_attr_t))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__size as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__size)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<pthread_attr_t>())).__align as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(pthread_attr_t),
            "::",
            stringify!(__align)
        )
    );
}
pub type cdtime_t = u64;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct meta_data_s {
    _unused: [u8; 0],
}
pub type meta_data_t = meta_data_s;
pub type counter_t = ::std::os::raw::c_ulonglong;
pub type gauge_t = f64;
pub type derive_t = i64;
pub type absolute_t = u64;
#[repr(C)]
#[derive(Copy, Clone)]
pub union value_u {
    pub counter: counter_t,
    pub gauge: gauge_t,
    pub derive: derive_t,
    pub absolute: absolute_t,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_value_u() {
    assert_eq!(
        ::std::mem::size_of::<value_u>(),
        8usize,
        concat!("Size of: ", stringify!(value_u))
    );
    assert_eq!(
        ::std::mem::align_of::<value_u>(),
        8usize,
        concat!("Alignment of ", stringify!(value_u))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_u>())).counter as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(value_u),
            "::",
            stringify!(counter)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_u>())).gauge as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(value_u),
            "::",
            stringify!(gauge)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_u>())).derive as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(value_u),
            "::",
            stringify!(derive)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_u>())).absolute as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(value_u),
            "::",
            stringify!(absolute)
        )
    );
}
pub type value_t = value_u;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct value_list_s {
    pub values: *mut value_t,
    pub values_len: ::std::os::raw::c_int,
    pub time: cdtime_t,
    pub interval: cdtime_t,
    pub host: [::std::os::raw::c_char; 64usize],
    pub plugin: [::std::os::raw::c_char; 64usize],
    pub plugin_instance: [::std::os::raw::c_char; 64usize],
    pub type_: [::std::os::raw::c_char; 64usize],
    pub type_instance: [::std::os::raw::c_char; 64usize],
    pub meta: *mut meta_data_t,
}
#[test]
fn bindgen_test_layout_value_list_s() {
    assert_eq!(
        ::std::mem::size_of::<value_list_s>(),
        360usize,
        concat!("Size of: ", stringify!(value_list_s))
    );
    assert_eq!(
        ::std::mem::align_of::<value_list_s>(),
        8usize,
        concat!("Alignment of ", stringify!(value_list_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).values as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(values)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).values_len as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(values_len)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).time as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(time)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).interval as *const _ as usize },
        24usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(interval)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).host as *const _ as usize },
        32usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(host)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).plugin as *const _ as usize },
        96usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(plugin)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).plugin_instance as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(plugin_instance)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).type_ as *const _ as usize },
        224usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).type_instance as *const _ as usize },
        288usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(type_instance)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<value_list_s>())).meta as *const _ as usize },
        352usize,
        concat!(
            "Offset of field: ",
            stringify!(value_list_s),
            "::",
            stringify!(meta)
        )
    );
}
pub type value_list_t = value_list_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct data_source_s {
    pub name: [::std::os::raw::c_char; 64usize],
    pub type_: ::std::os::raw::c_int,
    pub min: f64,
    pub max: f64,
}
#[test]
fn bindgen_test_layout_data_source_s() {
    assert_eq!(
        ::std::mem::size_of::<data_source_s>(),
        88usize,
        concat!("Size of: ", stringify!(data_source_s))
    );
    assert_eq!(
        ::std::mem::align_of::<data_source_s>(),
        8usize,
        concat!("Alignment of ", stringify!(data_source_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_source_s>())).name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(data_source_s),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_source_s>())).type_ as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(data_source_s),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_source_s>())).min as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(data_source_s),
            "::",
            stringify!(min)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_source_s>())).max as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(data_source_s),
            "::",
            stringify!(max)
        )
    );
}
pub type data_source_t = data_source_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct data_set_s {
    pub type_: [::std::os::raw::c_char; 64usize],
    pub ds_num: ::std::os::raw::c_int,
    pub ds: *mut data_source_t,
}
#[test]
fn bindgen_test_layout_data_set_s() {
    assert_eq!(
        ::std::mem::size_of::<data_set_s>(),
        80usize,
        concat!("Size of: ", stringify!(data_set_s))
    );
    assert_eq!(
        ::std::mem::align_of::<data_set_s>(),
        8usize,
        concat!("Alignment of ", stringify!(data_set_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_set_s>())).type_ as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(data_set_s),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_set_s>())).ds_num as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(data_set_s),
            "::",
            stringify!(ds_num)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<data_set_s>())).ds as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(data_set_s),
            "::",
            stringify!(ds)
        )
    );
}
pub type data_set_t = data_set_s;
pub const notification_meta_type_e_NM_TYPE_STRING: notification_meta_type_e = 0;
pub const notification_meta_type_e_NM_TYPE_SIGNED_INT: notification_meta_type_e = 1;
pub const notification_meta_type_e_NM_TYPE_UNSIGNED_INT: notification_meta_type_e = 2;
pub const notification_meta_type_e_NM_TYPE_DOUBLE: notification_meta_type_e = 3;
pub const notification_meta_type_e_NM_TYPE_BOOLEAN: notification_meta_type_e = 4;
pub type notification_meta_type_e = u32;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct notification_meta_s {
    pub name: [::std::os::raw::c_char; 64usize],
    pub type_: notification_meta_type_e,
    pub nm_value: notification_meta_s__bindgen_ty_1,
    pub next: *mut notification_meta_s,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union notification_meta_s__bindgen_ty_1 {
    pub nm_string: *const ::std::os::raw::c_char,
    pub nm_signed_int: i64,
    pub nm_unsigned_int: u64,
    pub nm_double: f64,
    pub nm_boolean: bool,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_notification_meta_s__bindgen_ty_1() {
    assert_eq!(
        ::std::mem::size_of::<notification_meta_s__bindgen_ty_1>(),
        8usize,
        concat!("Size of: ", stringify!(notification_meta_s__bindgen_ty_1))
    );
    assert_eq!(
        ::std::mem::align_of::<notification_meta_s__bindgen_ty_1>(),
        8usize,
        concat!(
            "Alignment of ",
            stringify!(notification_meta_s__bindgen_ty_1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<notification_meta_s__bindgen_ty_1>())).nm_string as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s__bindgen_ty_1),
            "::",
            stringify!(nm_string)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<notification_meta_s__bindgen_ty_1>())).nm_signed_int as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s__bindgen_ty_1),
            "::",
            stringify!(nm_signed_int)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<notification_meta_s__bindgen_ty_1>())).nm_unsigned_int
                as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s__bindgen_ty_1),
            "::",
            stringify!(nm_unsigned_int)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<notification_meta_s__bindgen_ty_1>())).nm_double as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s__bindgen_ty_1),
            "::",
            stringify!(nm_double)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<notification_meta_s__bindgen_ty_1>())).nm_boolean as *const _
                as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s__bindgen_ty_1),
            "::",
            stringify!(nm_boolean)
        )
    );
}
#[test]
fn bindgen_test_layout_notification_meta_s() {
    assert_eq!(
        ::std::mem::size_of::<notification_meta_s>(),
        88usize,
        concat!("Size of: ", stringify!(notification_meta_s))
    );
    assert_eq!(
        ::std::mem::align_of::<notification_meta_s>(),
        8usize,
        concat!("Alignment of ", stringify!(notification_meta_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_meta_s>())).name as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s),
            "::",
            stringify!(name)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_meta_s>())).type_ as *const _ as usize },
        64usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_meta_s>())).nm_value as *const _ as usize },
        72usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s),
            "::",
            stringify!(nm_value)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_meta_s>())).next as *const _ as usize },
        80usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_meta_s),
            "::",
            stringify!(next)
        )
    );
}
pub type notification_meta_t = notification_meta_s;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct notification_s {
    pub severity: ::std::os::raw::c_int,
    pub time: cdtime_t,
    pub message: [::std::os::raw::c_char; 256usize],
    pub host: [::std::os::raw::c_char; 64usize],
    pub plugin: [::std::os::raw::c_char; 64usize],
    pub plugin_instance: [::std::os::raw::c_char; 64usize],
    pub type_: [::std::os::raw::c_char; 64usize],
    pub type_instance: [::std::os::raw::c_char; 64usize],
    pub meta: *mut notification_meta_t,
}
#[test]
fn bindgen_test_layout_notification_s() {
    assert_eq!(
        ::std::mem::size_of::<notification_s>(),
        600usize,
        concat!("Size of: ", stringify!(notification_s))
    );
    assert_eq!(
        ::std::mem::align_of::<notification_s>(),
        8usize,
        concat!("Alignment of ", stringify!(notification_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).severity as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(severity)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).time as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(time)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).message as *const _ as usize },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(message)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).host as *const _ as usize },
        272usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(host)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).plugin as *const _ as usize },
        336usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(plugin)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).plugin_instance as *const _ as usize },
        400usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(plugin_instance)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).type_ as *const _ as usize },
        464usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(type_)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).type_instance as *const _ as usize },
        528usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(type_instance)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<notification_s>())).meta as *const _ as usize },
        592usize,
        concat!(
            "Offset of field: ",
            stringify!(notification_s),
            "::",
            stringify!(meta)
        )
    );
}
pub type notification_t = notification_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct user_data_s {
    pub data: *mut ::std::os::raw::c_void,
    pub free_func: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void)>,
}
#[test]
fn bindgen_test_layout_user_data_s() {
    assert_eq!(
        ::std::mem::size_of::<user_data_s>(),
        16usize,
        concat!("Size of: ", stringify!(user_data_s))
    );
    assert_eq!(
        ::std::mem::align_of::<user_data_s>(),
        8usize,
        concat!("Alignment of ", stringify!(user_data_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<user_data_s>())).data as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(user_data_s),
            "::",
            stringify!(data)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<user_data_s>())).free_func as *const _ as usize },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(user_data_s),
            "::",
            stringify!(free_func)
        )
    );
}
pub type user_data_t = user_data_s;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct plugin_ctx_s {
    pub interval: cdtime_t,
}
#[test]
fn bindgen_test_layout_plugin_ctx_s() {
    assert_eq!(
        ::std::mem::size_of::<plugin_ctx_s>(),
        8usize,
        concat!("Size of: ", stringify!(plugin_ctx_s))
    );
    assert_eq!(
        ::std::mem::align_of::<plugin_ctx_s>(),
        8usize,
        concat!("Alignment of ", stringify!(plugin_ctx_s))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<plugin_ctx_s>())).interval as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(plugin_ctx_s),
            "::",
            stringify!(interval)
        )
    );
}
pub type plugin_ctx_t = plugin_ctx_s;
pub type plugin_init_cb = ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>;
pub type plugin_read_cb =
    ::std::option::Option<unsafe extern "C" fn(arg1: *mut user_data_t) -> ::std::os::raw::c_int>;
pub type plugin_write_cb = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const data_set_t,
        arg2: *const value_list_t,
        arg3: *mut user_data_t,
    ) -> ::std::os::raw::c_int,
>;
pub type plugin_flush_cb = ::std::option::Option<
    unsafe extern "C" fn(
        timeout: cdtime_t,
        identifier: *const ::std::os::raw::c_char,
        arg1: *mut user_data_t,
    ) -> ::std::os::raw::c_int,
>;
pub type plugin_missing_cb = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const value_list_t,
        arg2: *mut user_data_t,
    ) -> ::std::os::raw::c_int,
>;
pub type plugin_log_cb = ::std::option::Option<
    unsafe extern "C" fn(
        severity: ::std::os::raw::c_int,
        message: *const ::std::os::raw::c_char,
        arg1: *mut user_data_t,
    ),
>;
pub type plugin_shutdown_cb =
    ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>;
pub type plugin_notification_cb = ::std::option::Option<
    unsafe extern "C" fn(
        arg1: *const notification_t,
        arg2: *mut user_data_t,
    ) -> ::std::os::raw::c_int,
>;
extern "C" {
    pub fn plugin_set_dir(dir: *const ::std::os::raw::c_char);
}
extern "C" {
    pub fn plugin_load(name: *const ::std::os::raw::c_char, flags: u32) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_init_all();
}
extern "C" {
    pub fn plugin_read_all();
}
extern "C" {
    pub fn plugin_read_all_once() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_shutdown_all();
}
extern "C" {
    pub fn plugin_write(
        plugin: *const ::std::os::raw::c_char,
        ds: *const data_set_t,
        vl: *const value_list_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_flush(
        plugin: *const ::std::os::raw::c_char,
        timeout: cdtime_t,
        identifier: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_config(
        name: *const ::std::os::raw::c_char,
        callback: ::std::option::Option<
            unsafe extern "C" fn(
                key: *const ::std::os::raw::c_char,
                val: *const ::std::os::raw::c_char,
            ) -> ::std::os::raw::c_int,
        >,
        keys: *mut *const ::std::os::raw::c_char,
        keys_num: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_complex_config(
        type_: *const ::std::os::raw::c_char,
        callback: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut oconfig_item_t) -> ::std::os::raw::c_int,
        >,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_init(
        name: *const ::std::os::raw::c_char,
        callback: plugin_init_cb,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_read(
        name: *const ::std::os::raw::c_char,
        callback: ::std::option::Option<unsafe extern "C" fn() -> ::std::os::raw::c_int>,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_complex_read(
        group: *const ::std::os::raw::c_char,
        name: *const ::std::os::raw::c_char,
        callback: plugin_read_cb,
        interval: *const timespec,
        user_data: *mut user_data_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_write(
        name: *const ::std::os::raw::c_char,
        callback: plugin_write_cb,
        user_data: *mut user_data_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_flush(
        name: *const ::std::os::raw::c_char,
        callback: plugin_flush_cb,
        user_data: *mut user_data_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_missing(
        name: *const ::std::os::raw::c_char,
        callback: plugin_missing_cb,
        user_data: *mut user_data_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_shutdown(
        name: *const ::std::os::raw::c_char,
        callback: plugin_shutdown_cb,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_data_set(ds: *const data_set_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_log(
        name: *const ::std::os::raw::c_char,
        callback: plugin_log_cb,
        user_data: *mut user_data_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_register_notification(
        name: *const ::std::os::raw::c_char,
        callback: plugin_notification_cb,
        user_data: *mut user_data_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_config(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_complex_config(
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_init(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_read(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_read_group(
        group: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_write(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_flush(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_missing(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_shutdown(name: *const ::std::os::raw::c_char)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_data_set(name: *const ::std::os::raw::c_char)
        -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_log(name: *const ::std::os::raw::c_char) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_unregister_notification(
        name: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_log_available_writers();
}
extern "C" {
    pub fn plugin_dispatch_values(vl: *const value_list_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_dispatch_multivalue(
        vl: *const value_list_t,
        store_percentage: bool,
        store_type: ::std::os::raw::c_int,
        ...
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_dispatch_missing(vl: *const value_list_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_dispatch_notification(notif: *const notification_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_log(level: ::std::os::raw::c_int, format: *const ::std::os::raw::c_char, ...);
}
extern "C" {
    pub fn plugin_get_ds(name: *const ::std::os::raw::c_char) -> *const data_set_t;
}
extern "C" {
    pub fn plugin_notification_meta_add_string(
        n: *mut notification_t,
        name: *const ::std::os::raw::c_char,
        value: *const ::std::os::raw::c_char,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_notification_meta_add_signed_int(
        n: *mut notification_t,
        name: *const ::std::os::raw::c_char,
        value: i64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_notification_meta_add_unsigned_int(
        n: *mut notification_t,
        name: *const ::std::os::raw::c_char,
        value: u64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_notification_meta_add_double(
        n: *mut notification_t,
        name: *const ::std::os::raw::c_char,
        value: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_notification_meta_add_boolean(
        n: *mut notification_t,
        name: *const ::std::os::raw::c_char,
        value: bool,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_notification_meta_copy(
        dst: *mut notification_t,
        src: *const notification_t,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_notification_meta_free(n: *mut notification_meta_t) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn plugin_init_ctx();
}
extern "C" {
    pub fn plugin_get_ctx() -> plugin_ctx_t;
}
extern "C" {
    pub fn plugin_set_ctx(ctx: plugin_ctx_t) -> plugin_ctx_t;
}
extern "C" {
    pub fn plugin_get_interval() -> cdtime_t;
}
extern "C" {
    pub fn plugin_thread_create(
        thread: *mut pthread_t,
        attr: *const pthread_attr_t,
        start_routine: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut ::std::os::raw::c_void) -> *mut ::std::os::raw::c_void,
        >,
        arg: *mut ::std::os::raw::c_void,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn uc_get_rate(ds: *const data_set_t, vl: *const value_list_t) -> *mut gauge_t;
}