cyclonedds-rust-sys 0.1.0

FFI bindings for Eclipse CycloneDDS
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
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316
6317
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613
6614
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657
6658
6659
6660
6661
6662
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965
6966
6967
6968
6969
6970
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012
7013
7014
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628
7629
7630
7631
7632
7633
7634
7635
7636
7637
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776
7777
7778
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302
8303
8304
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332
8333
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576
8577
8578
8579
8580
8581
8582
8583
8584
8585
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597
8598
8599
8600
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786
8787
8788
8789
8790
8791
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016
9017
9018
9019
9020
9021
9022
9023
9024
9025
9026
9027
9028
9029
9030
9031
9032
9033
9034
9035
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086
9087
9088
9089
9090
9091
9092
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603
9604
9605
9606
9607
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626
9627
9628
9629
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642
9643
9644
9645
9646
9647
9648
9649
9650
9651
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684
9685
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917
9918
9919
9920
9921
9922
9923
9924
9925
9926
9927
9928
9929
9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966
9967
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
/* automatically generated by rust-bindgen 0.71.1 */

#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage> {
    storage: Storage,
}
impl<Storage> __BindgenBitfieldUnit<Storage> {
    #[inline]
    pub const fn new(storage: Storage) -> Self {
        Self { storage }
    }
}
impl<Storage> __BindgenBitfieldUnit<Storage>
where
    Storage: AsRef<[u8]> + AsMut<[u8]>,
{
    #[inline]
    fn extract_bit(byte: u8, index: usize) -> bool {
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        byte & mask == mask
    }
    #[inline]
    pub fn get_bit(&self, index: usize) -> bool {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = self.storage.as_ref()[byte_index];
        Self::extract_bit(byte, index)
    }
    #[inline]
    pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool {
        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
        let byte_index = index / 8;
        let byte = *(core::ptr::addr_of!((*this).storage) as *const u8).offset(byte_index as isize);
        Self::extract_bit(byte, index)
    }
    #[inline]
    fn change_bit(byte: u8, index: usize, val: bool) -> u8 {
        let bit_index = if cfg!(target_endian = "big") {
            7 - (index % 8)
        } else {
            index % 8
        };
        let mask = 1 << bit_index;
        if val {
            byte | mask
        } else {
            byte & !mask
        }
    }
    #[inline]
    pub fn set_bit(&mut self, index: usize, val: bool) {
        debug_assert!(index / 8 < self.storage.as_ref().len());
        let byte_index = index / 8;
        let byte = &mut self.storage.as_mut()[byte_index];
        *byte = Self::change_bit(*byte, index, val);
    }
    #[inline]
    pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool) {
        debug_assert!(index / 8 < core::mem::size_of::<Storage>());
        let byte_index = index / 8;
        let byte =
            (core::ptr::addr_of_mut!((*this).storage) as *mut u8).offset(byte_index as isize);
        *byte = Self::change_bit(*byte, index, val);
    }
    #[inline]
    pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if self.get_bit(i + bit_offset) {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub unsafe fn raw_get(this: *const Self, bit_offset: usize, bit_width: u8) -> u64 {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
        let mut val = 0;
        for i in 0..(bit_width as usize) {
            if Self::raw_get_bit(this, i + bit_offset) {
                let index = if cfg!(target_endian = "big") {
                    bit_width as usize - 1 - i
                } else {
                    i
                };
                val |= 1 << index;
            }
        }
        val
    }
    #[inline]
    pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < self.storage.as_ref().len());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= self.storage.as_ref().len());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            self.set_bit(index + bit_offset, val_bit_is_set);
        }
    }
    #[inline]
    pub unsafe fn raw_set(this: *mut Self, bit_offset: usize, bit_width: u8, val: u64) {
        debug_assert!(bit_width <= 64);
        debug_assert!(bit_offset / 8 < core::mem::size_of::<Storage>());
        debug_assert!((bit_offset + (bit_width as usize)) / 8 <= core::mem::size_of::<Storage>());
        for i in 0..(bit_width as usize) {
            let mask = 1 << i;
            let val_bit_is_set = val & mask == mask;
            let index = if cfg!(target_endian = "big") {
                bit_width as usize - 1 - i
            } else {
                i
            };
            Self::raw_set_bit(this, index + bit_offset, val_bit_is_set);
        }
    }
}
#[repr(C)]
#[derive(Default)]
pub struct __IncompleteArrayField<T>(::std::marker::PhantomData<T>, [T; 0]);
impl<T> __IncompleteArrayField<T> {
    #[inline]
    pub const fn new() -> Self {
        __IncompleteArrayField(::std::marker::PhantomData, [])
    }
    #[inline]
    pub fn as_ptr(&self) -> *const T {
        self as *const _ as *const T
    }
    #[inline]
    pub fn as_mut_ptr(&mut self) -> *mut T {
        self as *mut _ as *mut T
    }
    #[inline]
    pub unsafe fn as_slice(&self, len: usize) -> &[T] {
        ::std::slice::from_raw_parts(self.as_ptr(), len)
    }
    #[inline]
    pub unsafe fn as_mut_slice(&mut self, len: usize) -> &mut [T] {
        ::std::slice::from_raw_parts_mut(self.as_mut_ptr(), len)
    }
}
impl<T> ::std::fmt::Debug for __IncompleteArrayField<T> {
    fn fmt(&self, fmt: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
        fmt.write_str("__IncompleteArrayField")
    }
}
pub const DDS_HAS_SECURITY: u32 = 1;
pub const DDS_HAS_LIFESPAN: u32 = 1;
pub const DDS_HAS_DEADLINE_MISSED: u32 = 1;
pub const DDS_HAS_NETWORK_PARTITIONS: u32 = 1;
pub const DDS_HAS_TCP_TLS: u32 = 1;
pub const DDS_HAS_TYPELIB: u32 = 1;
pub const DDS_HAS_TYPE_DISCOVERY: u32 = 1;
pub const DDS_HAS_TOPIC_DISCOVERY: u32 = 1;
pub const DDS_HAS_QOS_PROVIDER: u32 = 1;
pub const __bool_true_false_are_defined: u32 = 1;
pub const true_: u32 = 1;
pub const false_: u32 = 0;
pub const __WORDSIZE: u32 = 64;
pub const __has_safe_buffers: u32 = 1;
pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
pub const __DARWIN_UNIX03: u32 = 1;
pub const __DARWIN_64_BIT_INO_T: u32 = 1;
pub const __DARWIN_VERS_1050: u32 = 1;
pub const __DARWIN_NON_CANCELABLE: u32 = 0;
pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0";
pub const __DARWIN_C_ANSI: u32 = 4096;
pub const __DARWIN_C_FULL: u32 = 900000;
pub const __DARWIN_C_LEVEL: u32 = 900000;
pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
pub const __DARWIN_NO_LONG_LONG: u32 = 0;
pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
pub const __has_ptrcheck: u32 = 0;
pub const __has_bounds_safety_attributes: u32 = 0;
pub const USE_CLANG_TYPES: u32 = 0;
pub const __PTHREAD_SIZE__: u32 = 8176;
pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
pub const __PTHREAD_COND_SIZE__: u32 = 40;
pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
pub const INT8_MAX: u32 = 127;
pub const INT16_MAX: u32 = 32767;
pub const INT32_MAX: u32 = 2147483647;
pub const INT64_MAX: u64 = 9223372036854775807;
pub const INT8_MIN: i32 = -128;
pub const INT16_MIN: i32 = -32768;
pub const INT32_MIN: i32 = -2147483648;
pub const INT64_MIN: i64 = -9223372036854775808;
pub const UINT8_MAX: u32 = 255;
pub const UINT16_MAX: u32 = 65535;
pub const UINT32_MAX: u32 = 4294967295;
pub const UINT64_MAX: i32 = -1;
pub const INT_LEAST8_MIN: i32 = -128;
pub const INT_LEAST16_MIN: i32 = -32768;
pub const INT_LEAST32_MIN: i32 = -2147483648;
pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
pub const INT_LEAST8_MAX: u32 = 127;
pub const INT_LEAST16_MAX: u32 = 32767;
pub const INT_LEAST32_MAX: u32 = 2147483647;
pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
pub const UINT_LEAST8_MAX: u32 = 255;
pub const UINT_LEAST16_MAX: u32 = 65535;
pub const UINT_LEAST32_MAX: u32 = 4294967295;
pub const UINT_LEAST64_MAX: i32 = -1;
pub const INT_FAST8_MIN: i32 = -128;
pub const INT_FAST16_MIN: i32 = -32768;
pub const INT_FAST32_MIN: i32 = -2147483648;
pub const INT_FAST64_MIN: i64 = -9223372036854775808;
pub const INT_FAST8_MAX: u32 = 127;
pub const INT_FAST16_MAX: u32 = 32767;
pub const INT_FAST32_MAX: u32 = 2147483647;
pub const INT_FAST64_MAX: u64 = 9223372036854775807;
pub const UINT_FAST8_MAX: u32 = 255;
pub const UINT_FAST16_MAX: u32 = 65535;
pub const UINT_FAST32_MAX: u32 = 4294967295;
pub const UINT_FAST64_MAX: i32 = -1;
pub const INTPTR_MAX: u64 = 9223372036854775807;
pub const INTPTR_MIN: i64 = -9223372036854775808;
pub const UINTPTR_MAX: i32 = -1;
pub const SIZE_MAX: i32 = -1;
pub const RSIZE_MAX: i32 = -1;
pub const WINT_MIN: i32 = -2147483648;
pub const WINT_MAX: u32 = 2147483647;
pub const SIG_ATOMIC_MIN: i32 = -2147483648;
pub const SIG_ATOMIC_MAX: u32 = 2147483647;
pub const DDSRT_HAVE_DYNLIB: u32 = 1;
pub const DDSRT_HAVE_FILESYSTEM: u32 = 1;
pub const DDSRT_HAVE_NETSTAT: u32 = 1;
pub const DDSRT_HAVE_RUSAGE: u32 = 1;
pub const DDSRT_HAVE_IPV6: u32 = 1;
pub const DDSRT_HAVE_SSM: u32 = 1;
pub const DDSRT_HAVE_DNS: u32 = 1;
pub const DDSRT_HAVE_GETADDRINFO: u32 = 1;
pub const DDSRT_HAVE_GETHOSTNAME: u32 = 1;
pub const DDSRT_HAVE_INET_NTOP: u32 = 1;
pub const DDSRT_HAVE_INET_PTON: u32 = 1;
pub const __PRI_8_LENGTH_MODIFIER__: &[u8; 3] = b"hh\0";
pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0";
pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0";
pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0";
pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0";
pub const PRId8: &[u8; 4] = b"hhd\0";
pub const PRIi8: &[u8; 4] = b"hhi\0";
pub const PRIo8: &[u8; 4] = b"hho\0";
pub const PRIu8: &[u8; 4] = b"hhu\0";
pub const PRIx8: &[u8; 4] = b"hhx\0";
pub const PRIX8: &[u8; 4] = b"hhX\0";
pub const PRId16: &[u8; 3] = b"hd\0";
pub const PRIi16: &[u8; 3] = b"hi\0";
pub const PRIo16: &[u8; 3] = b"ho\0";
pub const PRIu16: &[u8; 3] = b"hu\0";
pub const PRIx16: &[u8; 3] = b"hx\0";
pub const PRIX16: &[u8; 3] = b"hX\0";
pub const PRId32: &[u8; 2] = b"d\0";
pub const PRIi32: &[u8; 2] = b"i\0";
pub const PRIo32: &[u8; 2] = b"o\0";
pub const PRIu32: &[u8; 2] = b"u\0";
pub const PRIx32: &[u8; 2] = b"x\0";
pub const PRIX32: &[u8; 2] = b"X\0";
pub const PRId64: &[u8; 4] = b"lld\0";
pub const PRIi64: &[u8; 4] = b"lli\0";
pub const PRIo64: &[u8; 4] = b"llo\0";
pub const PRIu64: &[u8; 4] = b"llu\0";
pub const PRIx64: &[u8; 4] = b"llx\0";
pub const PRIX64: &[u8; 4] = b"llX\0";
pub const PRIdLEAST8: &[u8; 4] = b"hhd\0";
pub const PRIiLEAST8: &[u8; 4] = b"hhi\0";
pub const PRIoLEAST8: &[u8; 4] = b"hho\0";
pub const PRIuLEAST8: &[u8; 4] = b"hhu\0";
pub const PRIxLEAST8: &[u8; 4] = b"hhx\0";
pub const PRIXLEAST8: &[u8; 4] = b"hhX\0";
pub const PRIdLEAST16: &[u8; 3] = b"hd\0";
pub const PRIiLEAST16: &[u8; 3] = b"hi\0";
pub const PRIoLEAST16: &[u8; 3] = b"ho\0";
pub const PRIuLEAST16: &[u8; 3] = b"hu\0";
pub const PRIxLEAST16: &[u8; 3] = b"hx\0";
pub const PRIXLEAST16: &[u8; 3] = b"hX\0";
pub const PRIdLEAST32: &[u8; 2] = b"d\0";
pub const PRIiLEAST32: &[u8; 2] = b"i\0";
pub const PRIoLEAST32: &[u8; 2] = b"o\0";
pub const PRIuLEAST32: &[u8; 2] = b"u\0";
pub const PRIxLEAST32: &[u8; 2] = b"x\0";
pub const PRIXLEAST32: &[u8; 2] = b"X\0";
pub const PRIdLEAST64: &[u8; 4] = b"lld\0";
pub const PRIiLEAST64: &[u8; 4] = b"lli\0";
pub const PRIoLEAST64: &[u8; 4] = b"llo\0";
pub const PRIuLEAST64: &[u8; 4] = b"llu\0";
pub const PRIxLEAST64: &[u8; 4] = b"llx\0";
pub const PRIXLEAST64: &[u8; 4] = b"llX\0";
pub const PRIdFAST8: &[u8; 4] = b"hhd\0";
pub const PRIiFAST8: &[u8; 4] = b"hhi\0";
pub const PRIoFAST8: &[u8; 4] = b"hho\0";
pub const PRIuFAST8: &[u8; 4] = b"hhu\0";
pub const PRIxFAST8: &[u8; 4] = b"hhx\0";
pub const PRIXFAST8: &[u8; 4] = b"hhX\0";
pub const PRIdFAST16: &[u8; 3] = b"hd\0";
pub const PRIiFAST16: &[u8; 3] = b"hi\0";
pub const PRIoFAST16: &[u8; 3] = b"ho\0";
pub const PRIuFAST16: &[u8; 3] = b"hu\0";
pub const PRIxFAST16: &[u8; 3] = b"hx\0";
pub const PRIXFAST16: &[u8; 3] = b"hX\0";
pub const PRIdFAST32: &[u8; 2] = b"d\0";
pub const PRIiFAST32: &[u8; 2] = b"i\0";
pub const PRIoFAST32: &[u8; 2] = b"o\0";
pub const PRIuFAST32: &[u8; 2] = b"u\0";
pub const PRIxFAST32: &[u8; 2] = b"x\0";
pub const PRIXFAST32: &[u8; 2] = b"X\0";
pub const PRIdFAST64: &[u8; 4] = b"lld\0";
pub const PRIiFAST64: &[u8; 4] = b"lli\0";
pub const PRIoFAST64: &[u8; 4] = b"llo\0";
pub const PRIuFAST64: &[u8; 4] = b"llu\0";
pub const PRIxFAST64: &[u8; 4] = b"llx\0";
pub const PRIXFAST64: &[u8; 4] = b"llX\0";
pub const PRIdPTR: &[u8; 3] = b"ld\0";
pub const PRIiPTR: &[u8; 3] = b"li\0";
pub const PRIoPTR: &[u8; 3] = b"lo\0";
pub const PRIuPTR: &[u8; 3] = b"lu\0";
pub const PRIxPTR: &[u8; 3] = b"lx\0";
pub const PRIXPTR: &[u8; 3] = b"lX\0";
pub const PRIdMAX: &[u8; 3] = b"jd\0";
pub const PRIiMAX: &[u8; 3] = b"ji\0";
pub const PRIoMAX: &[u8; 3] = b"jo\0";
pub const PRIuMAX: &[u8; 3] = b"ju\0";
pub const PRIxMAX: &[u8; 3] = b"jx\0";
pub const PRIXMAX: &[u8; 3] = b"jX\0";
pub const SCNd8: &[u8; 4] = b"hhd\0";
pub const SCNi8: &[u8; 4] = b"hhi\0";
pub const SCNo8: &[u8; 4] = b"hho\0";
pub const SCNu8: &[u8; 4] = b"hhu\0";
pub const SCNx8: &[u8; 4] = b"hhx\0";
pub const SCNd16: &[u8; 3] = b"hd\0";
pub const SCNi16: &[u8; 3] = b"hi\0";
pub const SCNo16: &[u8; 3] = b"ho\0";
pub const SCNu16: &[u8; 3] = b"hu\0";
pub const SCNx16: &[u8; 3] = b"hx\0";
pub const SCNd32: &[u8; 2] = b"d\0";
pub const SCNi32: &[u8; 2] = b"i\0";
pub const SCNo32: &[u8; 2] = b"o\0";
pub const SCNu32: &[u8; 2] = b"u\0";
pub const SCNx32: &[u8; 2] = b"x\0";
pub const SCNd64: &[u8; 4] = b"lld\0";
pub const SCNi64: &[u8; 4] = b"lli\0";
pub const SCNo64: &[u8; 4] = b"llo\0";
pub const SCNu64: &[u8; 4] = b"llu\0";
pub const SCNx64: &[u8; 4] = b"llx\0";
pub const SCNdLEAST8: &[u8; 4] = b"hhd\0";
pub const SCNiLEAST8: &[u8; 4] = b"hhi\0";
pub const SCNoLEAST8: &[u8; 4] = b"hho\0";
pub const SCNuLEAST8: &[u8; 4] = b"hhu\0";
pub const SCNxLEAST8: &[u8; 4] = b"hhx\0";
pub const SCNdLEAST16: &[u8; 3] = b"hd\0";
pub const SCNiLEAST16: &[u8; 3] = b"hi\0";
pub const SCNoLEAST16: &[u8; 3] = b"ho\0";
pub const SCNuLEAST16: &[u8; 3] = b"hu\0";
pub const SCNxLEAST16: &[u8; 3] = b"hx\0";
pub const SCNdLEAST32: &[u8; 2] = b"d\0";
pub const SCNiLEAST32: &[u8; 2] = b"i\0";
pub const SCNoLEAST32: &[u8; 2] = b"o\0";
pub const SCNuLEAST32: &[u8; 2] = b"u\0";
pub const SCNxLEAST32: &[u8; 2] = b"x\0";
pub const SCNdLEAST64: &[u8; 4] = b"lld\0";
pub const SCNiLEAST64: &[u8; 4] = b"lli\0";
pub const SCNoLEAST64: &[u8; 4] = b"llo\0";
pub const SCNuLEAST64: &[u8; 4] = b"llu\0";
pub const SCNxLEAST64: &[u8; 4] = b"llx\0";
pub const SCNdFAST8: &[u8; 4] = b"hhd\0";
pub const SCNiFAST8: &[u8; 4] = b"hhi\0";
pub const SCNoFAST8: &[u8; 4] = b"hho\0";
pub const SCNuFAST8: &[u8; 4] = b"hhu\0";
pub const SCNxFAST8: &[u8; 4] = b"hhx\0";
pub const SCNdFAST16: &[u8; 3] = b"hd\0";
pub const SCNiFAST16: &[u8; 3] = b"hi\0";
pub const SCNoFAST16: &[u8; 3] = b"ho\0";
pub const SCNuFAST16: &[u8; 3] = b"hu\0";
pub const SCNxFAST16: &[u8; 3] = b"hx\0";
pub const SCNdFAST32: &[u8; 2] = b"d\0";
pub const SCNiFAST32: &[u8; 2] = b"i\0";
pub const SCNoFAST32: &[u8; 2] = b"o\0";
pub const SCNuFAST32: &[u8; 2] = b"u\0";
pub const SCNxFAST32: &[u8; 2] = b"x\0";
pub const SCNdFAST64: &[u8; 4] = b"lld\0";
pub const SCNiFAST64: &[u8; 4] = b"lli\0";
pub const SCNoFAST64: &[u8; 4] = b"llo\0";
pub const SCNuFAST64: &[u8; 4] = b"llu\0";
pub const SCNxFAST64: &[u8; 4] = b"llx\0";
pub const SCNdPTR: &[u8; 3] = b"ld\0";
pub const SCNiPTR: &[u8; 3] = b"li\0";
pub const SCNoPTR: &[u8; 3] = b"lo\0";
pub const SCNuPTR: &[u8; 3] = b"lu\0";
pub const SCNxPTR: &[u8; 3] = b"lx\0";
pub const SCNdMAX: &[u8; 3] = b"jd\0";
pub const SCNiMAX: &[u8; 3] = b"ji\0";
pub const SCNoMAX: &[u8; 3] = b"jo\0";
pub const SCNuMAX: &[u8; 3] = b"ju\0";
pub const SCNxMAX: &[u8; 3] = b"jx\0";
pub const __API_TO_BE_DEPRECATED: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_IOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_MACCATALYSTAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_WATCHOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_TVOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOS: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_VISIONOSAPPLICATIONEXTENSION: u32 = 100000;
pub const __API_TO_BE_DEPRECATED_KERNELKIT: u32 = 100000;
pub const __MAC_10_0: u32 = 1000;
pub const __MAC_10_1: u32 = 1010;
pub const __MAC_10_2: u32 = 1020;
pub const __MAC_10_3: u32 = 1030;
pub const __MAC_10_4: u32 = 1040;
pub const __MAC_10_5: u32 = 1050;
pub const __MAC_10_6: u32 = 1060;
pub const __MAC_10_7: u32 = 1070;
pub const __MAC_10_8: u32 = 1080;
pub const __MAC_10_9: u32 = 1090;
pub const __MAC_10_10: u32 = 101000;
pub const __MAC_10_10_2: u32 = 101002;
pub const __MAC_10_10_3: u32 = 101003;
pub const __MAC_10_11: u32 = 101100;
pub const __MAC_10_11_2: u32 = 101102;
pub const __MAC_10_11_3: u32 = 101103;
pub const __MAC_10_11_4: u32 = 101104;
pub const __MAC_10_12: u32 = 101200;
pub const __MAC_10_12_1: u32 = 101201;
pub const __MAC_10_12_2: u32 = 101202;
pub const __MAC_10_12_4: u32 = 101204;
pub const __MAC_10_13: u32 = 101300;
pub const __MAC_10_13_1: u32 = 101301;
pub const __MAC_10_13_2: u32 = 101302;
pub const __MAC_10_13_4: u32 = 101304;
pub const __MAC_10_14: u32 = 101400;
pub const __MAC_10_14_1: u32 = 101401;
pub const __MAC_10_14_4: u32 = 101404;
pub const __MAC_10_14_5: u32 = 101405;
pub const __MAC_10_14_6: u32 = 101406;
pub const __MAC_10_15: u32 = 101500;
pub const __MAC_10_15_1: u32 = 101501;
pub const __MAC_10_15_4: u32 = 101504;
pub const __MAC_10_16: u32 = 101600;
pub const __MAC_11_0: u32 = 110000;
pub const __MAC_11_1: u32 = 110100;
pub const __MAC_11_3: u32 = 110300;
pub const __MAC_11_4: u32 = 110400;
pub const __MAC_11_5: u32 = 110500;
pub const __MAC_11_6: u32 = 110600;
pub const __MAC_12_0: u32 = 120000;
pub const __MAC_12_1: u32 = 120100;
pub const __MAC_12_2: u32 = 120200;
pub const __MAC_12_3: u32 = 120300;
pub const __MAC_12_4: u32 = 120400;
pub const __MAC_12_5: u32 = 120500;
pub const __MAC_12_6: u32 = 120600;
pub const __MAC_12_7: u32 = 120700;
pub const __MAC_13_0: u32 = 130000;
pub const __MAC_13_1: u32 = 130100;
pub const __MAC_13_2: u32 = 130200;
pub const __MAC_13_3: u32 = 130300;
pub const __MAC_13_4: u32 = 130400;
pub const __MAC_13_5: u32 = 130500;
pub const __MAC_13_6: u32 = 130600;
pub const __MAC_13_7: u32 = 130700;
pub const __MAC_14_0: u32 = 140000;
pub const __MAC_14_1: u32 = 140100;
pub const __MAC_14_2: u32 = 140200;
pub const __MAC_14_3: u32 = 140300;
pub const __MAC_14_4: u32 = 140400;
pub const __MAC_14_5: u32 = 140500;
pub const __MAC_14_6: u32 = 140600;
pub const __MAC_14_7: u32 = 140700;
pub const __MAC_15_0: u32 = 150000;
pub const __MAC_15_1: u32 = 150100;
pub const __MAC_15_2: u32 = 150200;
pub const __MAC_15_3: u32 = 150300;
pub const __MAC_15_4: u32 = 150400;
pub const __MAC_15_5: u32 = 150500;
pub const __MAC_15_6: u32 = 150600;
pub const __MAC_16_0: u32 = 160000;
pub const __MAC_26_0: u32 = 260000;
pub const __MAC_26_1: u32 = 260100;
pub const __MAC_26_2: u32 = 260200;
pub const __MAC_26_3: u32 = 260300;
pub const __MAC_26_4: u32 = 260400;
pub const __IPHONE_2_0: u32 = 20000;
pub const __IPHONE_2_1: u32 = 20100;
pub const __IPHONE_2_2: u32 = 20200;
pub const __IPHONE_3_0: u32 = 30000;
pub const __IPHONE_3_1: u32 = 30100;
pub const __IPHONE_3_2: u32 = 30200;
pub const __IPHONE_4_0: u32 = 40000;
pub const __IPHONE_4_1: u32 = 40100;
pub const __IPHONE_4_2: u32 = 40200;
pub const __IPHONE_4_3: u32 = 40300;
pub const __IPHONE_5_0: u32 = 50000;
pub const __IPHONE_5_1: u32 = 50100;
pub const __IPHONE_6_0: u32 = 60000;
pub const __IPHONE_6_1: u32 = 60100;
pub const __IPHONE_7_0: u32 = 70000;
pub const __IPHONE_7_1: u32 = 70100;
pub const __IPHONE_8_0: u32 = 80000;
pub const __IPHONE_8_1: u32 = 80100;
pub const __IPHONE_8_2: u32 = 80200;
pub const __IPHONE_8_3: u32 = 80300;
pub const __IPHONE_8_4: u32 = 80400;
pub const __IPHONE_9_0: u32 = 90000;
pub const __IPHONE_9_1: u32 = 90100;
pub const __IPHONE_9_2: u32 = 90200;
pub const __IPHONE_9_3: u32 = 90300;
pub const __IPHONE_10_0: u32 = 100000;
pub const __IPHONE_10_1: u32 = 100100;
pub const __IPHONE_10_2: u32 = 100200;
pub const __IPHONE_10_3: u32 = 100300;
pub const __IPHONE_11_0: u32 = 110000;
pub const __IPHONE_11_1: u32 = 110100;
pub const __IPHONE_11_2: u32 = 110200;
pub const __IPHONE_11_3: u32 = 110300;
pub const __IPHONE_11_4: u32 = 110400;
pub const __IPHONE_12_0: u32 = 120000;
pub const __IPHONE_12_1: u32 = 120100;
pub const __IPHONE_12_2: u32 = 120200;
pub const __IPHONE_12_3: u32 = 120300;
pub const __IPHONE_12_4: u32 = 120400;
pub const __IPHONE_13_0: u32 = 130000;
pub const __IPHONE_13_1: u32 = 130100;
pub const __IPHONE_13_2: u32 = 130200;
pub const __IPHONE_13_3: u32 = 130300;
pub const __IPHONE_13_4: u32 = 130400;
pub const __IPHONE_13_5: u32 = 130500;
pub const __IPHONE_13_6: u32 = 130600;
pub const __IPHONE_13_7: u32 = 130700;
pub const __IPHONE_14_0: u32 = 140000;
pub const __IPHONE_14_1: u32 = 140100;
pub const __IPHONE_14_2: u32 = 140200;
pub const __IPHONE_14_3: u32 = 140300;
pub const __IPHONE_14_5: u32 = 140500;
pub const __IPHONE_14_6: u32 = 140600;
pub const __IPHONE_14_7: u32 = 140700;
pub const __IPHONE_14_8: u32 = 140800;
pub const __IPHONE_15_0: u32 = 150000;
pub const __IPHONE_15_1: u32 = 150100;
pub const __IPHONE_15_2: u32 = 150200;
pub const __IPHONE_15_3: u32 = 150300;
pub const __IPHONE_15_4: u32 = 150400;
pub const __IPHONE_15_5: u32 = 150500;
pub const __IPHONE_15_6: u32 = 150600;
pub const __IPHONE_15_7: u32 = 150700;
pub const __IPHONE_15_8: u32 = 150800;
pub const __IPHONE_16_0: u32 = 160000;
pub const __IPHONE_16_1: u32 = 160100;
pub const __IPHONE_16_2: u32 = 160200;
pub const __IPHONE_16_3: u32 = 160300;
pub const __IPHONE_16_4: u32 = 160400;
pub const __IPHONE_16_5: u32 = 160500;
pub const __IPHONE_16_6: u32 = 160600;
pub const __IPHONE_16_7: u32 = 160700;
pub const __IPHONE_17_0: u32 = 170000;
pub const __IPHONE_17_1: u32 = 170100;
pub const __IPHONE_17_2: u32 = 170200;
pub const __IPHONE_17_3: u32 = 170300;
pub const __IPHONE_17_4: u32 = 170400;
pub const __IPHONE_17_5: u32 = 170500;
pub const __IPHONE_17_6: u32 = 170600;
pub const __IPHONE_17_7: u32 = 170700;
pub const __IPHONE_18_0: u32 = 180000;
pub const __IPHONE_18_1: u32 = 180100;
pub const __IPHONE_18_2: u32 = 180200;
pub const __IPHONE_18_3: u32 = 180300;
pub const __IPHONE_18_4: u32 = 180400;
pub const __IPHONE_18_5: u32 = 180500;
pub const __IPHONE_18_6: u32 = 180600;
pub const __IPHONE_19_0: u32 = 190000;
pub const __IPHONE_26_0: u32 = 260000;
pub const __IPHONE_26_1: u32 = 260100;
pub const __IPHONE_26_2: u32 = 260200;
pub const __IPHONE_26_3: u32 = 260300;
pub const __IPHONE_26_4: u32 = 260400;
pub const __WATCHOS_1_0: u32 = 10000;
pub const __WATCHOS_2_0: u32 = 20000;
pub const __WATCHOS_2_1: u32 = 20100;
pub const __WATCHOS_2_2: u32 = 20200;
pub const __WATCHOS_3_0: u32 = 30000;
pub const __WATCHOS_3_1: u32 = 30100;
pub const __WATCHOS_3_1_1: u32 = 30101;
pub const __WATCHOS_3_2: u32 = 30200;
pub const __WATCHOS_4_0: u32 = 40000;
pub const __WATCHOS_4_1: u32 = 40100;
pub const __WATCHOS_4_2: u32 = 40200;
pub const __WATCHOS_4_3: u32 = 40300;
pub const __WATCHOS_5_0: u32 = 50000;
pub const __WATCHOS_5_1: u32 = 50100;
pub const __WATCHOS_5_2: u32 = 50200;
pub const __WATCHOS_5_3: u32 = 50300;
pub const __WATCHOS_6_0: u32 = 60000;
pub const __WATCHOS_6_1: u32 = 60100;
pub const __WATCHOS_6_2: u32 = 60200;
pub const __WATCHOS_7_0: u32 = 70000;
pub const __WATCHOS_7_1: u32 = 70100;
pub const __WATCHOS_7_2: u32 = 70200;
pub const __WATCHOS_7_3: u32 = 70300;
pub const __WATCHOS_7_4: u32 = 70400;
pub const __WATCHOS_7_5: u32 = 70500;
pub const __WATCHOS_7_6: u32 = 70600;
pub const __WATCHOS_8_0: u32 = 80000;
pub const __WATCHOS_8_1: u32 = 80100;
pub const __WATCHOS_8_3: u32 = 80300;
pub const __WATCHOS_8_4: u32 = 80400;
pub const __WATCHOS_8_5: u32 = 80500;
pub const __WATCHOS_8_6: u32 = 80600;
pub const __WATCHOS_8_7: u32 = 80700;
pub const __WATCHOS_8_8: u32 = 80800;
pub const __WATCHOS_9_0: u32 = 90000;
pub const __WATCHOS_9_1: u32 = 90100;
pub const __WATCHOS_9_2: u32 = 90200;
pub const __WATCHOS_9_3: u32 = 90300;
pub const __WATCHOS_9_4: u32 = 90400;
pub const __WATCHOS_9_5: u32 = 90500;
pub const __WATCHOS_9_6: u32 = 90600;
pub const __WATCHOS_10_0: u32 = 100000;
pub const __WATCHOS_10_1: u32 = 100100;
pub const __WATCHOS_10_2: u32 = 100200;
pub const __WATCHOS_10_3: u32 = 100300;
pub const __WATCHOS_10_4: u32 = 100400;
pub const __WATCHOS_10_5: u32 = 100500;
pub const __WATCHOS_10_6: u32 = 100600;
pub const __WATCHOS_10_7: u32 = 100700;
pub const __WATCHOS_11_0: u32 = 110000;
pub const __WATCHOS_11_1: u32 = 110100;
pub const __WATCHOS_11_2: u32 = 110200;
pub const __WATCHOS_11_3: u32 = 110300;
pub const __WATCHOS_11_4: u32 = 110400;
pub const __WATCHOS_11_5: u32 = 110500;
pub const __WATCHOS_11_6: u32 = 110600;
pub const __WATCHOS_12_0: u32 = 120000;
pub const __WATCHOS_26_0: u32 = 260000;
pub const __WATCHOS_26_1: u32 = 260100;
pub const __WATCHOS_26_2: u32 = 260200;
pub const __WATCHOS_26_3: u32 = 260300;
pub const __WATCHOS_26_4: u32 = 260400;
pub const __TVOS_9_0: u32 = 90000;
pub const __TVOS_9_1: u32 = 90100;
pub const __TVOS_9_2: u32 = 90200;
pub const __TVOS_10_0: u32 = 100000;
pub const __TVOS_10_0_1: u32 = 100001;
pub const __TVOS_10_1: u32 = 100100;
pub const __TVOS_10_2: u32 = 100200;
pub const __TVOS_11_0: u32 = 110000;
pub const __TVOS_11_1: u32 = 110100;
pub const __TVOS_11_2: u32 = 110200;
pub const __TVOS_11_3: u32 = 110300;
pub const __TVOS_11_4: u32 = 110400;
pub const __TVOS_12_0: u32 = 120000;
pub const __TVOS_12_1: u32 = 120100;
pub const __TVOS_12_2: u32 = 120200;
pub const __TVOS_12_3: u32 = 120300;
pub const __TVOS_12_4: u32 = 120400;
pub const __TVOS_13_0: u32 = 130000;
pub const __TVOS_13_2: u32 = 130200;
pub const __TVOS_13_3: u32 = 130300;
pub const __TVOS_13_4: u32 = 130400;
pub const __TVOS_14_0: u32 = 140000;
pub const __TVOS_14_1: u32 = 140100;
pub const __TVOS_14_2: u32 = 140200;
pub const __TVOS_14_3: u32 = 140300;
pub const __TVOS_14_5: u32 = 140500;
pub const __TVOS_14_6: u32 = 140600;
pub const __TVOS_14_7: u32 = 140700;
pub const __TVOS_15_0: u32 = 150000;
pub const __TVOS_15_1: u32 = 150100;
pub const __TVOS_15_2: u32 = 150200;
pub const __TVOS_15_3: u32 = 150300;
pub const __TVOS_15_4: u32 = 150400;
pub const __TVOS_15_5: u32 = 150500;
pub const __TVOS_15_6: u32 = 150600;
pub const __TVOS_16_0: u32 = 160000;
pub const __TVOS_16_1: u32 = 160100;
pub const __TVOS_16_2: u32 = 160200;
pub const __TVOS_16_3: u32 = 160300;
pub const __TVOS_16_4: u32 = 160400;
pub const __TVOS_16_5: u32 = 160500;
pub const __TVOS_16_6: u32 = 160600;
pub const __TVOS_17_0: u32 = 170000;
pub const __TVOS_17_1: u32 = 170100;
pub const __TVOS_17_2: u32 = 170200;
pub const __TVOS_17_3: u32 = 170300;
pub const __TVOS_17_4: u32 = 170400;
pub const __TVOS_17_5: u32 = 170500;
pub const __TVOS_17_6: u32 = 170600;
pub const __TVOS_18_0: u32 = 180000;
pub const __TVOS_18_1: u32 = 180100;
pub const __TVOS_18_2: u32 = 180200;
pub const __TVOS_18_3: u32 = 180300;
pub const __TVOS_18_4: u32 = 180400;
pub const __TVOS_18_5: u32 = 180500;
pub const __TVOS_18_6: u32 = 180600;
pub const __TVOS_19_0: u32 = 190000;
pub const __TVOS_26_0: u32 = 260000;
pub const __TVOS_26_1: u32 = 260100;
pub const __TVOS_26_2: u32 = 260200;
pub const __TVOS_26_3: u32 = 260300;
pub const __TVOS_26_4: u32 = 260400;
pub const __BRIDGEOS_2_0: u32 = 20000;
pub const __BRIDGEOS_3_0: u32 = 30000;
pub const __BRIDGEOS_3_1: u32 = 30100;
pub const __BRIDGEOS_3_4: u32 = 30400;
pub const __BRIDGEOS_4_0: u32 = 40000;
pub const __BRIDGEOS_4_1: u32 = 40100;
pub const __BRIDGEOS_5_0: u32 = 50000;
pub const __BRIDGEOS_5_1: u32 = 50100;
pub const __BRIDGEOS_5_3: u32 = 50300;
pub const __BRIDGEOS_6_0: u32 = 60000;
pub const __BRIDGEOS_6_2: u32 = 60200;
pub const __BRIDGEOS_6_4: u32 = 60400;
pub const __BRIDGEOS_6_5: u32 = 60500;
pub const __BRIDGEOS_6_6: u32 = 60600;
pub const __BRIDGEOS_7_0: u32 = 70000;
pub const __BRIDGEOS_7_1: u32 = 70100;
pub const __BRIDGEOS_7_2: u32 = 70200;
pub const __BRIDGEOS_7_3: u32 = 70300;
pub const __BRIDGEOS_7_4: u32 = 70400;
pub const __BRIDGEOS_7_6: u32 = 70600;
pub const __BRIDGEOS_8_0: u32 = 80000;
pub const __BRIDGEOS_8_1: u32 = 80100;
pub const __BRIDGEOS_8_2: u32 = 80200;
pub const __BRIDGEOS_8_3: u32 = 80300;
pub const __BRIDGEOS_8_4: u32 = 80400;
pub const __BRIDGEOS_8_5: u32 = 80500;
pub const __BRIDGEOS_8_6: u32 = 80600;
pub const __BRIDGEOS_9_0: u32 = 90000;
pub const __BRIDGEOS_9_1: u32 = 90100;
pub const __BRIDGEOS_9_2: u32 = 90200;
pub const __BRIDGEOS_9_3: u32 = 90300;
pub const __BRIDGEOS_9_4: u32 = 90400;
pub const __BRIDGEOS_9_5: u32 = 90500;
pub const __BRIDGEOS_9_6: u32 = 90600;
pub const __BRIDGEOS_10_0: u32 = 100000;
pub const __BRIDGEOS_10_1: u32 = 100100;
pub const __BRIDGEOS_10_2: u32 = 100200;
pub const __BRIDGEOS_10_3: u32 = 100300;
pub const __BRIDGEOS_10_4: u32 = 100400;
pub const __DRIVERKIT_19_0: u32 = 190000;
pub const __DRIVERKIT_20_0: u32 = 200000;
pub const __DRIVERKIT_21_0: u32 = 210000;
pub const __DRIVERKIT_22_0: u32 = 220000;
pub const __DRIVERKIT_22_4: u32 = 220400;
pub const __DRIVERKIT_22_5: u32 = 220500;
pub const __DRIVERKIT_22_6: u32 = 220600;
pub const __DRIVERKIT_23_0: u32 = 230000;
pub const __DRIVERKIT_23_1: u32 = 230100;
pub const __DRIVERKIT_23_2: u32 = 230200;
pub const __DRIVERKIT_23_3: u32 = 230300;
pub const __DRIVERKIT_23_4: u32 = 230400;
pub const __DRIVERKIT_23_5: u32 = 230500;
pub const __DRIVERKIT_23_6: u32 = 230600;
pub const __DRIVERKIT_24_0: u32 = 240000;
pub const __DRIVERKIT_24_1: u32 = 240100;
pub const __DRIVERKIT_24_2: u32 = 240200;
pub const __DRIVERKIT_24_3: u32 = 240300;
pub const __DRIVERKIT_24_4: u32 = 240400;
pub const __DRIVERKIT_24_5: u32 = 240500;
pub const __DRIVERKIT_24_6: u32 = 240600;
pub const __DRIVERKIT_25_0: u32 = 250000;
pub const __DRIVERKIT_25_1: u32 = 250100;
pub const __DRIVERKIT_25_2: u32 = 250200;
pub const __DRIVERKIT_25_3: u32 = 250300;
pub const __DRIVERKIT_25_4: u32 = 250400;
pub const __VISIONOS_1_0: u32 = 10000;
pub const __VISIONOS_1_1: u32 = 10100;
pub const __VISIONOS_1_2: u32 = 10200;
pub const __VISIONOS_1_3: u32 = 10300;
pub const __VISIONOS_2_0: u32 = 20000;
pub const __VISIONOS_2_1: u32 = 20100;
pub const __VISIONOS_2_2: u32 = 20200;
pub const __VISIONOS_2_3: u32 = 20300;
pub const __VISIONOS_2_4: u32 = 20400;
pub const __VISIONOS_2_5: u32 = 20500;
pub const __VISIONOS_2_6: u32 = 20600;
pub const __VISIONOS_3_0: u32 = 30000;
pub const __VISIONOS_26_0: u32 = 260000;
pub const __VISIONOS_26_1: u32 = 260100;
pub const __VISIONOS_26_2: u32 = 260200;
pub const __VISIONOS_26_3: u32 = 260300;
pub const __VISIONOS_26_4: u32 = 260400;
pub const MAC_OS_X_VERSION_10_0: u32 = 1000;
pub const MAC_OS_X_VERSION_10_1: u32 = 1010;
pub const MAC_OS_X_VERSION_10_2: u32 = 1020;
pub const MAC_OS_X_VERSION_10_3: u32 = 1030;
pub const MAC_OS_X_VERSION_10_4: u32 = 1040;
pub const MAC_OS_X_VERSION_10_5: u32 = 1050;
pub const MAC_OS_X_VERSION_10_6: u32 = 1060;
pub const MAC_OS_X_VERSION_10_7: u32 = 1070;
pub const MAC_OS_X_VERSION_10_8: u32 = 1080;
pub const MAC_OS_X_VERSION_10_9: u32 = 1090;
pub const MAC_OS_X_VERSION_10_10: u32 = 101000;
pub const MAC_OS_X_VERSION_10_10_2: u32 = 101002;
pub const MAC_OS_X_VERSION_10_10_3: u32 = 101003;
pub const MAC_OS_X_VERSION_10_11: u32 = 101100;
pub const MAC_OS_X_VERSION_10_11_2: u32 = 101102;
pub const MAC_OS_X_VERSION_10_11_3: u32 = 101103;
pub const MAC_OS_X_VERSION_10_11_4: u32 = 101104;
pub const MAC_OS_X_VERSION_10_12: u32 = 101200;
pub const MAC_OS_X_VERSION_10_12_1: u32 = 101201;
pub const MAC_OS_X_VERSION_10_12_2: u32 = 101202;
pub const MAC_OS_X_VERSION_10_12_4: u32 = 101204;
pub const MAC_OS_X_VERSION_10_13: u32 = 101300;
pub const MAC_OS_X_VERSION_10_13_1: u32 = 101301;
pub const MAC_OS_X_VERSION_10_13_2: u32 = 101302;
pub const MAC_OS_X_VERSION_10_13_4: u32 = 101304;
pub const MAC_OS_X_VERSION_10_14: u32 = 101400;
pub const MAC_OS_X_VERSION_10_14_1: u32 = 101401;
pub const MAC_OS_X_VERSION_10_14_4: u32 = 101404;
pub const MAC_OS_X_VERSION_10_14_5: u32 = 101405;
pub const MAC_OS_X_VERSION_10_14_6: u32 = 101406;
pub const MAC_OS_X_VERSION_10_15: u32 = 101500;
pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501;
pub const MAC_OS_X_VERSION_10_15_4: u32 = 101504;
pub const MAC_OS_X_VERSION_10_16: u32 = 101600;
pub const MAC_OS_VERSION_11_0: u32 = 110000;
pub const MAC_OS_VERSION_11_1: u32 = 110100;
pub const MAC_OS_VERSION_11_3: u32 = 110300;
pub const MAC_OS_VERSION_11_4: u32 = 110400;
pub const MAC_OS_VERSION_11_5: u32 = 110500;
pub const MAC_OS_VERSION_11_6: u32 = 110600;
pub const MAC_OS_VERSION_12_0: u32 = 120000;
pub const MAC_OS_VERSION_12_1: u32 = 120100;
pub const MAC_OS_VERSION_12_2: u32 = 120200;
pub const MAC_OS_VERSION_12_3: u32 = 120300;
pub const MAC_OS_VERSION_12_4: u32 = 120400;
pub const MAC_OS_VERSION_12_5: u32 = 120500;
pub const MAC_OS_VERSION_12_6: u32 = 120600;
pub const MAC_OS_VERSION_12_7: u32 = 120700;
pub const MAC_OS_VERSION_13_0: u32 = 130000;
pub const MAC_OS_VERSION_13_1: u32 = 130100;
pub const MAC_OS_VERSION_13_2: u32 = 130200;
pub const MAC_OS_VERSION_13_3: u32 = 130300;
pub const MAC_OS_VERSION_13_4: u32 = 130400;
pub const MAC_OS_VERSION_13_5: u32 = 130500;
pub const MAC_OS_VERSION_13_6: u32 = 130600;
pub const MAC_OS_VERSION_13_7: u32 = 130700;
pub const MAC_OS_VERSION_14_0: u32 = 140000;
pub const MAC_OS_VERSION_14_1: u32 = 140100;
pub const MAC_OS_VERSION_14_2: u32 = 140200;
pub const MAC_OS_VERSION_14_3: u32 = 140300;
pub const MAC_OS_VERSION_14_4: u32 = 140400;
pub const MAC_OS_VERSION_14_5: u32 = 140500;
pub const MAC_OS_VERSION_14_6: u32 = 140600;
pub const MAC_OS_VERSION_14_7: u32 = 140700;
pub const MAC_OS_VERSION_15_0: u32 = 150000;
pub const MAC_OS_VERSION_15_1: u32 = 150100;
pub const MAC_OS_VERSION_15_2: u32 = 150200;
pub const MAC_OS_VERSION_15_3: u32 = 150300;
pub const MAC_OS_VERSION_15_4: u32 = 150400;
pub const MAC_OS_VERSION_15_5: u32 = 150500;
pub const MAC_OS_VERSION_15_6: u32 = 150600;
pub const MAC_OS_VERSION_16_0: u32 = 160000;
pub const MAC_OS_VERSION_26_0: u32 = 260000;
pub const MAC_OS_VERSION_26_1: u32 = 260100;
pub const MAC_OS_VERSION_26_2: u32 = 260200;
pub const MAC_OS_VERSION_26_3: u32 = 260300;
pub const MAC_OS_VERSION_26_4: u32 = 260400;
pub const __AVAILABILITY_VERSIONS_VERSION_HASH: u32 = 93585900;
pub const __AVAILABILITY_VERSIONS_VERSION_STRING: &[u8; 6] = b"Local\0";
pub const __AVAILABILITY_FILE: &[u8; 23] = b"AvailabilityVersions.h\0";
pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 260400;
pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1;
pub const __DARWIN_WCHAR_MIN: i32 = -2147483648;
pub const _FORTIFY_SOURCE: u32 = 2;
pub const USE_CLANG_STDDEF: u32 = 0;
pub const PRIdSIZE: &[u8; 3] = b"zd\0";
pub const PRIuSIZE: &[u8; 3] = b"zu\0";
pub const PRIxSIZE: &[u8; 3] = b"zx\0";
pub const DDSRT_RFC3339STRLEN: u32 = 25;
pub const DDS_RETCODE_OK: u32 = 0;
pub const DDS_RETCODE_ERROR: i32 = -1;
pub const DDS_RETCODE_UNSUPPORTED: i32 = -2;
pub const DDS_RETCODE_BAD_PARAMETER: i32 = -3;
pub const DDS_RETCODE_PRECONDITION_NOT_MET: i32 = -4;
pub const DDS_RETCODE_OUT_OF_RESOURCES: i32 = -5;
pub const DDS_RETCODE_NOT_ENABLED: i32 = -6;
pub const DDS_RETCODE_IMMUTABLE_POLICY: i32 = -7;
pub const DDS_RETCODE_INCONSISTENT_POLICY: i32 = -8;
pub const DDS_RETCODE_ALREADY_DELETED: i32 = -9;
pub const DDS_RETCODE_TIMEOUT: i32 = -10;
pub const DDS_RETCODE_NO_DATA: i32 = -11;
pub const DDS_RETCODE_ILLEGAL_OPERATION: i32 = -12;
pub const DDS_RETCODE_NOT_ALLOWED_BY_SECURITY: i32 = -13;
pub const DDS_XRETCODE_BASE: i32 = -50;
pub const USE_CLANG_STDARG: u32 = 0;
pub const RENAME_SECLUDE: u32 = 1;
pub const RENAME_SWAP: u32 = 2;
pub const RENAME_EXCL: u32 = 4;
pub const RENAME_RESERVED1: u32 = 8;
pub const RENAME_NOFOLLOW_ANY: u32 = 16;
pub const RENAME_RESOLVE_BENEATH: u32 = 32;
pub const SEEK_SET: u32 = 0;
pub const SEEK_CUR: u32 = 1;
pub const SEEK_END: u32 = 2;
pub const SEEK_HOLE: u32 = 3;
pub const SEEK_DATA: u32 = 4;
pub const __SLBF: u32 = 1;
pub const __SNBF: u32 = 2;
pub const __SRD: u32 = 4;
pub const __SWR: u32 = 8;
pub const __SRW: u32 = 16;
pub const __SEOF: u32 = 32;
pub const __SERR: u32 = 64;
pub const __SMBF: u32 = 128;
pub const __SAPP: u32 = 256;
pub const __SSTR: u32 = 512;
pub const __SOPT: u32 = 1024;
pub const __SNPT: u32 = 2048;
pub const __SOFF: u32 = 4096;
pub const __SMOD: u32 = 8192;
pub const __SALC: u32 = 16384;
pub const __SIGN: u32 = 32768;
pub const _IOFBF: u32 = 0;
pub const _IOLBF: u32 = 1;
pub const _IONBF: u32 = 2;
pub const BUFSIZ: u32 = 1024;
pub const EOF: i32 = -1;
pub const FOPEN_MAX: u32 = 20;
pub const FILENAME_MAX: u32 = 1024;
pub const P_tmpdir: &[u8; 10] = b"/var/tmp/\0";
pub const L_tmpnam: u32 = 1024;
pub const TMP_MAX: u32 = 308915776;
pub const L_ctermid: u32 = 1024;
pub const _USE_FORTIFY_LEVEL: u32 = 2;
pub const DDS_LC_FATAL: u32 = 1;
pub const DDS_LC_ERROR: u32 = 2;
pub const DDS_LC_WARNING: u32 = 4;
pub const DDS_LC_INFO: u32 = 8;
pub const DDS_LC_CONFIG: u32 = 16;
pub const DDS_LC_DISCOVERY: u32 = 32;
pub const DDS_LC_DATA: u32 = 64;
pub const DDS_LC_TRACE: u32 = 128;
pub const DDS_LC_RADMIN: u32 = 256;
pub const DDS_LC_TIMING: u32 = 512;
pub const DDS_LC_TRAFFIC: u32 = 1024;
pub const DDS_LC_TOPIC: u32 = 2048;
pub const DDS_LC_TCP: u32 = 4096;
pub const DDS_LC_PLIST: u32 = 8192;
pub const DDS_LC_WHC: u32 = 16384;
pub const DDS_LC_THROTTLE: u32 = 32768;
pub const DDS_LC_RHC: u32 = 65536;
pub const DDS_LC_CONTENT: u32 = 131072;
pub const DDS_LC_MALFORMED: u32 = 262144;
pub const DDS_LC_SYSDEF: u32 = 524288;
pub const DDS_LC_QOSPROV: u32 = 1048576;
pub const DDS_LC_USER1: u32 = 536870912;
pub const DDS_LC_USER2: u32 = 1073741824;
pub const DDS_LC_USER3: u32 = 2147483648;
pub const DDS_LC_USER: u32 = 3758096384;
pub const DDS_LC_ALL: u32 = 3758266111;
pub const DDS_LOG_MASK: u32 = 15;
pub const DDS_TRACE_MASK: i32 = -16;
pub const DDS_FREE_KEY_BIT: u32 = 1;
pub const DDS_FREE_CONTENTS_BIT: u32 = 2;
pub const DDS_FREE_ALL_BIT: u32 = 4;
pub const DDS_OP_MASK: u32 = 4278190080;
pub const DDS_OP_TYPE_FLAGS_MASK: u32 = 8388608;
pub const DDS_OP_TYPE_MASK: u32 = 8323072;
pub const DDS_OP_SUBTYPE_MASK: u32 = 65280;
pub const DDS_OP_JMP_MASK: u32 = 65535;
pub const DDS_OP_FLAGS_MASK: u32 = 255;
pub const DDS_JEQ_TYPE_FLAGS_MASK: u32 = 8388608;
pub const DDS_JEQ_TYPE_MASK: u32 = 8323072;
pub const DDS_PLM_FLAGS_MASK: u32 = 16711680;
pub const DDS_KOF_OFFSET_MASK: u32 = 65535;
pub const DDS_MID_OFFSET_MASK: u32 = 65535;
pub const DDS_OP_FLAG_EXT: u32 = 8388608;
pub const DDS_OP_FLAG_KEY: u32 = 1;
pub const DDS_OP_FLAG_DEF: u32 = 2;
pub const DDS_OP_FLAG_FP: u32 = 2;
pub const DDS_OP_FLAG_SGN: u32 = 4;
pub const DDS_OP_FLAG_MU: u32 = 8;
pub const DDS_OP_FLAG_BASE: u32 = 16;
pub const DDS_OP_FLAG_OPT: u32 = 32;
pub const DDS_OP_FLAG_SZ_SHIFT: u32 = 6;
pub const DDS_OP_FLAG_SZ_MASK: u32 = 192;
pub const DDS_TOPIC_NO_OPTIMIZE: u32 = 1;
pub const DDS_TOPIC_FIXED_KEY: u32 = 2;
pub const DDS_TOPIC_CONTAINS_UNION: u32 = 4;
pub const DDS_TOPIC_FIXED_SIZE: u32 = 16;
pub const DDS_TOPIC_FIXED_KEY_XCDR2: u32 = 32;
pub const DDS_TOPIC_XTYPES_METADATA: u32 = 64;
pub const DDS_TOPIC_RESTRICT_DATA_REPRESENTATION: u32 = 128;
pub const DDS_TOPIC_KEY_MUTABLE: u32 = 256;
pub const DDS_TOPIC_KEY_APPENDABLE: u32 = 512;
pub const DDS_TOPIC_FIXED_KEY_XCDR2_KEYHASH: u32 = 1024;
pub const DDS_TOPIC_KEY_SEQUENCE: u32 = 2048;
pub const DDS_TOPIC_KEY_ARRAY_NONPRIM: u32 = 4096;
pub const DDS_FIXED_KEY_MAX_SIZE: u32 = 16;
pub const DDS_DATA_REPRESENTATION_XCDR1: u32 = 0;
pub const DDS_DATA_REPRESENTATION_XML: u32 = 1;
pub const DDS_DATA_REPRESENTATION_XCDR2: u32 = 2;
pub const DDS_DATA_REPRESENTATION_FLAG_XCDR1: u32 = 1;
pub const DDS_DATA_REPRESENTATION_FLAG_XML: u32 = 2;
pub const DDS_DATA_REPRESENTATION_FLAG_XCDR2: u32 = 4;
pub const DDS_DATA_REPRESENTATION_RESTRICT_DEFAULT: u32 = 5;
pub const DDS_READ_SAMPLE_STATE: u32 = 1;
pub const DDS_NOT_READ_SAMPLE_STATE: u32 = 2;
pub const DDS_ANY_SAMPLE_STATE: u32 = 3;
pub const DDS_NEW_VIEW_STATE: u32 = 4;
pub const DDS_NOT_NEW_VIEW_STATE: u32 = 8;
pub const DDS_ANY_VIEW_STATE: u32 = 12;
pub const DDS_ALIVE_INSTANCE_STATE: u32 = 16;
pub const DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE: u32 = 32;
pub const DDS_NOT_ALIVE_NO_WRITERS_INSTANCE_STATE: u32 = 64;
pub const DDS_ANY_INSTANCE_STATE: u32 = 112;
pub const DDS_ANY_STATE: u32 = 127;
pub const DDS_HANDLE_NIL: u32 = 0;
pub const DDS_ENTITY_NIL: u32 = 0;
pub const DDS_LENGTH_UNLIMITED: i32 = -1;
pub const DDS_HAS_PROPERTY_LIST_QOS: u32 = 1;
pub const __DARWIN_CLK_TCK: u32 = 100;
pub const USE_CLANG_LIMITS: u32 = 0;
pub const MB_LEN_MAX: u32 = 6;
pub const CLK_TCK: u32 = 100;
pub const CHAR_BIT: u32 = 8;
pub const SCHAR_MAX: u32 = 127;
pub const SCHAR_MIN: i32 = -128;
pub const UCHAR_MAX: u32 = 255;
pub const CHAR_MAX: u32 = 127;
pub const CHAR_MIN: i32 = -128;
pub const USHRT_MAX: u32 = 65535;
pub const SHRT_MAX: u32 = 32767;
pub const SHRT_MIN: i32 = -32768;
pub const UINT_MAX: u32 = 4294967295;
pub const INT_MAX: u32 = 2147483647;
pub const INT_MIN: i32 = -2147483648;
pub const ULONG_MAX: i32 = -1;
pub const LONG_MAX: u64 = 9223372036854775807;
pub const LONG_MIN: i64 = -9223372036854775808;
pub const ULLONG_MAX: i32 = -1;
pub const LLONG_MAX: u64 = 9223372036854775807;
pub const LLONG_MIN: i64 = -9223372036854775808;
pub const LONG_BIT: u32 = 64;
pub const SSIZE_MAX: u64 = 9223372036854775807;
pub const WORD_BIT: u32 = 32;
pub const SIZE_T_MAX: i32 = -1;
pub const UQUAD_MAX: i32 = -1;
pub const QUAD_MAX: u64 = 9223372036854775807;
pub const QUAD_MIN: i64 = -9223372036854775808;
pub const ARG_MAX: u32 = 1048576;
pub const CHILD_MAX: u32 = 266;
pub const GID_MAX: u32 = 2147483647;
pub const LINK_MAX: u32 = 32767;
pub const MAX_CANON: u32 = 1024;
pub const MAX_INPUT: u32 = 1024;
pub const NAME_MAX: u32 = 255;
pub const NGROUPS_MAX: u32 = 16;
pub const UID_MAX: u32 = 2147483647;
pub const OPEN_MAX: u32 = 10240;
pub const PATH_MAX: u32 = 1024;
pub const PIPE_BUF: u32 = 512;
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 CHARCLASS_NAME_MAX: u32 = 14;
pub const COLL_WEIGHTS_MAX: u32 = 2;
pub const EQUIV_CLASS_MAX: u32 = 2;
pub const EXPR_NEST_MAX: u32 = 32;
pub const LINE_MAX: u32 = 2048;
pub const RE_DUP_MAX: u32 = 255;
pub const NZERO: u32 = 20;
pub const _POSIX_ARG_MAX: u32 = 4096;
pub const _POSIX_CHILD_MAX: u32 = 25;
pub const _POSIX_LINK_MAX: u32 = 8;
pub const _POSIX_MAX_CANON: u32 = 255;
pub const _POSIX_MAX_INPUT: u32 = 255;
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_SSIZE_MAX: u32 = 32767;
pub const _POSIX_STREAM_MAX: u32 = 8;
pub const _POSIX_TZNAME_MAX: u32 = 6;
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_EQUIV_CLASS_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 _POSIX_AIO_LISTIO_MAX: u32 = 2;
pub const _POSIX_AIO_MAX: u32 = 1;
pub const _POSIX_DELAYTIMER_MAX: u32 = 32;
pub const _POSIX_MQ_OPEN_MAX: u32 = 8;
pub const _POSIX_MQ_PRIO_MAX: u32 = 32;
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_TIMER_MAX: u32 = 32;
pub const _POSIX_CLOCKRES_MIN: u32 = 20000000;
pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const _POSIX_THREAD_KEYS_MAX: u32 = 128;
pub const _POSIX_THREAD_THREADS_MAX: u32 = 64;
pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4;
pub const PTHREAD_KEYS_MAX: u32 = 512;
pub const PTHREAD_STACK_MIN: u32 = 16384;
pub const _POSIX_HOST_NAME_MAX: u32 = 255;
pub const _POSIX_LOGIN_NAME_MAX: u32 = 9;
pub const _POSIX_SS_REPL_MAX: u32 = 4;
pub const _POSIX_SYMLINK_MAX: u32 = 255;
pub const _POSIX_SYMLOOP_MAX: u32 = 8;
pub const _POSIX_TRACE_EVENT_NAME_MAX: u32 = 30;
pub const _POSIX_TRACE_NAME_MAX: u32 = 8;
pub const _POSIX_TRACE_SYS_MAX: u32 = 8;
pub const _POSIX_TRACE_USER_EVENT_MAX: u32 = 32;
pub const _POSIX_TTY_NAME_MAX: u32 = 9;
pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14;
pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2;
pub const _POSIX_RE_DUP_MAX: u32 = 255;
pub const OFF_MIN: i64 = -9223372036854775808;
pub const OFF_MAX: u64 = 9223372036854775807;
pub const PASS_MAX: u32 = 128;
pub const NL_ARGMAX: u32 = 9;
pub const NL_LANGMAX: u32 = 14;
pub const NL_MSGMAX: u32 = 32767;
pub const NL_NMAX: u32 = 1;
pub const NL_SETMAX: u32 = 255;
pub const NL_TEXTMAX: u32 = 2048;
pub const _XOPEN_IOV_MAX: u32 = 16;
pub const IOV_MAX: u32 = 1024;
pub const _XOPEN_NAME_MAX: u32 = 255;
pub const _XOPEN_PATH_MAX: u32 = 1024;
pub const DDS_ERR_NR_MASK: u32 = 255;
pub const DDS_ERR_LINE_MASK: u32 = 4194048;
pub const DDS_ERR_FILE_ID_MASK: u32 = 2143289344;
pub const DDS_CHECK_REPORT: u32 = 1;
pub const DDS_CHECK_FAIL: u32 = 2;
pub const DDS_CHECK_EXIT: u32 = 4;
pub const DDS_DYNAMIC_MEMBER_ID_INVALID: u32 = 251658240;
pub const DDS_DYNAMIC_MEMBER_ID_AUTO: u32 = 251658240;
pub const DDS_DYNAMIC_MEMBER_INDEX_START: u32 = 0;
pub const DDS_DYNAMIC_MEMBER_INDEX_END: u32 = 4294967295;
pub const DDS_DYNAMIC_BITMASK_POSITION_AUTO: u32 = 65535;
pub const DDS_HAS_DDSI_SERTYPE: u32 = 1;
pub const DDS_HAS_CREATE_TOPIC_SERTYPE: u32 = 1;
pub const DDS_HAS_READCDR: u32 = 1;
pub const __DARWIN_NSIG: u32 = 32;
pub const NSIG: u32 = 32;
pub const _ARM_SIGNAL_: u32 = 1;
pub const SIGHUP: u32 = 1;
pub const SIGINT: u32 = 2;
pub const SIGQUIT: u32 = 3;
pub const SIGILL: u32 = 4;
pub const SIGTRAP: u32 = 5;
pub const SIGABRT: u32 = 6;
pub const SIGIOT: u32 = 6;
pub const SIGEMT: u32 = 7;
pub const SIGFPE: u32 = 8;
pub const SIGKILL: u32 = 9;
pub const SIGBUS: u32 = 10;
pub const SIGSEGV: u32 = 11;
pub const SIGSYS: u32 = 12;
pub const SIGPIPE: u32 = 13;
pub const SIGALRM: u32 = 14;
pub const SIGTERM: u32 = 15;
pub const SIGURG: u32 = 16;
pub const SIGSTOP: u32 = 17;
pub const SIGTSTP: u32 = 18;
pub const SIGCONT: u32 = 19;
pub const SIGCHLD: u32 = 20;
pub const SIGTTIN: u32 = 21;
pub const SIGTTOU: u32 = 22;
pub const SIGIO: u32 = 23;
pub const SIGXCPU: u32 = 24;
pub const SIGXFSZ: u32 = 25;
pub const SIGVTALRM: u32 = 26;
pub const SIGPROF: u32 = 27;
pub const SIGWINCH: u32 = 28;
pub const SIGINFO: u32 = 29;
pub const SIGUSR1: u32 = 30;
pub const SIGUSR2: u32 = 31;
pub const __DARWIN_OPAQUE_ARM_THREAD_STATE64: u32 = 0;
pub const SIGEV_NONE: u32 = 0;
pub const SIGEV_SIGNAL: u32 = 1;
pub const SIGEV_THREAD: u32 = 3;
pub const SIGEV_KEVENT: u32 = 4;
pub const ILL_NOOP: u32 = 0;
pub const ILL_ILLOPC: u32 = 1;
pub const ILL_ILLTRP: u32 = 2;
pub const ILL_PRVOPC: u32 = 3;
pub const ILL_ILLOPN: u32 = 4;
pub const ILL_ILLADR: u32 = 5;
pub const ILL_PRVREG: u32 = 6;
pub const ILL_COPROC: u32 = 7;
pub const ILL_BADSTK: u32 = 8;
pub const FPE_NOOP: u32 = 0;
pub const FPE_FLTDIV: u32 = 1;
pub const FPE_FLTOVF: u32 = 2;
pub const FPE_FLTUND: u32 = 3;
pub const FPE_FLTRES: u32 = 4;
pub const FPE_FLTINV: u32 = 5;
pub const FPE_FLTSUB: u32 = 6;
pub const FPE_INTDIV: u32 = 7;
pub const FPE_INTOVF: u32 = 8;
pub const SEGV_NOOP: u32 = 0;
pub const SEGV_MAPERR: u32 = 1;
pub const SEGV_ACCERR: u32 = 2;
pub const BUS_NOOP: u32 = 0;
pub const BUS_ADRALN: u32 = 1;
pub const BUS_ADRERR: u32 = 2;
pub const BUS_OBJERR: u32 = 3;
pub const TRAP_BRKPT: u32 = 1;
pub const TRAP_TRACE: u32 = 2;
pub const CLD_NOOP: u32 = 0;
pub const CLD_EXITED: u32 = 1;
pub const CLD_KILLED: u32 = 2;
pub const CLD_DUMPED: u32 = 3;
pub const CLD_TRAPPED: u32 = 4;
pub const CLD_STOPPED: u32 = 5;
pub const CLD_CONTINUED: u32 = 6;
pub const POLL_IN: u32 = 1;
pub const POLL_OUT: u32 = 2;
pub const POLL_MSG: u32 = 3;
pub const POLL_ERR: u32 = 4;
pub const POLL_PRI: u32 = 5;
pub const POLL_HUP: u32 = 6;
pub const SA_ONSTACK: u32 = 1;
pub const SA_RESTART: u32 = 2;
pub const SA_RESETHAND: u32 = 4;
pub const SA_NOCLDSTOP: u32 = 8;
pub const SA_NODEFER: u32 = 16;
pub const SA_NOCLDWAIT: u32 = 32;
pub const SA_SIGINFO: u32 = 64;
pub const SA_USERTRAMP: u32 = 256;
pub const SA_64REGSET: u32 = 512;
pub const SA_USERSPACE_MASK: u32 = 127;
pub const SIG_BLOCK: u32 = 1;
pub const SIG_UNBLOCK: u32 = 2;
pub const SIG_SETMASK: u32 = 3;
pub const SI_USER: u32 = 65537;
pub const SI_QUEUE: u32 = 65538;
pub const SI_TIMER: u32 = 65539;
pub const SI_ASYNCIO: u32 = 65540;
pub const SI_MESGQ: u32 = 65541;
pub const SS_ONSTACK: u32 = 1;
pub const SS_DISABLE: u32 = 4;
pub const MINSIGSTKSZ: u32 = 32768;
pub const SIGSTKSZ: u32 = 131072;
pub const SV_ONSTACK: u32 = 1;
pub const SV_INTERRUPT: u32 = 2;
pub const SV_RESETHAND: u32 = 4;
pub const SV_NODEFER: u32 = 16;
pub const SV_NOCLDSTOP: u32 = 8;
pub const SV_SIGINFO: u32 = 64;
pub const PRIO_PROCESS: u32 = 0;
pub const PRIO_PGRP: u32 = 1;
pub const PRIO_USER: u32 = 2;
pub const PRIO_DARWIN_THREAD: u32 = 3;
pub const PRIO_DARWIN_PROCESS: u32 = 4;
pub const PRIO_MIN: i32 = -20;
pub const PRIO_MAX: u32 = 20;
pub const PRIO_DARWIN_BG: u32 = 4096;
pub const PRIO_DARWIN_NONUI: u32 = 4097;
pub const RUSAGE_SELF: u32 = 0;
pub const RUSAGE_CHILDREN: i32 = -1;
pub const RUSAGE_INFO_V0: u32 = 0;
pub const RUSAGE_INFO_V1: u32 = 1;
pub const RUSAGE_INFO_V2: u32 = 2;
pub const RUSAGE_INFO_V3: u32 = 3;
pub const RUSAGE_INFO_V4: u32 = 4;
pub const RUSAGE_INFO_V5: u32 = 5;
pub const RUSAGE_INFO_V6: u32 = 6;
pub const RUSAGE_INFO_CURRENT: u32 = 6;
pub const RU_PROC_RUNS_RESLIDE: u32 = 1;
pub const RLIMIT_CPU: u32 = 0;
pub const RLIMIT_FSIZE: u32 = 1;
pub const RLIMIT_DATA: u32 = 2;
pub const RLIMIT_STACK: u32 = 3;
pub const RLIMIT_CORE: u32 = 4;
pub const RLIMIT_AS: u32 = 5;
pub const RLIMIT_RSS: u32 = 5;
pub const RLIMIT_MEMLOCK: u32 = 6;
pub const RLIMIT_NPROC: u32 = 7;
pub const RLIMIT_NOFILE: u32 = 8;
pub const RLIM_NLIMITS: u32 = 9;
pub const _RLIMIT_POSIX_FLAG: u32 = 4096;
pub const RLIMIT_WAKEUPS_MONITOR: u32 = 1;
pub const RLIMIT_CPU_USAGE_MONITOR: u32 = 2;
pub const RLIMIT_THREAD_CPULIMITS: u32 = 3;
pub const RLIMIT_FOOTPRINT_INTERVAL: u32 = 4;
pub const WAKEMON_ENABLE: u32 = 1;
pub const WAKEMON_DISABLE: u32 = 2;
pub const WAKEMON_GET_PARAMS: u32 = 4;
pub const WAKEMON_SET_DEFAULTS: u32 = 8;
pub const WAKEMON_MAKE_FATAL: u32 = 16;
pub const CPUMON_MAKE_FATAL: u32 = 4096;
pub const FOOTPRINT_INTERVAL_RESET: u32 = 1;
pub const IOPOL_TYPE_DISK: u32 = 0;
pub const IOPOL_TYPE_VFS_ATIME_UPDATES: u32 = 2;
pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3;
pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4;
pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5;
pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6;
pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7;
pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8;
pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9;
pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10;
pub const IOPOL_TYPE_VFS_ENTITLED_RESERVE_ACCESS: u32 = 14;
pub const IOPOL_SCOPE_PROCESS: u32 = 0;
pub const IOPOL_SCOPE_THREAD: u32 = 1;
pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2;
pub const IOPOL_DEFAULT: u32 = 0;
pub const IOPOL_IMPORTANT: u32 = 1;
pub const IOPOL_PASSIVE: u32 = 2;
pub const IOPOL_THROTTLE: u32 = 3;
pub const IOPOL_UTILITY: u32 = 4;
pub const IOPOL_STANDARD: u32 = 5;
pub const IOPOL_APPLICATION: u32 = 5;
pub const IOPOL_NORMAL: u32 = 1;
pub const IOPOL_ATIME_UPDATES_DEFAULT: u32 = 0;
pub const IOPOL_ATIME_UPDATES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_DEFAULT: u32 = 0;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_OFF: u32 = 1;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ON: u32 = 2;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_ORIG: u32 = 4;
pub const IOPOL_MATERIALIZE_DATALESS_FILES_BASIC_MASK: u32 = 3;
pub const IOPOL_VFS_STATFS_NO_DATA_VOLUME_DEFAULT: u32 = 0;
pub const IOPOL_VFS_STATFS_FORCE_NO_DATA_VOLUME: u32 = 1;
pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1;
pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0;
pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0;
pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1;
pub const IOPOL_VFS_SKIP_MTIME_UPDATE_IGNORE: u32 = 2;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0;
pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0;
pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_DEFAULT: u32 = 0;
pub const IOPOL_VFS_NOCACHE_WRITE_FS_BLKSIZE_ON: u32 = 1;
pub const IOPOL_VFS_ENTITLED_RESERVE_ACCESS_OFF: u32 = 0;
pub const IOPOL_VFS_ENTITLED_RESERVE_ACCESS_ON: u32 = 1;
pub const WNOHANG: u32 = 1;
pub const WUNTRACED: u32 = 2;
pub const WCOREFLAG: u32 = 128;
pub const _WSTOPPED: u32 = 127;
pub const WEXITED: u32 = 4;
pub const WSTOPPED: u32 = 8;
pub const WCONTINUED: u32 = 16;
pub const WNOWAIT: u32 = 32;
pub const WAIT_ANY: i32 = -1;
pub const WAIT_MYPGRP: u32 = 0;
pub const _QUAD_HIGHWORD: u32 = 1;
pub const _QUAD_LOWWORD: u32 = 0;
pub const __DARWIN_LITTLE_ENDIAN: u32 = 1234;
pub const __DARWIN_BIG_ENDIAN: u32 = 4321;
pub const __DARWIN_PDP_ENDIAN: u32 = 3412;
pub const LITTLE_ENDIAN: u32 = 1234;
pub const BIG_ENDIAN: u32 = 4321;
pub const PDP_ENDIAN: u32 = 3412;
pub const __DARWIN_BYTE_ORDER: u32 = 1234;
pub const BYTE_ORDER: u32 = 1234;
pub const EXIT_FAILURE: u32 = 1;
pub const EXIT_SUCCESS: u32 = 0;
pub const RAND_MAX: u32 = 2147483647;
pub const _MALLOC_TYPE_MALLOC_BACKDEPLOY_PUBLIC: u32 = 1;
pub const DDSRT_LITTLE_ENDIAN: u32 = 1;
pub const DDSRT_BIG_ENDIAN: u32 = 2;
pub const DDSRT_ENDIAN: u32 = 1;
pub const DDS_DATA_TYPE_CONTAINS_UNION: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BITMASK: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_ENUM: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_STRUCT: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_STRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BSTRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_WSTRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_SEQUENCE: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BSEQUENCE: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_ARRAY: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_OPTIONAL: u32 = 1024;
pub const DDS_DATA_TYPE_CONTAINS_EXTERNAL: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_BWSTRING: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_WCHAR: u32 = 0;
pub const DDS_DATA_TYPE_CONTAINS_APPENDABLE: u32 = 32768;
pub const DDS_DATA_TYPE_CONTAINS_MUTABLE: u32 = 65536;
pub const DDS_DATA_TYPE_DEFAULTS_TO_XCDR2: u32 = 1024;
pub const DDS_DATA_TYPE_DEFAULTS_TO_XCDR2_MASK: u32 = 99328;
pub const DDS_DATA_TYPE_CONTAINS_KEY: u32 = 4096;
pub const DDS_DATA_TYPE_IS_MEMCPY_SAFE: i64 = -9223372036854775808;
pub const DDS_CDRSTREAM_MAX_NESTING_DEPTH: u32 = 32;
pub const DDSI_RTPS_CDR_ENC_VERSION_UNDEF: u32 = 0;
pub const DDSI_RTPS_CDR_ENC_VERSION_1: u32 = 1;
pub const DDSI_RTPS_CDR_ENC_VERSION_2: u32 = 2;
pub const DDSI_RTPS_CDR_ENC_FORMAT_PLAIN: u32 = 0;
pub const DDSI_RTPS_CDR_ENC_FORMAT_DELIMITED: u32 = 1;
pub const DDSI_RTPS_CDR_ENC_FORMAT_PL: u32 = 2;
pub const DDS_CDR_HDR_PADDING_MASK: u32 = 3;
pub const DDS_XCDR1_PL_SHORT_MAX_PARAM_ID: u32 = 16128;
pub const DDS_XCDR1_PL_SHORT_MAX_PARAM_LEN: u32 = 65535;
pub const DDS_XCDR1_PL_SHORT_PID_EXTENDED: u32 = 16129;
pub const DDS_XCDR1_PL_SHORT_PID_LIST_END: u32 = 16130;
pub const DDS_XCDR1_PL_SHORT_PID_EXT_LEN: u32 = 8;
pub const DDS_XCDR1_PL_SHORT_FLAG_IMPL_EXT: u32 = 32768;
pub const DDS_XCDR1_PL_SHORT_FLAG_MU: u32 = 16384;
pub const DDS_XCDR1_PL_SHORT_PID_MASK: u32 = 49151;
pub const DDS_XCDR1_PL_LONG_FLAG_IMPL_EXT: u32 = 2147483648;
pub const DDS_XCDR1_PL_LONG_FLAG_MU: u32 = 1073741824;
pub const DDS_XCDR1_PL_LONG_UNSPECIFIED1: u32 = 536870912;
pub const DDS_XCDR1_PL_LONG_UNSPECIFIED2: u32 = 268435456;
pub const DDS_XCDR1_PL_LONG_MID_MASK: u32 = 2415919103;
pub const DDS_CDR_CALCULATED_FLAGS: u32 = 7970;
pub const DDS_PARTICIPANT_FLAGS_NO_DISCOVERY: u32 = 3;
pub const DDSRT_64BIT: u32 = 1;
pub const DDSRT_HAVE_ATOMIC64: u32 = 1;
pub const DDSRT_HAVE_ATOMIC_LIFO: u32 = 1;
pub const DDS_MAX_PSMX_INSTANCES: u32 = 8;
pub const DDS_PSMX_FEATURE_SHARED_MEMORY: u32 = 1;
pub const DDS_PSMX_FEATURE_ZERO_COPY: u32 = 2;
pub const DDS_RHC_NO_STATE_MASK_SET: u32 = 128;
pub type wchar_t = ::std::ffi::c_int;
pub type max_align_t = f64;
pub type int_least8_t = i8;
pub type int_least16_t = i16;
pub type int_least32_t = i32;
pub type int_least64_t = i64;
pub type uint_least8_t = u8;
pub type uint_least16_t = u16;
pub type uint_least32_t = u32;
pub type uint_least64_t = u64;
pub type int_fast8_t = i8;
pub type int_fast16_t = i16;
pub type int_fast32_t = i32;
pub type int_fast64_t = i64;
pub type uint_fast8_t = u8;
pub type uint_fast16_t = u16;
pub type uint_fast32_t = u32;
pub type uint_fast64_t = u64;
pub type __int8_t = ::std::ffi::c_schar;
pub type __uint8_t = ::std::ffi::c_uchar;
pub type __int16_t = ::std::ffi::c_short;
pub type __uint16_t = ::std::ffi::c_ushort;
pub type __int32_t = ::std::ffi::c_int;
pub type __uint32_t = ::std::ffi::c_uint;
pub type __int64_t = ::std::ffi::c_longlong;
pub type __uint64_t = ::std::ffi::c_ulonglong;
pub type __darwin_intptr_t = ::std::ffi::c_long;
pub type __darwin_natural_t = ::std::ffi::c_uint;
pub type __darwin_ct_rune_t = ::std::ffi::c_int;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __mbstate_t {
    pub __mbstate8: [::std::ffi::c_char; 128usize],
    pub _mbstateL: ::std::ffi::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __mbstate_t"][::std::mem::size_of::<__mbstate_t>() - 128usize];
    ["Alignment of __mbstate_t"][::std::mem::align_of::<__mbstate_t>() - 8usize];
    ["Offset of field: __mbstate_t::__mbstate8"]
        [::std::mem::offset_of!(__mbstate_t, __mbstate8) - 0usize];
    ["Offset of field: __mbstate_t::_mbstateL"]
        [::std::mem::offset_of!(__mbstate_t, _mbstateL) - 0usize];
};
impl Default for __mbstate_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type __darwin_mbstate_t = __mbstate_t;
pub type __darwin_ptrdiff_t = ::std::ffi::c_long;
pub type __darwin_size_t = ::std::ffi::c_ulong;
pub type __darwin_va_list = __builtin_va_list;
pub type __darwin_wchar_t = ::std::ffi::c_int;
pub type __darwin_rune_t = __darwin_wchar_t;
pub type __darwin_wint_t = ::std::ffi::c_int;
pub type __darwin_clock_t = ::std::ffi::c_ulong;
pub type __darwin_socklen_t = __uint32_t;
pub type __darwin_ssize_t = ::std::ffi::c_long;
pub type __darwin_time_t = ::std::ffi::c_long;
pub type __darwin_blkcnt_t = __int64_t;
pub type __darwin_blksize_t = __int32_t;
pub type __darwin_dev_t = __int32_t;
pub type __darwin_fsblkcnt_t = ::std::ffi::c_uint;
pub type __darwin_fsfilcnt_t = ::std::ffi::c_uint;
pub type __darwin_gid_t = __uint32_t;
pub type __darwin_id_t = __uint32_t;
pub type __darwin_ino64_t = __uint64_t;
pub type __darwin_ino_t = __darwin_ino64_t;
pub type __darwin_mach_port_name_t = __darwin_natural_t;
pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
pub type __darwin_mode_t = __uint16_t;
pub type __darwin_off_t = __int64_t;
pub type __darwin_pid_t = __int32_t;
pub type __darwin_sigset_t = __uint32_t;
pub type __darwin_suseconds_t = __int32_t;
pub type __darwin_uid_t = __uint32_t;
pub type __darwin_useconds_t = __uint32_t;
pub type __darwin_uuid_t = [::std::ffi::c_uchar; 16usize];
pub type __darwin_uuid_string_t = [::std::ffi::c_char; 37usize];
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_pthread_handler_rec {
    pub __routine: ::std::option::Option<unsafe extern "C" fn(arg1: *mut ::std::ffi::c_void)>,
    pub __arg: *mut ::std::ffi::c_void,
    pub __next: *mut __darwin_pthread_handler_rec,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_pthread_handler_rec"]
        [::std::mem::size_of::<__darwin_pthread_handler_rec>() - 24usize];
    ["Alignment of __darwin_pthread_handler_rec"]
        [::std::mem::align_of::<__darwin_pthread_handler_rec>() - 8usize];
    ["Offset of field: __darwin_pthread_handler_rec::__routine"]
        [::std::mem::offset_of!(__darwin_pthread_handler_rec, __routine) - 0usize];
    ["Offset of field: __darwin_pthread_handler_rec::__arg"]
        [::std::mem::offset_of!(__darwin_pthread_handler_rec, __arg) - 8usize];
    ["Offset of field: __darwin_pthread_handler_rec::__next"]
        [::std::mem::offset_of!(__darwin_pthread_handler_rec, __next) - 16usize];
};
impl Default for __darwin_pthread_handler_rec {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_attr_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 56usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_attr_t"][::std::mem::size_of::<_opaque_pthread_attr_t>() - 64usize];
    ["Alignment of _opaque_pthread_attr_t"]
        [::std::mem::align_of::<_opaque_pthread_attr_t>() - 8usize];
    ["Offset of field: _opaque_pthread_attr_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_attr_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_attr_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_attr_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_attr_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_cond_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 40usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_cond_t"][::std::mem::size_of::<_opaque_pthread_cond_t>() - 48usize];
    ["Alignment of _opaque_pthread_cond_t"]
        [::std::mem::align_of::<_opaque_pthread_cond_t>() - 8usize];
    ["Offset of field: _opaque_pthread_cond_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_cond_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_cond_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_cond_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_cond_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_condattr_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_condattr_t"]
        [::std::mem::size_of::<_opaque_pthread_condattr_t>() - 16usize];
    ["Alignment of _opaque_pthread_condattr_t"]
        [::std::mem::align_of::<_opaque_pthread_condattr_t>() - 8usize];
    ["Offset of field: _opaque_pthread_condattr_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_condattr_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_condattr_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_condattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_mutex_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 56usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_mutex_t"][::std::mem::size_of::<_opaque_pthread_mutex_t>() - 64usize];
    ["Alignment of _opaque_pthread_mutex_t"]
        [::std::mem::align_of::<_opaque_pthread_mutex_t>() - 8usize];
    ["Offset of field: _opaque_pthread_mutex_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_mutex_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_mutex_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_mutex_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_mutex_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_mutexattr_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_mutexattr_t"]
        [::std::mem::size_of::<_opaque_pthread_mutexattr_t>() - 16usize];
    ["Alignment of _opaque_pthread_mutexattr_t"]
        [::std::mem::align_of::<_opaque_pthread_mutexattr_t>() - 8usize];
    ["Offset of field: _opaque_pthread_mutexattr_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_mutexattr_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_mutexattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_once_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 8usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_once_t"][::std::mem::size_of::<_opaque_pthread_once_t>() - 16usize];
    ["Alignment of _opaque_pthread_once_t"]
        [::std::mem::align_of::<_opaque_pthread_once_t>() - 8usize];
    ["Offset of field: _opaque_pthread_once_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_once_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_once_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_once_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_rwlock_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 192usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_rwlock_t"]
        [::std::mem::size_of::<_opaque_pthread_rwlock_t>() - 200usize];
    ["Alignment of _opaque_pthread_rwlock_t"]
        [::std::mem::align_of::<_opaque_pthread_rwlock_t>() - 8usize];
    ["Offset of field: _opaque_pthread_rwlock_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_rwlock_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_rwlock_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_rwlock_t, __opaque) - 8usize];
};
impl Default for _opaque_pthread_rwlock_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct _opaque_pthread_rwlockattr_t {
    pub __sig: ::std::ffi::c_long,
    pub __opaque: [::std::ffi::c_char; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_rwlockattr_t"]
        [::std::mem::size_of::<_opaque_pthread_rwlockattr_t>() - 24usize];
    ["Alignment of _opaque_pthread_rwlockattr_t"]
        [::std::mem::align_of::<_opaque_pthread_rwlockattr_t>() - 8usize];
    ["Offset of field: _opaque_pthread_rwlockattr_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_rwlockattr_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_rwlockattr_t, __opaque) - 8usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _opaque_pthread_t {
    pub __sig: ::std::ffi::c_long,
    pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
    pub __opaque: [::std::ffi::c_char; 8176usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of _opaque_pthread_t"][::std::mem::size_of::<_opaque_pthread_t>() - 8192usize];
    ["Alignment of _opaque_pthread_t"][::std::mem::align_of::<_opaque_pthread_t>() - 8usize];
    ["Offset of field: _opaque_pthread_t::__sig"]
        [::std::mem::offset_of!(_opaque_pthread_t, __sig) - 0usize];
    ["Offset of field: _opaque_pthread_t::__cleanup_stack"]
        [::std::mem::offset_of!(_opaque_pthread_t, __cleanup_stack) - 8usize];
    ["Offset of field: _opaque_pthread_t::__opaque"]
        [::std::mem::offset_of!(_opaque_pthread_t, __opaque) - 16usize];
};
impl Default for _opaque_pthread_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
pub type __darwin_pthread_key_t = ::std::ffi::c_ulong;
pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
pub type __darwin_pthread_t = *mut _opaque_pthread_t;
pub type intmax_t = ::std::ffi::c_long;
pub type uintmax_t = ::std::ffi::c_ulong;
#[doc = " @brief Handle to an entity\n @ingroup entity\n\n A valid entity handle will always have a positive integer value.\n Should the value be negative, it is one of the DDS_RETCODE_*\n error codes."]
pub type dds_entity_t = i32;
#[doc = " @brief Structure of a GUID in any builtin topic sample.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_builtintopic_guid {
    #[doc = "< 16-byte unique identifier"]
    pub v: [u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_builtintopic_guid"][::std::mem::size_of::<dds_builtintopic_guid>() - 16usize];
    ["Alignment of dds_builtintopic_guid"]
        [::std::mem::align_of::<dds_builtintopic_guid>() - 1usize];
    ["Offset of field: dds_builtintopic_guid::v"]
        [::std::mem::offset_of!(dds_builtintopic_guid, v) - 0usize];
};
#[doc = " @brief Structure of a GUID in any builtin topic sample.\n @ingroup builtintopic"]
pub type dds_builtintopic_guid_t = dds_builtintopic_guid;
#[doc = " @brief Structure of a GUID in any builtin topic sample.\n @ingroup builtintopic\n @ref dds_builtintopic_guid_t is a bit of a weird name for what everyone just calls a GUID,\n so let us try and switch to using the more logical one."]
pub type dds_guid_t = dds_builtintopic_guid;
unsafe extern "C" {
    pub fn __assert_rtn(
        arg1: *const ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: ::std::ffi::c_int,
        arg4: *const ::std::ffi::c_char,
    ) -> !;
}
pub type rsize_t = ::std::ffi::c_ulong;
pub type __darwin_nl_item = ::std::ffi::c_int;
pub type __darwin_wctrans_t = ::std::ffi::c_int;
pub type __darwin_wctype_t = __uint32_t;
unsafe extern "C" {
    pub fn imaxabs(j: intmax_t) -> intmax_t;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct imaxdiv_t {
    pub quot: intmax_t,
    pub rem: intmax_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of imaxdiv_t"][::std::mem::size_of::<imaxdiv_t>() - 16usize];
    ["Alignment of imaxdiv_t"][::std::mem::align_of::<imaxdiv_t>() - 8usize];
    ["Offset of field: imaxdiv_t::quot"][::std::mem::offset_of!(imaxdiv_t, quot) - 0usize];
    ["Offset of field: imaxdiv_t::rem"][::std::mem::offset_of!(imaxdiv_t, rem) - 8usize];
};
unsafe extern "C" {
    pub fn imaxdiv(__numer: intmax_t, __denom: intmax_t) -> imaxdiv_t;
}
unsafe extern "C" {
    pub fn strtoimax(
        __nptr: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> intmax_t;
}
unsafe extern "C" {
    pub fn strtoumax(
        __nptr: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> uintmax_t;
}
unsafe extern "C" {
    pub fn wcstoimax(
        __nptr: *const wchar_t,
        __endptr: *mut *mut wchar_t,
        __base: ::std::ffi::c_int,
    ) -> intmax_t;
}
unsafe extern "C" {
    pub fn wcstoumax(
        __nptr: *const wchar_t,
        __endptr: *mut *mut wchar_t,
        __base: ::std::ffi::c_int,
    ) -> uintmax_t;
}
#[doc = " Absolute Time definition"]
pub type dds_time_t = i64;
#[doc = " Relative Time definition in nanoseconds"]
pub type dds_duration_t = i64;
unsafe extern "C" {
    #[doc = " @brief Get the current time in nanoseconds since the UNIX Epoch.\n\n @returns Current time."]
    pub fn dds_time() -> dds_time_t;
}
unsafe extern "C" {
    #[doc = " @brief Suspend execution of calling thread until relative time n elapsed.\n\n Execution is suspended for n nanoseconds. Should the call be interrupted,\n the call is re-entered with the remaining time.\n\n @param[in]  reltime  Relative time in nanoseconds."]
    pub fn dds_sleepfor(reltime: dds_duration_t);
}
pub type dds_return_t = i32;
unsafe extern "C" {
    #[doc = " @brief Takes the error value and outputs a string corresponding to it.\n\n @param[in]  ret  Error value to be converted to a string\n\n @returns  String corresponding to the error value"]
    pub fn dds_strretcode(ret: dds_return_t) -> *const ::std::ffi::c_char;
}
pub type __gnuc_va_list = __builtin_va_list;
pub type va_list = __builtin_va_list;
pub type u_int8_t = ::std::ffi::c_uchar;
pub type u_int16_t = ::std::ffi::c_ushort;
pub type u_int32_t = ::std::ffi::c_uint;
pub type u_int64_t = ::std::ffi::c_ulonglong;
pub type register_t = i64;
pub type user_addr_t = u_int64_t;
pub type user_size_t = u_int64_t;
pub type user_ssize_t = i64;
pub type user_long_t = i64;
pub type user_ulong_t = u_int64_t;
pub type user_time_t = i64;
pub type user_off_t = i64;
pub type syscall_arg_t = u_int64_t;
unsafe extern "C" {
    pub fn renameat(
        arg1: ::std::ffi::c_int,
        arg2: *const ::std::ffi::c_char,
        arg3: ::std::ffi::c_int,
        arg4: *const ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn renamex_np(
        arg1: *const ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: ::std::ffi::c_uint,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn renameatx_np(
        arg1: ::std::ffi::c_int,
        arg2: *const ::std::ffi::c_char,
        arg3: ::std::ffi::c_int,
        arg4: *const ::std::ffi::c_char,
        arg5: ::std::ffi::c_uint,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn printf(arg1: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
pub type fpos_t = __darwin_off_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sbuf {
    pub _base: *mut ::std::ffi::c_uchar,
    pub _size: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __sbuf"][::std::mem::size_of::<__sbuf>() - 16usize];
    ["Alignment of __sbuf"][::std::mem::align_of::<__sbuf>() - 8usize];
    ["Offset of field: __sbuf::_base"][::std::mem::offset_of!(__sbuf, _base) - 0usize];
    ["Offset of field: __sbuf::_size"][::std::mem::offset_of!(__sbuf, _size) - 8usize];
};
impl Default for __sbuf {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILEX {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __sFILE {
    pub _p: *mut ::std::ffi::c_uchar,
    pub _r: ::std::ffi::c_int,
    pub _w: ::std::ffi::c_int,
    pub _flags: ::std::ffi::c_short,
    pub _file: ::std::ffi::c_short,
    pub _bf: __sbuf,
    pub _lbfsize: ::std::ffi::c_int,
    pub _cookie: *mut ::std::ffi::c_void,
    pub _close: ::std::option::Option<
        unsafe extern "C" fn(arg1: *mut ::std::ffi::c_void) -> ::std::ffi::c_int,
    >,
    pub _read: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::ffi::c_void,
            arg2: *mut ::std::ffi::c_char,
            __n: ::std::ffi::c_int,
        ) -> ::std::ffi::c_int,
    >,
    pub _seek: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::ffi::c_void,
            arg2: fpos_t,
            arg3: ::std::ffi::c_int,
        ) -> fpos_t,
    >,
    pub _write: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::ffi::c_void,
            arg2: *const ::std::ffi::c_char,
            __n: ::std::ffi::c_int,
        ) -> ::std::ffi::c_int,
    >,
    pub _ub: __sbuf,
    pub _extra: *mut __sFILEX,
    pub _ur: ::std::ffi::c_int,
    pub _ubuf: [::std::ffi::c_uchar; 3usize],
    pub _nbuf: [::std::ffi::c_uchar; 1usize],
    pub _lb: __sbuf,
    pub _blksize: ::std::ffi::c_int,
    pub _offset: fpos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __sFILE"][::std::mem::size_of::<__sFILE>() - 152usize];
    ["Alignment of __sFILE"][::std::mem::align_of::<__sFILE>() - 8usize];
    ["Offset of field: __sFILE::_p"][::std::mem::offset_of!(__sFILE, _p) - 0usize];
    ["Offset of field: __sFILE::_r"][::std::mem::offset_of!(__sFILE, _r) - 8usize];
    ["Offset of field: __sFILE::_w"][::std::mem::offset_of!(__sFILE, _w) - 12usize];
    ["Offset of field: __sFILE::_flags"][::std::mem::offset_of!(__sFILE, _flags) - 16usize];
    ["Offset of field: __sFILE::_file"][::std::mem::offset_of!(__sFILE, _file) - 18usize];
    ["Offset of field: __sFILE::_bf"][::std::mem::offset_of!(__sFILE, _bf) - 24usize];
    ["Offset of field: __sFILE::_lbfsize"][::std::mem::offset_of!(__sFILE, _lbfsize) - 40usize];
    ["Offset of field: __sFILE::_cookie"][::std::mem::offset_of!(__sFILE, _cookie) - 48usize];
    ["Offset of field: __sFILE::_close"][::std::mem::offset_of!(__sFILE, _close) - 56usize];
    ["Offset of field: __sFILE::_read"][::std::mem::offset_of!(__sFILE, _read) - 64usize];
    ["Offset of field: __sFILE::_seek"][::std::mem::offset_of!(__sFILE, _seek) - 72usize];
    ["Offset of field: __sFILE::_write"][::std::mem::offset_of!(__sFILE, _write) - 80usize];
    ["Offset of field: __sFILE::_ub"][::std::mem::offset_of!(__sFILE, _ub) - 88usize];
    ["Offset of field: __sFILE::_extra"][::std::mem::offset_of!(__sFILE, _extra) - 104usize];
    ["Offset of field: __sFILE::_ur"][::std::mem::offset_of!(__sFILE, _ur) - 112usize];
    ["Offset of field: __sFILE::_ubuf"][::std::mem::offset_of!(__sFILE, _ubuf) - 116usize];
    ["Offset of field: __sFILE::_nbuf"][::std::mem::offset_of!(__sFILE, _nbuf) - 119usize];
    ["Offset of field: __sFILE::_lb"][::std::mem::offset_of!(__sFILE, _lb) - 120usize];
    ["Offset of field: __sFILE::_blksize"][::std::mem::offset_of!(__sFILE, _blksize) - 136usize];
    ["Offset of field: __sFILE::_offset"][::std::mem::offset_of!(__sFILE, _offset) - 144usize];
};
impl Default for __sFILE {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type FILE = __sFILE;
unsafe extern "C" {
    pub static mut __stdinp: *mut FILE;
}
unsafe extern "C" {
    pub static mut __stdoutp: *mut FILE;
}
unsafe extern "C" {
    pub static mut __stderrp: *mut FILE;
}
unsafe extern "C" {
    pub fn clearerr(arg1: *mut FILE);
}
unsafe extern "C" {
    pub fn fclose(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn feof(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn ferror(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fflush(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fgetc(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fgetpos(arg1: *mut FILE, arg2: *mut fpos_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fgets(
        arg1: *mut ::std::ffi::c_char,
        __size: ::std::ffi::c_int,
        arg2: *mut FILE,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn fopen(
        __filename: *const ::std::ffi::c_char,
        __mode: *const ::std::ffi::c_char,
    ) -> *mut FILE;
}
unsafe extern "C" {
    pub fn fprintf(arg1: *mut FILE, arg2: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fputc(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fputs(arg1: *const ::std::ffi::c_char, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fread(
        __ptr: *mut ::std::ffi::c_void,
        __size: ::std::ffi::c_ulong,
        __nitems: ::std::ffi::c_ulong,
        __stream: *mut FILE,
    ) -> ::std::ffi::c_ulong;
}
unsafe extern "C" {
    pub fn freopen(
        arg1: *const ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: *mut FILE,
    ) -> *mut FILE;
}
unsafe extern "C" {
    pub fn fscanf(arg1: *mut FILE, arg2: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fseek(
        arg1: *mut FILE,
        arg2: ::std::ffi::c_long,
        arg3: ::std::ffi::c_int,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn fsetpos(arg1: *mut FILE, arg2: *const fpos_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn ftell(arg1: *mut FILE) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn fwrite(
        __ptr: *const ::std::ffi::c_void,
        __size: ::std::ffi::c_ulong,
        __nitems: ::std::ffi::c_ulong,
        __stream: *mut FILE,
    ) -> ::std::ffi::c_ulong;
}
unsafe extern "C" {
    pub fn getc(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getchar() -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn gets(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn perror(arg1: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    pub fn putc(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn putchar(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn puts(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn remove(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn rename(
        __old: *const ::std::ffi::c_char,
        __new: *const ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn rewind(arg1: *mut FILE);
}
unsafe extern "C" {
    pub fn scanf(arg1: *const ::std::ffi::c_char, ...) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn setbuf(arg1: *mut FILE, arg2: *mut ::std::ffi::c_char);
}
unsafe extern "C" {
    pub fn setvbuf(
        arg1: *mut FILE,
        arg2: *mut ::std::ffi::c_char,
        arg3: ::std::ffi::c_int,
        __size: usize,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn sprintf(
        arg1: *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn sscanf(
        arg1: *const ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn tmpfile() -> *mut FILE;
}
unsafe extern "C" {
    pub fn tmpnam(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn ungetc(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vfprintf(
        arg1: *mut FILE,
        arg2: *const ::std::ffi::c_char,
        arg3: __builtin_va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vprintf(arg1: *const ::std::ffi::c_char, arg2: __builtin_va_list) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vsprintf(
        arg1: *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: __builtin_va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn ctermid(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn fdopen(arg1: ::std::ffi::c_int, arg2: *const ::std::ffi::c_char) -> *mut FILE;
}
unsafe extern "C" {
    pub fn fileno(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn pclose(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn popen(arg1: *const ::std::ffi::c_char, arg2: *const ::std::ffi::c_char) -> *mut FILE;
}
unsafe extern "C" {
    pub fn __srget(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn __svfscanf(
        arg1: *mut FILE,
        arg2: *const ::std::ffi::c_char,
        arg3: va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn __swbuf(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn flockfile(arg1: *mut FILE);
}
unsafe extern "C" {
    pub fn ftrylockfile(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn funlockfile(arg1: *mut FILE);
}
unsafe extern "C" {
    pub fn getc_unlocked(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getchar_unlocked() -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn putc_unlocked(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn putchar_unlocked(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getw(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn putw(arg1: ::std::ffi::c_int, arg2: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn tempnam(
        __dir: *const ::std::ffi::c_char,
        __prefix: *const ::std::ffi::c_char,
    ) -> *mut ::std::ffi::c_char;
}
pub type off_t = __darwin_off_t;
unsafe extern "C" {
    pub fn fseeko(
        __stream: *mut FILE,
        __offset: off_t,
        __whence: ::std::ffi::c_int,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn ftello(__stream: *mut FILE) -> off_t;
}
unsafe extern "C" {
    pub fn snprintf(
        __str: *mut ::std::ffi::c_char,
        __size: ::std::ffi::c_ulong,
        __format: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vfscanf(
        __stream: *mut FILE,
        __format: *const ::std::ffi::c_char,
        arg1: __builtin_va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vscanf(
        __format: *const ::std::ffi::c_char,
        arg1: __builtin_va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vsnprintf(
        __str: *mut ::std::ffi::c_char,
        __size: ::std::ffi::c_ulong,
        __format: *const ::std::ffi::c_char,
        arg1: __builtin_va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vsscanf(
        __str: *const ::std::ffi::c_char,
        __format: *const ::std::ffi::c_char,
        arg1: __builtin_va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn dprintf(
        arg1: ::std::ffi::c_int,
        arg2: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vdprintf(
        arg1: ::std::ffi::c_int,
        arg2: *const ::std::ffi::c_char,
        arg3: va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getdelim(
        __linep: *mut *mut ::std::ffi::c_char,
        __linecapp: *mut usize,
        __delimiter: ::std::ffi::c_int,
        __stream: *mut FILE,
    ) -> isize;
}
unsafe extern "C" {
    pub fn getline(
        __linep: *mut *mut ::std::ffi::c_char,
        __linecapp: *mut usize,
        __stream: *mut FILE,
    ) -> isize;
}
unsafe extern "C" {
    pub fn fmemopen(
        __buf: *mut ::std::ffi::c_void,
        __size: usize,
        __mode: *const ::std::ffi::c_char,
    ) -> *mut FILE;
}
unsafe extern "C" {
    pub fn open_memstream(__bufp: *mut *mut ::std::ffi::c_char, __sizep: *mut usize) -> *mut FILE;
}
unsafe extern "C" {
    pub static sys_nerr: ::std::ffi::c_int;
}
unsafe extern "C" {
    pub static sys_errlist: [*const ::std::ffi::c_char; 0usize];
}
unsafe extern "C" {
    pub fn asprintf(
        arg1: *mut *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn ctermid_r(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn fgetln(arg1: *mut FILE, __len: *mut usize) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn fmtcheck(
        arg1: *const ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
    ) -> *const ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn fpurge(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn setbuffer(arg1: *mut FILE, arg2: *mut ::std::ffi::c_char, __size: ::std::ffi::c_int);
}
unsafe extern "C" {
    pub fn setlinebuf(arg1: *mut FILE) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn vasprintf(
        arg1: *mut *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn funopen(
        arg1: *const ::std::ffi::c_void,
        arg2: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::ffi::c_void,
                arg2: *mut ::std::ffi::c_char,
                __n: ::std::ffi::c_int,
            ) -> ::std::ffi::c_int,
        >,
        arg3: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_char,
                __n: ::std::ffi::c_int,
            ) -> ::std::ffi::c_int,
        >,
        arg4: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::ffi::c_void,
                arg2: fpos_t,
                arg3: ::std::ffi::c_int,
            ) -> fpos_t,
        >,
        arg5: ::std::option::Option<
            unsafe extern "C" fn(arg1: *mut ::std::ffi::c_void) -> ::std::ffi::c_int,
        >,
    ) -> *mut FILE;
}
unsafe extern "C" {
    pub fn __snprintf_chk(
        arg1: *mut ::std::ffi::c_char,
        __maxlen: usize,
        arg2: ::std::ffi::c_int,
        arg3: usize,
        arg4: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn __vsnprintf_chk(
        arg1: *mut ::std::ffi::c_char,
        __maxlen: usize,
        arg2: ::std::ffi::c_int,
        arg3: usize,
        arg4: *const ::std::ffi::c_char,
        arg5: va_list,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn __sprintf_chk(
        arg1: *mut ::std::ffi::c_char,
        arg2: ::std::ffi::c_int,
        arg3: usize,
        arg4: *const ::std::ffi::c_char,
        ...
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn __vsprintf_chk(
        arg1: *mut ::std::ffi::c_char,
        arg2: ::std::ffi::c_int,
        arg3: usize,
        arg4: *const ::std::ffi::c_char,
        arg5: va_list,
    ) -> ::std::ffi::c_int;
}
#[doc = " Structure with log message and meta data passed to callbacks."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_log_data_t {
    #[doc = " Log category the message falls into."]
    pub priority: u32,
    #[doc = " Log domain id, UINT32_MAX is global."]
    pub domid: u32,
    #[doc = " Filename where message was generated."]
    pub file: *const ::std::ffi::c_char,
    #[doc = " Line number in file where message was generated."]
    pub line: u32,
    #[doc = " Name of function message where message was generated."]
    pub function: *const ::std::ffi::c_char,
    #[doc = " Log message."]
    pub message: *const ::std::ffi::c_char,
    #[doc = " Size of log message."]
    pub size: usize,
    #[doc = " Default log message header length"]
    pub hdrsize: usize,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_log_data_t"][::std::mem::size_of::<dds_log_data_t>() - 56usize];
    ["Alignment of dds_log_data_t"][::std::mem::align_of::<dds_log_data_t>() - 8usize];
    ["Offset of field: dds_log_data_t::priority"]
        [::std::mem::offset_of!(dds_log_data_t, priority) - 0usize];
    ["Offset of field: dds_log_data_t::domid"]
        [::std::mem::offset_of!(dds_log_data_t, domid) - 4usize];
    ["Offset of field: dds_log_data_t::file"]
        [::std::mem::offset_of!(dds_log_data_t, file) - 8usize];
    ["Offset of field: dds_log_data_t::line"]
        [::std::mem::offset_of!(dds_log_data_t, line) - 16usize];
    ["Offset of field: dds_log_data_t::function"]
        [::std::mem::offset_of!(dds_log_data_t, function) - 24usize];
    ["Offset of field: dds_log_data_t::message"]
        [::std::mem::offset_of!(dds_log_data_t, message) - 32usize];
    ["Offset of field: dds_log_data_t::size"]
        [::std::mem::offset_of!(dds_log_data_t, size) - 40usize];
    ["Offset of field: dds_log_data_t::hdrsize"]
        [::std::mem::offset_of!(dds_log_data_t, hdrsize) - 48usize];
};
impl Default for dds_log_data_t {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Function signature that log and trace callbacks must adhere too."]
pub type dds_log_write_fn_t = ::std::option::Option<
    unsafe extern "C" fn(p: *mut ::std::ffi::c_void, d: *const dds_log_data_t),
>;
unsafe extern "C" {
    pub static dds_log_mask: *mut u32;
}
unsafe extern "C" {
    #[doc = " @brief Set enabled log and trace categories.\n\n @param[in]  cats  Log and trace categories to enable."]
    pub fn dds_set_log_mask(cats: u32);
}
unsafe extern "C" {
    #[doc = " @private"]
    pub fn dds_set_trace_file(file: *mut FILE);
}
unsafe extern "C" {
    #[doc = " @brief Register callback to receive log messages\n\n Callbacks registered to handle log messages will receive messages of type\n info, warning, error and fatal. Messages that fall into the trace category\n will never be delivered to the callback.\n\n This operation is synchronous and only returns once the operation is\n registered with all threads. Meaning that neither callback or userdata will\n be referenced by the DDS stack on return.\n\n @param[in]  callback  Function pointer matching dds_log_write_fn signature\n                       or a null pointer to restore the default sink.\n @param[in]  userdata  User specified data passed along with each invocation\n                       of callback."]
    pub fn dds_set_log_sink(callback: dds_log_write_fn_t, userdata: *mut ::std::ffi::c_void);
}
unsafe extern "C" {
    #[doc = " @brief Register callback to receive trace messages\n\n Callbacks registered to handle trace messages will receive messages of type\n info, warning, error and fatal as well as all message types that fall into\n the trace category depending on the log mask.\n\n This operation is synchronous and only returns once the operation is\n registered with all threads. Meaning that neither callback or\n userdata will be referenced by the DDS stack on return.\n\n @param[in]  callback  Function pointer matching dds_log_write_fn_t signature\n                       or a null pointer to restore the default sink.\n @param[in]  userdata  User specified data passed along with each invocation\n                       of callback."]
    pub fn dds_set_trace_sink(callback: dds_log_write_fn_t, userdata: *mut ::std::ffi::c_void);
}
unsafe extern "C" {
    #[doc = " @brief Write a log or trace message to the global configuration but with\n specific domain (intended solely for use during domain start-up, while\n the domain-specific logging/tracing hasn't been set yet).\n\n Write a log or trace message to one (or both) of the currently active sinks.\n\n Direct use of #dds_log_id is discouraged. Use #DDS_ILOG instead."]
    pub fn dds_log_id(
        cat: u32,
        domid: u32,
        file: *const ::std::ffi::c_char,
        line: u32,
        func: *const ::std::ffi::c_char,
        fmt: *const ::std::ffi::c_char,
        ...
    );
}
unsafe extern "C" {
    #[doc = " @brief Write a log or trace message to the global log/trace.\n\n Write a log or trace message to one (or both) of the currently active sinks.\n\n Direct use of #dds_log is discouraged. Use #DDS_INFO, #DDS_WARNING,\n #DDS_ERROR, #DDS_FATAL or #DDS_LOG instead."]
    pub fn dds_log(
        cat: u32,
        file: *const ::std::ffi::c_char,
        line: u32,
        func: *const ::std::ffi::c_char,
        fmt: *const ::std::ffi::c_char,
        ...
    );
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdrstream_allocator {
    pub malloc: ::std::option::Option<unsafe extern "C" fn(size: usize) -> *mut ::std::ffi::c_void>,
    pub realloc: ::std::option::Option<
        unsafe extern "C" fn(
            ptr: *mut ::std::ffi::c_void,
            new_size: usize,
        ) -> *mut ::std::ffi::c_void,
    >,
    pub free: ::std::option::Option<unsafe extern "C" fn(pt: *mut ::std::ffi::c_void)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_allocator"][::std::mem::size_of::<dds_cdrstream_allocator>() - 24usize];
    ["Alignment of dds_cdrstream_allocator"]
        [::std::mem::align_of::<dds_cdrstream_allocator>() - 8usize];
    ["Offset of field: dds_cdrstream_allocator::malloc"]
        [::std::mem::offset_of!(dds_cdrstream_allocator, malloc) - 0usize];
    ["Offset of field: dds_cdrstream_allocator::realloc"]
        [::std::mem::offset_of!(dds_cdrstream_allocator, realloc) - 8usize];
    ["Offset of field: dds_cdrstream_allocator::free"]
        [::std::mem::offset_of!(dds_cdrstream_allocator, free) - 16usize];
};
unsafe extern "C" {
    pub static dds_cdrstream_default_allocator: dds_cdrstream_allocator;
}
#[doc = "< free full sample"]
pub const dds_free_op_t_DDS_FREE_ALL: dds_free_op_t = 7;
#[doc = "< free all sample contents, but leave sample pointer intact"]
pub const dds_free_op_t_DDS_FREE_CONTENTS: dds_free_op_t = 3;
#[doc = "< free only the keyfields in a sample"]
pub const dds_free_op_t_DDS_FREE_KEY: dds_free_op_t = 1;
#[doc = " @brief Freeing operation type\n @ingroup alloc\n What part of a sample to free"]
pub type dds_free_op_t = ::std::ffi::c_uint;
#[doc = " @brief DDS Allocator\n @ingroup alloc\n C-Style allocator API"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_allocator {
    #[doc = "< behave like C malloc"]
    pub malloc: ::std::option::Option<unsafe extern "C" fn(size: usize) -> *mut ::std::ffi::c_void>,
    #[doc = "< behave like C realloc, may be null"]
    pub realloc: ::std::option::Option<
        unsafe extern "C" fn(ptr: *mut ::std::ffi::c_void, size: usize) -> *mut ::std::ffi::c_void,
    >,
    #[doc = "< behave like C free"]
    pub free: ::std::option::Option<unsafe extern "C" fn(ptr: *mut ::std::ffi::c_void)>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_allocator"][::std::mem::size_of::<dds_allocator>() - 24usize];
    ["Alignment of dds_allocator"][::std::mem::align_of::<dds_allocator>() - 8usize];
    ["Offset of field: dds_allocator::malloc"]
        [::std::mem::offset_of!(dds_allocator, malloc) - 0usize];
    ["Offset of field: dds_allocator::realloc"]
        [::std::mem::offset_of!(dds_allocator, realloc) - 8usize];
    ["Offset of field: dds_allocator::free"][::std::mem::offset_of!(dds_allocator, free) - 16usize];
};
#[doc = " @brief DDS Allocator\n @ingroup alloc\n C-Style allocator API"]
pub type dds_allocator_t = dds_allocator;
unsafe extern "C" {
    #[doc = " @brief Perform an alloc() with the default allocator.\n @component memory_alloc\n\n @param[in] size number of bytes\n @returns new pointer or NULL if out of memory"]
    pub fn dds_alloc(size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    #[doc = " @brief Perform a realloc() with the default allocator.\n @component memory_alloc\n\n @param[in] ptr previously alloc()'ed pointer\n @param[in] size new size\n @return new pointer or NULL if out of memory"]
    pub fn dds_realloc(ptr: *mut ::std::ffi::c_void, size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    #[doc = " @brief Perform a realloc() with the default allocator. Zero out memory.\n @component memory_alloc\n\n @param[in] ptr previously alloc()'ed pointer\n @param[in] size new size\n @return new pointer or NULL if out of memory"]
    pub fn dds_realloc_zero(ptr: *mut ::std::ffi::c_void, size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    #[doc = " @brief Perform a free() on a memory fragment allocated with the default allocator.\n @component memory_alloc\n\n @param[in] ptr previously alloc()'ed pointer"]
    pub fn dds_free(ptr: *mut ::std::ffi::c_void);
}
pub type dds_alloc_fn_t =
    ::std::option::Option<unsafe extern "C" fn(p: usize) -> *mut ::std::ffi::c_void>;
pub type dds_realloc_fn_t = ::std::option::Option<
    unsafe extern "C" fn(a: *mut ::std::ffi::c_void, b: usize) -> *mut ::std::ffi::c_void,
>;
pub type dds_free_fn_t = ::std::option::Option<unsafe extern "C" fn(p: *mut ::std::ffi::c_void)>;
unsafe extern "C" {
    #[doc = " @brief Allocated a string with size, accounting for the null terminator.\n @component memory_alloc\n\n @param[in] size number of characters\n @returns newly allocated string or NULL if out of memory"]
    pub fn dds_string_alloc(size: usize) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Duplicate a null-terminated string\n @component memory_alloc\n\n @param[in] str string to duplicate\n @returns newly allocated duplicate string, or NULL if out of memory"]
    pub fn dds_string_dup(str_: *const ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Free a string, equivalent to dds_free\n @component memory_alloc\n\n @param[in] str string to free"]
    pub fn dds_string_free(str_: *mut ::std::ffi::c_char);
}
unsafe extern "C" {
    #[doc = " @brief Free (parts of) a sample according to the \\ref dds_free_op_t\n @component memory_alloc\n\n @param[in] sample sample to free\n @param[in] desc topic descriptor of the type this sample was created from.\n @param[in] op Which parts of the sample to free."]
    pub fn dds_sample_free(
        sample: *mut ::std::ffi::c_void,
        desc: *const dds_topic_descriptor,
        op: dds_free_op_t,
    );
}
#[doc = " return from subroutine, exits top-level\n[RTS,   0,   0, 0]"]
pub const dds_stream_opcode_DDS_OP_RTS: dds_stream_opcode = 0;
#[doc = " data field\n[ADR, nBY,   0, f] [offset]\n[ADR, BLN,   0, f] [offset]\n[ADR, WCHAR,   0, f] [offset]\n[ADR, ENU,   0, f] [offset] [max]\n[ADR, BMK,   0, f] [offset] [bits-high] [bits-low]\n[ADR, STR,   0, f] [offset]\n[ADR, WSTR,   0, f] [offset]\n[ADR, BST,   0, f] [offset] [max-size]\n[ADR, BWSTR,   0, f] [offset] [max-size]\n\n[ADR, SEQ, nBY, f] [offset]\n[ADR, SEQ, BLN, f] [offset]\n[ADR, SEQ, WCHAR, f] [offset]\n[ADR, SEQ, ENU, f] [offset] [max]\n[ADR, SEQ, BMK, f] [offset] [bits-high] [bits-low]\n[ADR, SEQ, STR, f] [offset]\n[ADR, SEQ, WSTR, f] [offset]\n[ADR, SEQ, BST, f] [offset] [max-size]\n[ADR, SEQ, BWSTR, f] [offset] [max-size]\n[ADR, SEQ,   s, f] [offset] [elem-size] [next-insn, elem-insn]\nwhere s = {SEQ,ARR,UNI,STU,BSQ}\n[ADR, SEQ, EXT, f] *** not supported\n\n[ADR, BSQ, nBY, f] [offset] [sbound]\n[ADR, BSQ, BLN, f] [offset] [sbound]\n[ADR, BSQ, WCHAR, f] [offset] [sbound]\n[ADR, BSQ, ENU, f] [offset] [sbound] [max]\n[ADR, BSQ, BMK, f] [offset] [sbound] [bits-high] [bits-low]\n[ADR, BSQ, STR, f] [offset] [sbound]\n[ADR, BSQ, WSTR, f] [offset] [sbound]\n[ADR, BSQ, BST, f] [offset] [sbound] [max-size]\n[ADR, BSQ, BWSTR, f] [offset] [sbound] [max-size]\n[ADR, BSQ,   s, f] [offset] [sbound] [elem-size] [next-insn, elem-insn]\nwhere s = {SEQ,ARR,UNI,STU,BSQ}\n[ADR, BSQ, EXT, f] *** not supported\n\n[ADR, ARR, nBY, f] [offset] [alen]\n[ADR, ARR, BLN, f] [offset] [alen]\n[ADR, ARR, WCHAR, f] [offset] [alen]\n[ADR, ARR, ENU, f] [offset] [alen] [max]\n[ADR, ARR, BMK, f] [offset] [alen] [bits-high] [bits-low]\n[ADR, ARR, STR, f] [offset] [alen]\n[ADR, ARR, WSTR, f] [offset] [alen]\n[ADR, ARR, BST, f] [offset] [alen] [0] [max-size]\n[ADR, ARR, BWSTR, f] [offset] [alen] [0] [max-size]\n[ADR, ARR,   s, f] [offset] [alen] [next-insn, elem-insn] [elem-size]\nwhere s = {SEQ,ARR,UNI,STU,BSQ}\n[ADR, ARR, EXT, f] *** not supported\n\n[ADR, UNI,   d, z] [offset] [alen] [next-insn, cases]\n[ADR, UNI, ENU, z] [offset] [alen] [next-insn, cases] [max]\n[ADR, UNI, EXT, f] *** not supported\nwhere\nd = discriminant type of {1BY,2BY,4BY,BLN}\nz = default present/not present (DDS_OP_FLAG_DEF)\noffset = discriminant offset\nmax = max enum value\nfollowed by alen case labels: in JEQ format\n\n[ADR, e | EXT,   0, f] [offset] [next-insn, elem-insn] [elem-size iff \"external\" flag e is set, or flag f has DDS_OP_FLAG_OPT]\n[ADR, STU,   0, f] *** not supported\nwhere\ns            = subtype\ne            = external: stored as external data (pointer) (DDS_OP_FLAG_EXT)\nf            = flags:\n- key/not key (DDS_OP_FLAG_KEY)\n- base type member, used with EXT type (DDS_OP_FLAG_BASE)\n- optional (DDS_OP_FLAG_OPT)\n- must-understand (DDS_OP_FLAG_MU)\n- storage size, only for ENU and BMK (n << DDS_OP_FLAG_SZ_SHIFT)\n[offset]     = field offset from start of element in memory\n[elem-size]  = element size in memory (elem-size is only included in case 'external' flag is set)\n[max-size]   = string bound + 1\n[max]        = max enum value\n[bits-..]    = identified bits in the bitmask, split into high and low 32 bits\n[alen]       = array length, number of cases\n[sbound]     = bounded sequence maximum number of elements\n[next-insn]  = (unsigned 16 bits) offset to instruction for next field, from start of insn\n[elem-insn]  = (unsigned 16 bits) offset to first instruction for element, from start of insn\n[cases]      = (unsigned 16 bits) offset to first case label, from start of insn"]
pub const dds_stream_opcode_DDS_OP_ADR: dds_stream_opcode = 16777216;
#[doc = " jump-to-subroutine (e.g. used for recursive types and appendable unions)\n[JSR,   0, e]\nwhere\ne = (signed 16 bits) offset to first instruction in subroutine, from start of insn\ninstruction sequence must end in RTS, execution resumes at instruction\nfollowing JSR"]
pub const dds_stream_opcode_DDS_OP_JSR: dds_stream_opcode = 33554432;
#[doc = " jump-if-equal, used for union cases:\n[JEQ, nBY, 0] [disc] [offset]\n[JEQ, BLN, 0] [disc] [offset]\n[JEQ, STR, 0] [disc] [offset]\n[JEQ, s,   i] [disc] [offset]\n[JEQ4, e | nBY, 0] [disc] [offset] 0\n[JEQ4, e | STR, 0] [disc] [offset] 0\n[JEQ4, e | ENU, f] [disc] [offset] [max]\n[JEQ4, EXT, 0] *** not supported, use STU/UNI for external defined types\n[JEQ4, e | s, i] [disc] [offset] [elem-size iff \"external\" flag e is set, else 0]\nwhere\ne  = external: stored as external data (pointer) (DDS_OP_FLAG_EXT)\ns  = subtype other than {nBY,STR} for JEQ and {nBY,STR,ENU,EXT} for JEQ4\n(note that BMK cannot be inline, because it needs 2 additional instructions\nfor the bits that are identified in the bitmask type)\ni  = (unsigned 16 bits) offset to first instruction for case, from start of insn\ninstruction sequence must end in RTS, at which point executes continues\nat the next field's instruction as specified by the union\nf  = size flags for ENU instruction\n\nNote that the JEQ instruction is deprecated and replaced by the JEQ4 instruction. The\nIDL compiler only generates JEQ4 for union cases, the JEQ instruction is included here\nfor backwards compatibility (topic descriptors generated with a previous version of IDLC)"]
pub const dds_stream_opcode_DDS_OP_JEQ: dds_stream_opcode = 50331648;
#[doc = " XCDR2 delimited CDR (inserts DHEADER before type)\n[DLC, 0, 0]"]
pub const dds_stream_opcode_DDS_OP_DLC: dds_stream_opcode = 67108864;
#[doc = " XCDR2 parameter list CDR (inserts DHEADER before type and EMHEADER before each member)\n[PLC, 0, 0]\nfollowed by a list of JEQ instructions"]
pub const dds_stream_opcode_DDS_OP_PLC: dds_stream_opcode = 83886080;
#[doc = "[PLM,   f, elem-insn] [member id]\nfor members of aggregated mutable types (pl-cdr):\nwhere\nf           = flags:\n- jump to base type (DDS_OP_FLAG_BASE)\n[elem-insn] = (unsigned 16 bits) offset to instruction for element, from start of insn\nwhen FLAG_BASE is set, this is the offset of the PLM list of the base type\n[member id] = id for this member (0 in case FLAG_BASE is set)"]
pub const dds_stream_opcode_DDS_OP_PLM: dds_stream_opcode = 100663296;
#[doc = " Key offset list\n[KOF, 0, n] [offset-1] ... [offset-n]\nwhere\nn      = number of key offsets in following ops\noffset = Offset of the key field relative to the previous offset, repeated n times when key is\nin a nested struct. In case of inheritance of mutable structs, a single offset of\nthe key member relative to the first op of the top-level type (index 0)."]
pub const dds_stream_opcode_DDS_OP_KOF: dds_stream_opcode = 117440512;
#[doc = " see comment for JEQ/JEQ4 above"]
pub const dds_stream_opcode_DDS_OP_JEQ4: dds_stream_opcode = 134217728;
#[doc = " [MID, 0, elem-insn] [member id]\nFor members of aggregated final and appendable types. Currently only for optional members\nthe member ID is included, to facilitate adding the parameter header in XCDR1 data\nrepresentation.\nwhere\n[elem-insn] = (unsigned 16 bits) offset to instruction for element, from start of insn\n[member id] = id for this member"]
pub const dds_stream_opcode_DDS_OP_MID: dds_stream_opcode = 150994944;
#[doc = " @ingroup serialization\n @brief Topic encoding instruction types"]
pub type dds_stream_opcode = ::std::ffi::c_uint;
#[doc = "< one byte simple type (char, octet)"]
pub const dds_stream_typecode_DDS_OP_VAL_1BY: dds_stream_typecode = 1;
#[doc = "< two byte simple type ((unsigned) short)"]
pub const dds_stream_typecode_DDS_OP_VAL_2BY: dds_stream_typecode = 2;
#[doc = "< four byte simple type ((unsigned) long, float)"]
pub const dds_stream_typecode_DDS_OP_VAL_4BY: dds_stream_typecode = 3;
#[doc = "< eight byte simple type ((unsigned) long long, double)"]
pub const dds_stream_typecode_DDS_OP_VAL_8BY: dds_stream_typecode = 4;
#[doc = "< string"]
pub const dds_stream_typecode_DDS_OP_VAL_STR: dds_stream_typecode = 5;
#[doc = "< bounded string"]
pub const dds_stream_typecode_DDS_OP_VAL_BST: dds_stream_typecode = 6;
#[doc = "< sequence"]
pub const dds_stream_typecode_DDS_OP_VAL_SEQ: dds_stream_typecode = 7;
#[doc = "< array"]
pub const dds_stream_typecode_DDS_OP_VAL_ARR: dds_stream_typecode = 8;
#[doc = "< union"]
pub const dds_stream_typecode_DDS_OP_VAL_UNI: dds_stream_typecode = 9;
#[doc = "< struct"]
pub const dds_stream_typecode_DDS_OP_VAL_STU: dds_stream_typecode = 10;
#[doc = "< bounded sequence"]
pub const dds_stream_typecode_DDS_OP_VAL_BSQ: dds_stream_typecode = 11;
#[doc = "< enumerated value (long)"]
pub const dds_stream_typecode_DDS_OP_VAL_ENU: dds_stream_typecode = 12;
#[doc = "< field with external definition"]
pub const dds_stream_typecode_DDS_OP_VAL_EXT: dds_stream_typecode = 13;
#[doc = "< boolean"]
pub const dds_stream_typecode_DDS_OP_VAL_BLN: dds_stream_typecode = 14;
#[doc = "< bitmask"]
pub const dds_stream_typecode_DDS_OP_VAL_BMK: dds_stream_typecode = 15;
#[doc = "< wstring (UTF-16)"]
pub const dds_stream_typecode_DDS_OP_VAL_WSTR: dds_stream_typecode = 16;
#[doc = "< bounded wstring (UTF-16)"]
pub const dds_stream_typecode_DDS_OP_VAL_BWSTR: dds_stream_typecode = 17;
#[doc = "< wchar: UTF-16, no surrogates allowed"]
pub const dds_stream_typecode_DDS_OP_VAL_WCHAR: dds_stream_typecode = 18;
#[doc = " @ingroup serialization\n @brief datatypes as recognized by serialization VM."]
pub type dds_stream_typecode = ::std::ffi::c_uint;
#[doc = "< one byte simple type (char, octet)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_1BY: dds_stream_typecode_primary = 65536;
#[doc = "< two byte simple type ((unsigned) short)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_2BY: dds_stream_typecode_primary = 131072;
#[doc = "< four byte simple type ((unsigned) long, float)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_4BY: dds_stream_typecode_primary = 196608;
#[doc = "< eight byte simple type ((unsigned) long long, double)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_8BY: dds_stream_typecode_primary = 262144;
#[doc = "< string"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_STR: dds_stream_typecode_primary = 327680;
#[doc = "< bounded string"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BST: dds_stream_typecode_primary = 393216;
#[doc = "< sequence"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_SEQ: dds_stream_typecode_primary = 458752;
#[doc = "< array"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_ARR: dds_stream_typecode_primary = 524288;
#[doc = "< union"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_UNI: dds_stream_typecode_primary = 589824;
#[doc = "< struct"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_STU: dds_stream_typecode_primary = 655360;
#[doc = "< bounded sequence"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BSQ: dds_stream_typecode_primary = 720896;
#[doc = "< enumerated value (long)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_ENU: dds_stream_typecode_primary = 786432;
#[doc = "< field with external definition"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_EXT: dds_stream_typecode_primary = 851968;
#[doc = "< boolean"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BLN: dds_stream_typecode_primary = 917504;
#[doc = "< bitmask"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BMK: dds_stream_typecode_primary = 983040;
#[doc = "< wstring (UTF-16)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_WSTR: dds_stream_typecode_primary = 1048576;
#[doc = "< bounded wstring (UTF-16)"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_BWSTR: dds_stream_typecode_primary = 1114112;
#[doc = "< wchar: UTF-16, no surrogates allowed"]
pub const dds_stream_typecode_primary_DDS_OP_TYPE_WCHAR: dds_stream_typecode_primary = 1179648;
#[doc = " @ingroup serialization\n @brief primary type code for DDS_OP_ADR, DDS_OP_JEQ\n Convinience pre-bitshifted values."]
pub type dds_stream_typecode_primary = ::std::ffi::c_uint;
#[doc = "< one byte simple type (char, octet)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_1BY: dds_stream_typecode_subtype = 256;
#[doc = "< two byte simple type ((unsigned) short)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_2BY: dds_stream_typecode_subtype = 512;
#[doc = "< four byte simple type ((unsigned) long, float)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_4BY: dds_stream_typecode_subtype = 768;
#[doc = "< eight byte simple type ((unsigned) long long, double)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_8BY: dds_stream_typecode_subtype = 1024;
#[doc = "< string"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_STR: dds_stream_typecode_subtype = 1280;
#[doc = "< bounded string"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BST: dds_stream_typecode_subtype = 1536;
#[doc = "< sequence"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_SEQ: dds_stream_typecode_subtype = 1792;
#[doc = "< array"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_ARR: dds_stream_typecode_subtype = 2048;
#[doc = "< union"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_UNI: dds_stream_typecode_subtype = 2304;
#[doc = "< struct"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_STU: dds_stream_typecode_subtype = 2560;
#[doc = "< bounded sequence"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BSQ: dds_stream_typecode_subtype = 2816;
#[doc = "< enumerated value (long)"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_ENU: dds_stream_typecode_subtype = 3072;
#[doc = "< boolean"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BLN: dds_stream_typecode_subtype = 3584;
#[doc = "< bitmask"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BMK: dds_stream_typecode_subtype = 3840;
#[doc = "< wstring"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_WSTR: dds_stream_typecode_subtype = 4096;
#[doc = "< bounded wstring"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_BWSTR: dds_stream_typecode_subtype = 4352;
#[doc = "< wchar: UTF-16, no surrogates allowed"]
pub const dds_stream_typecode_subtype_DDS_OP_SUBTYPE_WCHAR: dds_stream_typecode_subtype = 4608;
#[doc = " @ingroup serialization\n @brief sub-type code\n  - encodes element type for DDS_OP_TYPE_{SEQ,ARR},\n  - discriminant type for DDS_OP_TYPE_UNI\n Convinience pre-bitshifted values."]
pub type dds_stream_typecode_subtype = ::std::ffi::c_uint;
#[doc = " @ingroup implementation\n @brief Datastructure of a Sequence type\n Container for a sequence of bytes. The general model of this type is also used in IDL output,\n where the uint8_t * _buffer is replaced by the appropriate subtype of what is contained."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_sequence {
    #[doc = "< Allocated space in _buffer"]
    pub _maximum: u32,
    #[doc = "< Used space in _buffer"]
    pub _length: u32,
    #[doc = "< Sequence of bytes"]
    pub _buffer: *mut u8,
    #[doc = "< Whether a CycloneDDS _free method should free the contained buffer.\nif you put in your own allocated _buffer set this to false to avoid\nCycloneDDS calling free() on it."]
    pub _release: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_sequence"][::std::mem::size_of::<dds_sequence>() - 24usize];
    ["Alignment of dds_sequence"][::std::mem::align_of::<dds_sequence>() - 8usize];
    ["Offset of field: dds_sequence::_maximum"]
        [::std::mem::offset_of!(dds_sequence, _maximum) - 0usize];
    ["Offset of field: dds_sequence::_length"]
        [::std::mem::offset_of!(dds_sequence, _length) - 4usize];
    ["Offset of field: dds_sequence::_buffer"]
        [::std::mem::offset_of!(dds_sequence, _buffer) - 8usize];
    ["Offset of field: dds_sequence::_release"]
        [::std::mem::offset_of!(dds_sequence, _release) - 16usize];
};
impl Default for dds_sequence {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @ingroup implementation\n @brief Datastructure of a Sequence type\n Container for a sequence of bytes. The general model of this type is also used in IDL output,\n where the uint8_t * _buffer is replaced by the appropriate subtype of what is contained."]
pub type dds_sequence_t = dds_sequence;
#[doc = " @ingroup implementation\n @brief Key Descriptor\n Used to describe a named key field in a type with the offset from the start of a struct."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_key_descriptor {
    #[doc = "< name of keyfield"]
    pub m_name: *const ::std::ffi::c_char,
    #[doc = "< offset from pointer"]
    pub m_offset: u32,
    #[doc = "< m_idx'th key of type"]
    pub m_idx: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_key_descriptor"][::std::mem::size_of::<dds_key_descriptor>() - 16usize];
    ["Alignment of dds_key_descriptor"][::std::mem::align_of::<dds_key_descriptor>() - 8usize];
    ["Offset of field: dds_key_descriptor::m_name"]
        [::std::mem::offset_of!(dds_key_descriptor, m_name) - 0usize];
    ["Offset of field: dds_key_descriptor::m_offset"]
        [::std::mem::offset_of!(dds_key_descriptor, m_offset) - 8usize];
    ["Offset of field: dds_key_descriptor::m_idx"]
        [::std::mem::offset_of!(dds_key_descriptor, m_idx) - 12usize];
};
impl Default for dds_key_descriptor {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @ingroup implementation\n @brief Key Descriptor\n Used to describe a named key field in a type with the offset from the start of a struct."]
pub type dds_key_descriptor_t = dds_key_descriptor;
#[doc = " @ingroup topic_definition\n @brief Simple sized byte container to hold serialized type info\n Holds XTypes information (TypeInformation, TypeMapping) for a\n type"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_type_meta_ser {
    #[doc = "< data pointer"]
    pub data: *const ::std::ffi::c_uchar,
    #[doc = "< data size"]
    pub sz: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_type_meta_ser"][::std::mem::size_of::<dds_type_meta_ser>() - 16usize];
    ["Alignment of dds_type_meta_ser"][::std::mem::align_of::<dds_type_meta_ser>() - 8usize];
    ["Offset of field: dds_type_meta_ser::data"]
        [::std::mem::offset_of!(dds_type_meta_ser, data) - 0usize];
    ["Offset of field: dds_type_meta_ser::sz"]
        [::std::mem::offset_of!(dds_type_meta_ser, sz) - 8usize];
};
impl Default for dds_type_meta_ser {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Topic Descriptor\n @ingroup topic_definition\n @warning Unstable/Private API\n Contains all meta information about a type, usually produced by the IDL compiler\n Since this type is not intended for public consumption it can change without warning."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_topic_descriptor {
    #[doc = "< Size of topic type"]
    pub m_size: u32,
    #[doc = "< Alignment of topic type"]
    pub m_align: u32,
    #[doc = "< Flags"]
    pub m_flagset: u32,
    #[doc = "< Number of keys (can be 0)"]
    pub m_nkeys: u32,
    #[doc = "< Type name"]
    pub m_typename: *const ::std::ffi::c_char,
    #[doc = "< Key descriptors (NULL iff m_nkeys 0)"]
    pub m_keys: *const dds_key_descriptor_t,
    #[doc = "< Number of ops in m_ops"]
    pub m_nops: u32,
    #[doc = "< Marshalling meta data"]
    pub m_ops: *const u32,
    #[doc = "< XML topic description meta data"]
    pub m_meta: *const ::std::ffi::c_char,
    #[doc = "< XCDR2 serialized TypeInformation, only present if flag DDS_TOPIC_XTYPES_METADATA is set"]
    pub type_information: dds_type_meta_ser,
    #[doc = "< XCDR2 serialized TypeMapping: maps type-id to type object and minimal to complete type id,\nonly present if flag DDS_TOPIC_XTYPES_METADATA is set"]
    pub type_mapping: dds_type_meta_ser,
    #[doc = "< restrictions on the data representations allowed for the top-level type for this topic,\nonly present if flag DDS_TOPIC_RESTRICT_DATA_REPRESENTATION"]
    pub restrict_data_representation: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_topic_descriptor"][::std::mem::size_of::<dds_topic_descriptor>() - 96usize];
    ["Alignment of dds_topic_descriptor"][::std::mem::align_of::<dds_topic_descriptor>() - 8usize];
    ["Offset of field: dds_topic_descriptor::m_size"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_size) - 0usize];
    ["Offset of field: dds_topic_descriptor::m_align"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_align) - 4usize];
    ["Offset of field: dds_topic_descriptor::m_flagset"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_flagset) - 8usize];
    ["Offset of field: dds_topic_descriptor::m_nkeys"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_nkeys) - 12usize];
    ["Offset of field: dds_topic_descriptor::m_typename"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_typename) - 16usize];
    ["Offset of field: dds_topic_descriptor::m_keys"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_keys) - 24usize];
    ["Offset of field: dds_topic_descriptor::m_nops"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_nops) - 32usize];
    ["Offset of field: dds_topic_descriptor::m_ops"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_ops) - 40usize];
    ["Offset of field: dds_topic_descriptor::m_meta"]
        [::std::mem::offset_of!(dds_topic_descriptor, m_meta) - 48usize];
    ["Offset of field: dds_topic_descriptor::type_information"]
        [::std::mem::offset_of!(dds_topic_descriptor, type_information) - 56usize];
    ["Offset of field: dds_topic_descriptor::type_mapping"]
        [::std::mem::offset_of!(dds_topic_descriptor, type_mapping) - 72usize];
    ["Offset of field: dds_topic_descriptor::restrict_data_representation"]
        [::std::mem::offset_of!(dds_topic_descriptor, restrict_data_representation) - 88usize];
};
impl Default for dds_topic_descriptor {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Topic Descriptor\n @ingroup topic_definition\n @warning Unstable/Private API\n Contains all meta information about a type, usually produced by the IDL compiler\n Since this type is not intended for public consumption it can change without warning."]
pub type dds_topic_descriptor_t = dds_topic_descriptor;
#[doc = "< Retrieving any entity"]
pub const dds_entity_kind_DDS_KIND_DONTCARE: dds_entity_kind = 0;
#[doc = "< Topic entity"]
pub const dds_entity_kind_DDS_KIND_TOPIC: dds_entity_kind = 1;
#[doc = "< Domain Participant entity"]
pub const dds_entity_kind_DDS_KIND_PARTICIPANT: dds_entity_kind = 2;
#[doc = "< Reader entity"]
pub const dds_entity_kind_DDS_KIND_READER: dds_entity_kind = 3;
#[doc = "< Writer entity"]
pub const dds_entity_kind_DDS_KIND_WRITER: dds_entity_kind = 4;
#[doc = "< Subscriber entity"]
pub const dds_entity_kind_DDS_KIND_SUBSCRIBER: dds_entity_kind = 5;
#[doc = "< Publisher entity"]
pub const dds_entity_kind_DDS_KIND_PUBLISHER: dds_entity_kind = 6;
#[doc = "< ReadCondition entity"]
pub const dds_entity_kind_DDS_KIND_COND_READ: dds_entity_kind = 7;
#[doc = "< QueryCondition entity"]
pub const dds_entity_kind_DDS_KIND_COND_QUERY: dds_entity_kind = 8;
#[doc = "< GuardCondition entity"]
pub const dds_entity_kind_DDS_KIND_COND_GUARD: dds_entity_kind = 9;
#[doc = "< WaitSet entity"]
pub const dds_entity_kind_DDS_KIND_WAITSET: dds_entity_kind = 10;
#[doc = "< Domain entity"]
pub const dds_entity_kind_DDS_KIND_DOMAIN: dds_entity_kind = 11;
#[doc = "< CycloneDDS library entity"]
pub const dds_entity_kind_DDS_KIND_CYCLONEDDS: dds_entity_kind = 12;
#[doc = " @brief DDS Entity Kind constants\n @ingroup internal\n @warning Unstable/Private API\n Used throughout the library to indicate what entity is what."]
pub type dds_entity_kind = ::std::ffi::c_uint;
#[doc = " @brief DDS Entity Kind constants\n @ingroup internal\n @warning Unstable/Private API\n Used throughout the library to indicate what entity is what."]
pub use self::dds_entity_kind as dds_entity_kind_t;
#[doc = " @ingroup internal\n @warning Private API\n @brief Instance handles are uint64_t behind the scenes"]
pub type dds_instance_handle_t = u64;
#[doc = " @ingroup domain\n @brief Domain IDs are 32 bit unsigned integers."]
pub type dds_domainid_t = u32;
#[doc = "< locate the topic anywhere CycloneDDS knows about"]
pub const dds_find_scope_DDS_FIND_SCOPE_GLOBAL: dds_find_scope = 0;
#[doc = "< locate the topic locally within domain boundaries"]
pub const dds_find_scope_DDS_FIND_SCOPE_LOCAL_DOMAIN: dds_find_scope = 1;
#[doc = "< locate the topic within the current participant"]
pub const dds_find_scope_DDS_FIND_SCOPE_PARTICIPANT: dds_find_scope = 2;
#[doc = " @ingroup topic\n @brief Scope for dds_find_topic()"]
pub type dds_find_scope = ::std::ffi::c_uint;
#[doc = " @ingroup topic\n @brief Scope for dds_find_topic()"]
pub use self::dds_find_scope as dds_find_scope_t;
#[doc = "< XTypes Minimal Type ID"]
pub const dds_typeid_kind_DDS_TYPEID_MINIMAL: dds_typeid_kind = 0;
#[doc = "< XTypes Complete Type ID"]
pub const dds_typeid_kind_DDS_TYPEID_COMPLETE: dds_typeid_kind = 1;
#[doc = " @ingroup builtintopic\n @brief Type identifier kind for getting endpoint type identifier"]
pub type dds_typeid_kind = ::std::ffi::c_uint;
#[doc = " @ingroup builtintopic\n @brief Type identifier kind for getting endpoint type identifier"]
pub use self::dds_typeid_kind as dds_typeid_kind_t;
unsafe extern "C" {
    #[doc = " @brief Enable or disable write batching.\n @component domain\n\n Overrides default configuration setting for write batching (Internal/WriteBatch).\n\n @param[in] enable Enables or disables write batching for all writers."]
    pub fn dds_write_set_batch(enable: bool);
}
#[doc = "< Invalid Policy"]
pub const dds_qos_policy_id_DDS_INVALID_QOS_POLICY_ID: dds_qos_policy_id = 0;
#[doc = "< Userdata policy dds_qset_userdata()"]
pub const dds_qos_policy_id_DDS_USERDATA_QOS_POLICY_ID: dds_qos_policy_id = 1;
#[doc = "< Durability policy dds_qset_durability()"]
pub const dds_qos_policy_id_DDS_DURABILITY_QOS_POLICY_ID: dds_qos_policy_id = 2;
#[doc = "< Presentation policy dds_qset_presentation()"]
pub const dds_qos_policy_id_DDS_PRESENTATION_QOS_POLICY_ID: dds_qos_policy_id = 3;
#[doc = "< Deadline policy dds_qset_deadline()"]
pub const dds_qos_policy_id_DDS_DEADLINE_QOS_POLICY_ID: dds_qos_policy_id = 4;
#[doc = "< LatencyBudget policy dds_qset_latency_budget()"]
pub const dds_qos_policy_id_DDS_LATENCYBUDGET_QOS_POLICY_ID: dds_qos_policy_id = 5;
#[doc = "< Ownership policy dds_qset_ownership()"]
pub const dds_qos_policy_id_DDS_OWNERSHIP_QOS_POLICY_ID: dds_qos_policy_id = 6;
#[doc = "< OwnershipStrength policy dds_qset_ownership_strength()"]
pub const dds_qos_policy_id_DDS_OWNERSHIPSTRENGTH_QOS_POLICY_ID: dds_qos_policy_id = 7;
#[doc = "< Liveliness policy dds_qset_liveliness()"]
pub const dds_qos_policy_id_DDS_LIVELINESS_QOS_POLICY_ID: dds_qos_policy_id = 8;
#[doc = "< TimeBasedFilter policy dds_qset_time_based_filter()"]
pub const dds_qos_policy_id_DDS_TIMEBASEDFILTER_QOS_POLICY_ID: dds_qos_policy_id = 9;
#[doc = "< Partition policy dds_qset_partition()"]
pub const dds_qos_policy_id_DDS_PARTITION_QOS_POLICY_ID: dds_qos_policy_id = 10;
#[doc = "< Reliability policy dds_qset_reliability()"]
pub const dds_qos_policy_id_DDS_RELIABILITY_QOS_POLICY_ID: dds_qos_policy_id = 11;
#[doc = "< DestinationOrder policy dds_qset_destination_order()"]
pub const dds_qos_policy_id_DDS_DESTINATIONORDER_QOS_POLICY_ID: dds_qos_policy_id = 12;
#[doc = "< History policy dds_qset_history()"]
pub const dds_qos_policy_id_DDS_HISTORY_QOS_POLICY_ID: dds_qos_policy_id = 13;
#[doc = "< ResourceLimits policy dds_qset_resource_limits()"]
pub const dds_qos_policy_id_DDS_RESOURCELIMITS_QOS_POLICY_ID: dds_qos_policy_id = 14;
#[doc = "< EntityFactory policy"]
pub const dds_qos_policy_id_DDS_ENTITYFACTORY_QOS_POLICY_ID: dds_qos_policy_id = 15;
#[doc = "< WriterDataLifecycle policy dds_qset_writer_data_lifecycle()"]
pub const dds_qos_policy_id_DDS_WRITERDATALIFECYCLE_QOS_POLICY_ID: dds_qos_policy_id = 16;
#[doc = "< ReaderDataLifecycle policy dds_qset_reader_data_lifecycle()"]
pub const dds_qos_policy_id_DDS_READERDATALIFECYCLE_QOS_POLICY_ID: dds_qos_policy_id = 17;
#[doc = "< Topicdata policy dds_qset_topicdata()"]
pub const dds_qos_policy_id_DDS_TOPICDATA_QOS_POLICY_ID: dds_qos_policy_id = 18;
#[doc = "< Groupdata policy dds_qset_groupdata()"]
pub const dds_qos_policy_id_DDS_GROUPDATA_QOS_POLICY_ID: dds_qos_policy_id = 19;
#[doc = "< TransportPriority policy dds_qset_transport_priority()"]
pub const dds_qos_policy_id_DDS_TRANSPORTPRIORITY_QOS_POLICY_ID: dds_qos_policy_id = 20;
#[doc = "< Livespan policy dds_qset_lifespan()"]
pub const dds_qos_policy_id_DDS_LIFESPAN_QOS_POLICY_ID: dds_qos_policy_id = 21;
#[doc = "< DurabilityService policy dds_qset_durability_service()"]
pub const dds_qos_policy_id_DDS_DURABILITYSERVICE_QOS_POLICY_ID: dds_qos_policy_id = 22;
#[doc = "< Property policy dds_qset_property()"]
pub const dds_qos_policy_id_DDS_PROPERTY_QOS_POLICY_ID: dds_qos_policy_id = 23;
#[doc = "< TypeConsistencyEnforcement policy dds_qset_type_consistency_enforcements()"]
pub const dds_qos_policy_id_DDS_TYPE_CONSISTENCY_ENFORCEMENT_QOS_POLICY_ID: dds_qos_policy_id = 24;
#[doc = "< DataRepresentation policy dds_qset_data_representation()"]
pub const dds_qos_policy_id_DDS_DATA_REPRESENTATION_QOS_POLICY_ID: dds_qos_policy_id = 25;
#[doc = " @brief Qos Policy IDs\n @ingroup internal\n Used internally to mark the QoS policy type"]
pub type dds_qos_policy_id = ::std::ffi::c_uint;
#[doc = " @brief Qos Policy IDs\n @ingroup internal\n Used internally to mark the QoS policy type"]
pub use self::dds_qos_policy_id as dds_qos_policy_id_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_qos {
    _unused: [u8; 0],
}
#[doc = " @brief QoS datatype\n @ingroup qos\n QoS structure is opaque"]
pub type dds_qos_t = dds_qos;
#[doc = "< Volatile durability"]
pub const dds_durability_kind_DDS_DURABILITY_VOLATILE: dds_durability_kind = 0;
#[doc = "< Transient Local durability"]
pub const dds_durability_kind_DDS_DURABILITY_TRANSIENT_LOCAL: dds_durability_kind = 1;
#[doc = "< Transient durability"]
pub const dds_durability_kind_DDS_DURABILITY_TRANSIENT: dds_durability_kind = 2;
#[doc = "< Persistent durability"]
pub const dds_durability_kind_DDS_DURABILITY_PERSISTENT: dds_durability_kind = 3;
#[doc = " @brief Durability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_durability_kind = ::std::ffi::c_uint;
#[doc = " @brief Durability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_durability_kind as dds_durability_kind_t;
#[doc = "< Keep Last history"]
pub const dds_history_kind_DDS_HISTORY_KEEP_LAST: dds_history_kind = 0;
#[doc = "< Keep All history"]
pub const dds_history_kind_DDS_HISTORY_KEEP_ALL: dds_history_kind = 1;
#[doc = " @brief History QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_history_kind = ::std::ffi::c_uint;
#[doc = " @brief History QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_history_kind as dds_history_kind_t;
#[doc = "< Shared Ownership"]
pub const dds_ownership_kind_DDS_OWNERSHIP_SHARED: dds_ownership_kind = 0;
#[doc = "< Exclusive Ownership"]
pub const dds_ownership_kind_DDS_OWNERSHIP_EXCLUSIVE: dds_ownership_kind = 1;
#[doc = " @brief Ownership QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_ownership_kind = ::std::ffi::c_uint;
#[doc = " @brief Ownership QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_ownership_kind as dds_ownership_kind_t;
#[doc = "< Automatic liveliness"]
pub const dds_liveliness_kind_DDS_LIVELINESS_AUTOMATIC: dds_liveliness_kind = 0;
#[doc = "< Manual by Participant liveliness"]
pub const dds_liveliness_kind_DDS_LIVELINESS_MANUAL_BY_PARTICIPANT: dds_liveliness_kind = 1;
#[doc = "< Manual by Topic liveliness"]
pub const dds_liveliness_kind_DDS_LIVELINESS_MANUAL_BY_TOPIC: dds_liveliness_kind = 2;
#[doc = " @brief Liveliness QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_liveliness_kind = ::std::ffi::c_uint;
#[doc = " @brief Liveliness QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_liveliness_kind as dds_liveliness_kind_t;
#[doc = "< Best Effort reliability"]
pub const dds_reliability_kind_DDS_RELIABILITY_BEST_EFFORT: dds_reliability_kind = 0;
#[doc = "< Reliable reliability"]
pub const dds_reliability_kind_DDS_RELIABILITY_RELIABLE: dds_reliability_kind = 1;
#[doc = " @brief Reliability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_reliability_kind = ::std::ffi::c_uint;
#[doc = " @brief Reliability QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_reliability_kind as dds_reliability_kind_t;
#[doc = "< order by reception timestamp"]
pub const dds_destination_order_kind_DDS_DESTINATIONORDER_BY_RECEPTION_TIMESTAMP:
    dds_destination_order_kind = 0;
#[doc = "< order by source timestamp"]
pub const dds_destination_order_kind_DDS_DESTINATIONORDER_BY_SOURCE_TIMESTAMP:
    dds_destination_order_kind = 1;
#[doc = " @brief DestinationOrder QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_destination_order_kind = ::std::ffi::c_uint;
#[doc = " @brief DestinationOrder QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_destination_order_kind as dds_destination_order_kind_t;
#[doc = "< presentation scope per instance"]
pub const dds_presentation_access_scope_kind_DDS_PRESENTATION_INSTANCE:
    dds_presentation_access_scope_kind = 0;
#[doc = "< presentation scope per topic"]
pub const dds_presentation_access_scope_kind_DDS_PRESENTATION_TOPIC:
    dds_presentation_access_scope_kind = 1;
#[doc = "< presentation scope per group"]
pub const dds_presentation_access_scope_kind_DDS_PRESENTATION_GROUP:
    dds_presentation_access_scope_kind = 2;
#[doc = " @brief Presentation QoS: Applies to Publisher, Subscriber\n @ingroup qos"]
pub type dds_presentation_access_scope_kind = ::std::ffi::c_uint;
#[doc = " @brief Presentation QoS: Applies to Publisher, Subscriber\n @ingroup qos"]
pub use self::dds_presentation_access_scope_kind as dds_presentation_access_scope_kind_t;
#[doc = "< Don't ignore local data"]
pub const dds_ignorelocal_kind_DDS_IGNORELOCAL_NONE: dds_ignorelocal_kind = 0;
#[doc = "< Ignore local data from same participant"]
pub const dds_ignorelocal_kind_DDS_IGNORELOCAL_PARTICIPANT: dds_ignorelocal_kind = 1;
#[doc = "< Ignore local data from same process"]
pub const dds_ignorelocal_kind_DDS_IGNORELOCAL_PROCESS: dds_ignorelocal_kind = 2;
#[doc = " @brief Ignore-local QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub type dds_ignorelocal_kind = ::std::ffi::c_uint;
#[doc = " @brief Ignore-local QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_ignorelocal_kind as dds_ignorelocal_kind_t;
#[doc = "< Do not allow type coercion"]
pub const dds_type_consistency_kind_DDS_TYPE_CONSISTENCY_DISALLOW_TYPE_COERCION:
    dds_type_consistency_kind = 0;
#[doc = "< Allow type coercion"]
pub const dds_type_consistency_kind_DDS_TYPE_CONSISTENCY_ALLOW_TYPE_COERCION:
    dds_type_consistency_kind = 1;
#[doc = " @brief Type-consistency QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub type dds_type_consistency_kind = ::std::ffi::c_uint;
#[doc = " @brief Type-consistency QoS: Applies to DataReader, DataWriter\n @ingroup qos"]
pub use self::dds_type_consistency_kind as dds_type_consistency_kind_t;
#[doc = " @brief Data Representation QoS: Applies to Topic, DataReader, DataWriter\n @ingroup qos"]
pub type dds_data_representation_id_t = i16;
unsafe extern "C" {
    #[doc = " @ingroup qos\n @component qos_obj\n @brief Allocate memory and initialize default QoS-policies\n\n @returns - Pointer to the initialized dds_qos_t structure, NULL if unsuccessful."]
    pub fn dds_create_qos() -> *mut dds_qos_t;
}
unsafe extern "C" {
    #[doc = " @ingroup qos\n @component qos_obj\n @brief Delete memory allocated to QoS-policies structure\n\n @param[in] qos - Pointer to dds_qos_t structure"]
    pub fn dds_delete_qos(qos: *mut dds_qos_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos\n @component qos_obj\n @brief Reset a QoS-policies structure to default values\n\n @param[in,out] qos - Pointer to the dds_qos_t structure"]
    pub fn dds_reset_qos(qos: *mut dds_qos_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos\n @component qos_obj\n @brief Copy all QoS-policies from one structure to another\n\n @param[in,out] dst - Pointer to the destination dds_qos_t structure\n @param[in] src - Pointer to the source dds_qos_t structure\n\n @returns - Return-code indicating success or failure"]
    pub fn dds_copy_qos(dst: *mut dds_qos_t, src: *const dds_qos_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup qos\n @component qos_obj\n @brief Copy all QoS-policies from one structure to another, unless already set\n\n Policies are copied from src to dst, unless src already has the policy set to a non-default value.\n\n @param[in,out] dst - Pointer to the destination qos structure\n @param[in] src - Pointer to the source qos structure"]
    pub fn dds_merge_qos(dst: *mut dds_qos_t, src: *const dds_qos_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos\n @component qos_obj\n @brief Check if two qos structures contain the same set of QoS-policies.\n\n @param[in] a - Pointer to a qos structure\n @param[in] b - Pointer to a qos structure\n\n @returns whether the two qos structures contain the same set of QoS-policies"]
    pub fn dds_qos_equal(a: *const dds_qos_t, b: *const dds_qos_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the userdata of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the userdata\n @param[in] value - Pointer to the userdata\n @param[in] sz - Size of userdata stored in value"]
    pub fn dds_qset_userdata(qos: *mut dds_qos_t, value: *const ::std::ffi::c_void, sz: usize);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the topicdata of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the topicdata\n @param[in] value - Pointer to the topicdata\n @param[in] sz - Size of the topicdata stored in value"]
    pub fn dds_qset_topicdata(qos: *mut dds_qos_t, value: *const ::std::ffi::c_void, sz: usize);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the groupdata of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the groupdata\n @param[in] value - Pointer to the group data\n @param[in] sz - Size of groupdata stored in value"]
    pub fn dds_qset_groupdata(qos: *mut dds_qos_t, value: *const ::std::ffi::c_void, sz: usize);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the durability policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Durability kind value"]
    pub fn dds_qset_durability(qos: *mut dds_qos_t, kind: dds_durability_kind_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the history policy of a qos structure.\n\n Note that depth is only relevant for keep last. If you want limited history for keep all, use dds_qset_resource_limits().\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - History kind value\n @param[in] depth - History depth value"]
    pub fn dds_qset_history(qos: *mut dds_qos_t, kind: dds_history_kind_t, depth: i32);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the resource limits policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] max_samples - Number of samples resource-limit value\n @param[in] max_instances - Number of instances resource-limit value\n @param[in] max_samples_per_instance - Number of samples per instance resource-limit value"]
    pub fn dds_qset_resource_limits(
        qos: *mut dds_qos_t,
        max_samples: i32,
        max_instances: i32,
        max_samples_per_instance: i32,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the presentation policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] access_scope - Access-scope kind\n @param[in] coherent_access - Coherent access enable value\n @param[in] ordered_access - Ordered access enable value"]
    pub fn dds_qset_presentation(
        qos: *mut dds_qos_t,
        access_scope: dds_presentation_access_scope_kind_t,
        coherent_access: bool,
        ordered_access: bool,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the lifespan policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] lifespan - Lifespan duration (expiration time relative to source timestamp of a sample)"]
    pub fn dds_qset_lifespan(qos: *mut dds_qos_t, lifespan: dds_duration_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the deadline policy of a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] deadline - Deadline duration"]
    pub fn dds_qset_deadline(qos: *mut dds_qos_t, deadline: dds_duration_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the latency-budget policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] duration - Latency budget duration"]
    pub fn dds_qset_latency_budget(qos: *mut dds_qos_t, duration: dds_duration_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the ownership policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Ownership kind"]
    pub fn dds_qset_ownership(qos: *mut dds_qos_t, kind: dds_ownership_kind_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the ownership strength policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] value - Ownership strength value"]
    pub fn dds_qset_ownership_strength(qos: *mut dds_qos_t, value: i32);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the liveliness policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Liveliness kind\n @param[in] lease_duration - Lease duration"]
    pub fn dds_qset_liveliness(
        qos: *mut dds_qos_t,
        kind: dds_liveliness_kind_t,
        lease_duration: dds_duration_t,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the time-based filter policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] minimum_separation - Minimum duration between sample delivery for an instance"]
    pub fn dds_qset_time_based_filter(qos: *mut dds_qos_t, minimum_separation: dds_duration_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the partition policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] n - Number of partitions stored in ps\n @param[in] ps - Pointer to string(s) storing partition name(s)"]
    pub fn dds_qset_partition(qos: *mut dds_qos_t, n: u32, ps: *mut *const ::std::ffi::c_char);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Convenience function to set the partition policy of a qos structure to a\n single name.  Name may be a null pointer.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] name - Pointer to the name"]
    pub fn dds_qset_partition1(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the reliability policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Reliability kind\n @param[in] max_blocking_time - Max blocking duration applied when kind is reliable. This is how long the writer will block when its history is full."]
    pub fn dds_qset_reliability(
        qos: *mut dds_qos_t,
        kind: dds_reliability_kind_t,
        max_blocking_time: dds_duration_t,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the transport-priority policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] value - Priority value"]
    pub fn dds_qset_transport_priority(qos: *mut dds_qos_t, value: i32);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the destination-order policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Destination-order kind"]
    pub fn dds_qset_destination_order(qos: *mut dds_qos_t, kind: dds_destination_order_kind_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the writer data-lifecycle policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] autodispose - Automatic disposal of unregistered instances"]
    pub fn dds_qset_writer_data_lifecycle(qos: *mut dds_qos_t, autodispose: bool);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the reader data-lifecycle policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] autopurge_nowriter_samples_delay - Delay for purging of samples from instances in a no-writers state\n @param[in] autopurge_disposed_samples_delay - Delay for purging of samples from disposed instances"]
    pub fn dds_qset_reader_data_lifecycle(
        qos: *mut dds_qos_t,
        autopurge_nowriter_samples_delay: dds_duration_t,
        autopurge_disposed_samples_delay: dds_duration_t,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the writer batching policy of a qos structure\n\n When batching is disabled, each write/dispose/unregister operation results in its own\n RTPS message that is sent out onto the transport.  For small data types, this means\n most messages (and hence network packets) are small.  As a consequence the fixed cost\n of processing a message (or packet) increases load.\n\n Enabling write batching causes the samples to be aggregated into a single larger RTPS\n message.  This improves efficiency by spreading the fixed cost out over more samples.\n Naturally this increases latency a bit.\n\n The batching mechanism may or may not send out packets on a write/&c. operation.  It\n buffers only a limited amount and will send out what has been buffered when a new\n write/&c. can not be added.  To guarantee that the buffered data is sent, one must call\n \"dds_flush\".\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] batch_updates - Whether writes should be batched"]
    pub fn dds_qset_writer_batching(qos: *mut dds_qos_t, batch_updates: bool);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the durability-service policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] service_cleanup_delay - Delay for purging of abandoned instances from the durability service\n @param[in] history_kind - History policy kind applied by the durability service\n @param[in] history_depth - History policy depth applied by the durability service\n @param[in] max_samples - Number of samples resource-limit policy applied by the durability service\n @param[in] max_instances - Number of instances resource-limit policy applied by the durability service\n @param[in] max_samples_per_instance - Number of samples per instance resource-limit policy applied by the durability service"]
    pub fn dds_qset_durability_service(
        qos: *mut dds_qos_t,
        service_cleanup_delay: dds_duration_t,
        history_kind: dds_history_kind_t,
        history_depth: i32,
        max_samples: i32,
        max_instances: i32,
        max_samples_per_instance: i32,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the ignore-local policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] ignore - True if readers and writers owned by the same participant should be ignored"]
    pub fn dds_qset_ignorelocal(qos: *mut dds_qos_t, ignore: dds_ignorelocal_kind_t);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores a property with the provided name and string value in a qos structure.\n\n In the case a property with the provided name already exists in the qos structure,\n the value for this entry is overwritten with the provided string value. If more than\n one property with the provided name exists, only the value of the first of these\n properties is updated.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to a (null-terminated) string that will be stored"]
    pub fn dds_qset_prop(
        qos: *mut dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *const ::std::ffi::c_char,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores a property with the provided name and string value and propagate in a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to a (null-terminated) string that will be stored\n @param[in] propagate - Whether to propagate the property over discovery or not"]
    pub fn dds_qset_prop_propagate(
        qos: *mut dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *const ::std::ffi::c_char,
        propagate: bool,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Removes the property with the provided name from a qos structure.\n\n In case more than one property exists with this name, only the first property\n is removed.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the property"]
    pub fn dds_qunset_prop(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores the provided binary data as a property in a qos structure\n\n In the case a property with the provided name already exists in the qos structure,\n the value for this entry is overwritten with the provided data. If more than one\n property with the provided name exists, only the value of the first of these\n properties is updated.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to data to be stored in the property\n @param[in] sz - Size of the data"]
    pub fn dds_qset_bprop(
        qos: *mut dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *const ::std::ffi::c_void,
        sz: usize,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Stores the provided binary data and propagate as a property in a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the property\n @param[in] name - Pointer to name of the property\n @param[in] value - Pointer to data to be stored in the property\n @param[in] sz - Size of the data\n @param[in] propagate - Whether to propagate the property over discovery or not"]
    pub fn dds_qset_bprop_propagate(
        qos: *mut dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *const ::std::ffi::c_void,
        sz: usize,
        propagate: bool,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Removes the binary property with the provided name from a qos structure.\n\n In case more than one binary property exists with this name, only the first binary\n property is removed.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the binary property\n @param[in] name - Pointer to name of the property"]
    pub fn dds_qunset_bprop(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the type consistency enforcement policy of a qos structure\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the policy\n @param[in] kind - Type consistency policy kind\n @param[in] ignore_sequence_bounds - Ignore sequence bounds in type assignability checking\n @param[in] ignore_string_bounds - Ignore string bounds in type assignability checking\n @param[in] ignore_member_names - Ignore member names in type assignability checking\n @param[in] prevent_type_widening - Prevent type widening in type assignability checking\n @param[in] force_type_validation - Force type validation in assignability checking"]
    pub fn dds_qset_type_consistency(
        qos: *mut dds_qos_t,
        kind: dds_type_consistency_kind_t,
        ignore_sequence_bounds: bool,
        ignore_string_bounds: bool,
        ignore_member_names: bool,
        prevent_type_widening: bool,
        force_type_validation: bool,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the data representation of a qos structure\n\n @param[in,out] qos    - Pointer to a dds_qos_t structure that will store the policy\n @param[in]     n      - Number of data representation values\n @param[in]     values - Data representation values"]
    pub fn dds_qset_data_representation(
        qos: *mut dds_qos_t,
        n: u32,
        values: *const dds_data_representation_id_t,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the entity name.\n\n When using this QoS to initialize a participant, publisher, subscriber, reader or writer\n it will take the name set here. This name is visible over discovery and can be used\n to make sense of network in tooling.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that will store the entity name.\n @param[in] name - Pointer to the entity name to set."]
    pub fn dds_qset_entity_name(qos: *mut dds_qos_t, name: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    #[doc = " @ingroup qos_setters\n @component qos_obj\n @brief Set the enabled PSMX Instances in a qos structure\n\n @param[in,out] qos    - Pointer to a dds_qos_t structure that will store the policy\n @param[in]     n      - Number of PSMX Instances Names in `values`\n @param[in]     values - Array of PSMX Instance Names"]
    pub fn dds_qset_psmx_instances(
        qos: *mut dds_qos_t,
        n: u32,
        values: *mut *const ::std::ffi::c_char,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the userdata from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the userdata.  If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0\n @param[in,out] sz - Pointer that will store the size of userdata\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_userdata(
        qos: *const dds_qos_t,
        value: *mut *mut ::std::ffi::c_void,
        sz: *mut usize,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the topicdata from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the topicdata.  If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0\n @param[in,out] sz - Pointer that will store the size of topicdata\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_topicdata(
        qos: *const dds_qos_t,
        value: *mut *mut ::std::ffi::c_void,
        sz: *mut usize,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the groupdata from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the groupdata.  If sz = 0, then a null pointer, else it is a pointer to an allocated buffer of sz+1 bytes where the last byte is always 0\n @param[in,out] sz - Pointer that will store the size of groupdata\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_groupdata(
        qos: *const dds_qos_t,
        value: *mut *mut ::std::ffi::c_void,
        sz: *mut usize,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the durability policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the durability kind\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_durability(qos: *const dds_qos_t, kind: *mut dds_durability_kind_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the history policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the history kind (optional)\n @param[in,out] depth - Pointer that will store the history depth (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_history(
        qos: *const dds_qos_t,
        kind: *mut dds_history_kind_t,
        depth: *mut i32,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the resource-limits policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] max_samples - Pointer that will store the number of samples resource-limit (optional)\n @param[in,out] max_instances - Pointer that will store the number of instances resource-limit (optional)\n @param[in,out] max_samples_per_instance - Pointer that will store the number of samples per instance resource-limit (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_resource_limits(
        qos: *const dds_qos_t,
        max_samples: *mut i32,
        max_instances: *mut i32,
        max_samples_per_instance: *mut i32,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the presentation policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] access_scope - Pointer that will store access scope kind (optional)\n @param[in,out] coherent_access - Pointer that will store coherent access enable value (optional)\n @param[in,out] ordered_access - Pointer that will store orderede access enable value (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_presentation(
        qos: *const dds_qos_t,
        access_scope: *mut dds_presentation_access_scope_kind_t,
        coherent_access: *mut bool,
        ordered_access: *mut bool,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the lifespan policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] lifespan - Pointer that will store lifespan duration\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_lifespan(qos: *const dds_qos_t, lifespan: *mut dds_duration_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the deadline policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] deadline - Pointer that will store deadline duration\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_deadline(qos: *const dds_qos_t, deadline: *mut dds_duration_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the latency-budget policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] duration - Pointer that will store latency-budget duration\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_latency_budget(qos: *const dds_qos_t, duration: *mut dds_duration_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the ownership policy from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the ownership kind\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_ownership(qos: *const dds_qos_t, kind: *mut dds_ownership_kind_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the ownership strength qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the ownership strength value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_ownership_strength(qos: *const dds_qos_t, value: *mut i32) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the liveliness qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the liveliness kind (optional)\n @param[in,out] lease_duration - Pointer that will store the liveliness lease duration (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_liveliness(
        qos: *const dds_qos_t,
        kind: *mut dds_liveliness_kind_t,
        lease_duration: *mut dds_duration_t,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the time-based filter qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] minimum_separation - Pointer that will store the minimum separation duration (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_time_based_filter(
        qos: *const dds_qos_t,
        minimum_separation: *mut dds_duration_t,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the partition qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] n - Pointer that will store the number of partitions (optional)\n @param[in,out] ps - Pointer that will store the string(s) containing partition name(s) (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_partition(
        qos: *const dds_qos_t,
        n: *mut u32,
        ps: *mut *mut *mut ::std::ffi::c_char,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the reliability qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the reliability kind (optional)\n @param[in,out] max_blocking_time - Pointer that will store the max blocking time for reliable reliability (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_reliability(
        qos: *const dds_qos_t,
        kind: *mut dds_reliability_kind_t,
        max_blocking_time: *mut dds_duration_t,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the transport priority qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] value - Pointer that will store the transport priority value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_transport_priority(qos: *const dds_qos_t, value: *mut i32) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the destination-order qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the destination-order kind\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_destination_order(
        qos: *const dds_qos_t,
        kind: *mut dds_destination_order_kind_t,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the writer data-lifecycle qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] autodispose - Pointer that will store the autodispose unregistered instances enable value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_writer_data_lifecycle(qos: *const dds_qos_t, autodispose: *mut bool) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the reader data-lifecycle qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] autopurge_nowriter_samples_delay - Pointer that will store the delay for auto-purging samples from instances in a no-writer state (optional)\n @param[in,out] autopurge_disposed_samples_delay - Pointer that will store the delay for auto-purging of disposed instances (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_reader_data_lifecycle(
        qos: *const dds_qos_t,
        autopurge_nowriter_samples_delay: *mut dds_duration_t,
        autopurge_disposed_samples_delay: *mut dds_duration_t,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the writer batching qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] batch_updates - Pointer that will store the batching enable value\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_writer_batching(qos: *const dds_qos_t, batch_updates: *mut bool) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the durability-service qos policy values.\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out]  service_cleanup_delay - Pointer that will store the delay for purging of abandoned instances from the durability service (optional)\n @param[in,out] history_kind - Pointer that will store history policy kind applied by the durability service (optional)\n @param[in,out] history_depth - Pointer that will store history policy depth applied by the durability service (optional)\n @param[in,out] max_samples - Pointer that will store number of samples resource-limit policy applied by the durability service (optional)\n @param[in,out] max_instances - Pointer that will store number of instances resource-limit policy applied by the durability service (optional)\n @param[in,out] max_samples_per_instance - Pointer that will store number of samples per instance resource-limit policy applied by the durability service (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_durability_service(
        qos: *const dds_qos_t,
        service_cleanup_delay: *mut dds_duration_t,
        history_kind: *mut dds_history_kind_t,
        history_depth: *mut i32,
        max_samples: *mut i32,
        max_instances: *mut i32,
        max_samples_per_instance: *mut i32,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the ignore-local qos policy\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] ignore - Pointer that will store whether to ignore readers/writers owned by the same participant (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_ignorelocal(qos: *const dds_qos_t, ignore: *mut dds_ignorelocal_kind_t)
        -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Gets the names of the properties from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains properties\n @param[in,out] n - Pointer to number of property names that are returned (optional)\n @param[in,out] names - Pointer that will store the string(s) containing property name(s) (optional). This function will allocate the memory for the list of names and for the strings containing the names; the caller gets ownership of the allocated memory\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_propnames(
        qos: *const dds_qos_t,
        n: *mut u32,
        names: *mut *mut *mut ::std::ffi::c_char,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the property with the provided name from a qos structure.\n\n In case more than one property exists with this name, the value for the first\n property with this name will be returned.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the property\n @param[in,out] value - Pointer to a string that will store the value of the property. The memory for storing the string value will be allocated by this function and the caller gets ownership of the allocated memory\n\n @returns - false iff any of the arguments is invalid, the qos is not present in the qos object or there was no property found with the provided name"]
    pub fn dds_qget_prop(
        qos: *const dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *mut *mut ::std::ffi::c_char,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the property with the provided name and propagate from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the property\n @param[in,out] value - Pointer to a string that will store the value of the property. The memory for storing the string value will be allocated by this function and the caller gets ownership of the allocated memory\n @param[in,out] propagate - Pointer that will store if property gets propagated or not\n\n @returns - false if any of the arguments is invalid, the qos is not present in the qos object or there was no property found with the provided name"]
    pub fn dds_qget_prop_propagate(
        qos: *const dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *mut *mut ::std::ffi::c_char,
        propagate: *mut bool,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Gets the names of the binary properties from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains binary properties\n @param[in,out] n - Pointer to number of binary property names that are returned (optional)\n @param[in,out] names - Pointer that will store the string(s) containing binary property name(s) (optional). This function will allocate the memory for the list of names and for the strings containing the names; the caller gets ownership of the allocated memory\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_bpropnames(
        qos: *const dds_qos_t,
        n: *mut u32,
        names: *mut *mut *mut ::std::ffi::c_char,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the binary property with the provided name from a qos structure.\n\n In case more than one binary property exists with this name, the value for the first\n binary property with this name will be returned.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the binary property\n @param[in,out] value - Pointer to a buffer that will store the value of the property. If sz = 0 then a NULL pointer. The memory for storing the value will be allocated by this function and the caller gets ownership of the allocated memory\n @param[in,out] sz - Pointer that will store the size of the returned buffer.\n\n @returns - false iff any of the arguments is invalid, the qos is not present in the qos object or there was no binary property found with the provided name"]
    pub fn dds_qget_bprop(
        qos: *const dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *mut *mut ::std::ffi::c_void,
        sz: *mut usize,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the value of the binary property with the provided name and propagate from a qos structure.\n\n @param[in,out] qos - Pointer to a dds_qos_t structure that contains the property\n @param[in] name - Pointer to name of the binary property\n @param[in,out] value - Pointer to a buffer that will store the value of the property. If sz = 0 then a NULL pointer. The memory for storing the value will be allocated by this function and the caller gets ownership of the allocated memory\n @param[in,out] sz - Pointer that will store the size of the returned buffer.\n @param[in,out] propagate - Pointer that will store if property gets propagated or not\n\n @returns - false iff any of the arguments is invalid, the qos is not present in the qos object or there was no binary property found with the provided name"]
    pub fn dds_qget_bprop_propagate(
        qos: *const dds_qos_t,
        name: *const ::std::ffi::c_char,
        value: *mut *mut ::std::ffi::c_void,
        sz: *mut usize,
        propagate: *mut bool,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the type consistency enforcement qos policy values.\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] kind - Pointer that will store the type consistency enforcement kind (optional)\n @param[in,out] ignore_sequence_bounds - Pointer that will store the boolean value for ignoring sequence bounds in type assignability checking (optional)\n @param[in,out] ignore_string_bounds - Pointer that will store the boolean value for ignoring string bounds in type assignability checking (optional)\n @param[in,out] ignore_member_names - Pointer that will store the boolean value for ignoring member names in type assignability checking (optional)\n @param[in,out] prevent_type_widening - Pointer that will store the boolean value to prevent type widening in type assignability checking (optional)\n @param[in,out] force_type_validation - Pointer that will store the boolean value to force type validation in assignability checking (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_type_consistency(
        qos: *const dds_qos_t,
        kind: *mut dds_type_consistency_kind_t,
        ignore_sequence_bounds: *mut bool,
        ignore_string_bounds: *mut bool,
        ignore_member_names: *mut bool,
        prevent_type_widening: *mut bool,
        force_type_validation: *mut bool,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the data representation qos policy value.\n\n Returns the data representation values that are set in the provided QoS object\n and stores the number of values in out parameter 'n'. In case the 'values' parameter\n is provided, this function will allocate a buffer that contains the data representation\n values, and set 'values' to point to this buffer. It is the responsibility of the caller\n to free the memory of this buffer.\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the policy\n @param[in,out] n - Pointer that will store the number of data representation values\n @param[in,out] values - Pointer that will store the data representation values (optional)\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object"]
    pub fn dds_qget_data_representation(
        qos: *const dds_qos_t,
        n: *mut u32,
        values: *mut *mut dds_data_representation_id_t,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Get the entity name from a qos structure\n\n @param[in] qos - Pointer to a dds_qos_t structure storing the entity name\n @param[in,out] name - Pointer to a string that will store the returned entity name\n\n @returns - false iff any of the arguments is invalid or the qos is not present in the qos object\n            or if a buffer to store the name could not be allocated."]
    pub fn dds_qget_entity_name(qos: *const dds_qos_t, name: *mut *mut ::std::ffi::c_char) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup qos_getters\n @component qos_obj\n @brief Gets the names of the PSMX Instances set in a qos structure\n\n @param qos     Pointer to a dds_qos_t structure\n @param n_out   Number of PSMX Instance Names returned\n @param values  Array of pointers to PSMX instance Names\n @return bool indicating success or failure"]
    pub fn dds_qget_psmx_instances(
        qos: *const dds_qos_t,
        n_out: *mut u32,
        values: *mut *mut *mut ::std::ffi::c_char,
    ) -> bool;
}
pub type dds_fail_fn = ::std::option::Option<
    unsafe extern "C" fn(arg1: *const ::std::ffi::c_char, arg2: *const ::std::ffi::c_char),
>;
unsafe extern "C" {
    pub fn dds_fail_set(fn_: dds_fail_fn);
}
unsafe extern "C" {
    pub fn dds_fail_get() -> dds_fail_fn;
}
unsafe extern "C" {
    pub fn dds_err_str(err: dds_return_t) -> *const ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn dds_fail(msg: *const ::std::ffi::c_char, where_: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    pub fn dds_err_check(
        err: dds_return_t,
        flags: ::std::ffi::c_uint,
        where_: *const ::std::ffi::c_char,
    ) -> bool;
}
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedDeadlineMissed\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_offered_deadline_missed_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_instance_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_offered_deadline_missed_status"]
        [::std::mem::size_of::<dds_offered_deadline_missed_status>() - 16usize];
    ["Alignment of dds_offered_deadline_missed_status"]
        [::std::mem::align_of::<dds_offered_deadline_missed_status>() - 8usize];
    ["Offset of field: dds_offered_deadline_missed_status::total_count"]
        [::std::mem::offset_of!(dds_offered_deadline_missed_status, total_count) - 0usize];
    ["Offset of field: dds_offered_deadline_missed_status::total_count_change"]
        [::std::mem::offset_of!(dds_offered_deadline_missed_status, total_count_change) - 4usize];
    ["Offset of field: dds_offered_deadline_missed_status::last_instance_handle"]
        [::std::mem::offset_of!(dds_offered_deadline_missed_status, last_instance_handle) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedDeadlineMissed\n DOC_TODO"]
pub type dds_offered_deadline_missed_status_t = dds_offered_deadline_missed_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedIncompatibleQoS\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_offered_incompatible_qos_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_policy_id: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_offered_incompatible_qos_status"]
        [::std::mem::size_of::<dds_offered_incompatible_qos_status>() - 12usize];
    ["Alignment of dds_offered_incompatible_qos_status"]
        [::std::mem::align_of::<dds_offered_incompatible_qos_status>() - 4usize];
    ["Offset of field: dds_offered_incompatible_qos_status::total_count"]
        [::std::mem::offset_of!(dds_offered_incompatible_qos_status, total_count) - 0usize];
    ["Offset of field: dds_offered_incompatible_qos_status::total_count_change"]
        [::std::mem::offset_of!(dds_offered_incompatible_qos_status, total_count_change) - 4usize];
    ["Offset of field: dds_offered_incompatible_qos_status::last_policy_id"]
        [::std::mem::offset_of!(dds_offered_incompatible_qos_status, last_policy_id) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_OfferedIncompatibleQoS\n DOC_TODO"]
pub type dds_offered_incompatible_qos_status_t = dds_offered_incompatible_qos_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_PublicationMatched\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_publication_matched_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub current_count: u32,
    #[doc = "< DOC_TODO"]
    pub current_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_subscription_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_publication_matched_status"]
        [::std::mem::size_of::<dds_publication_matched_status>() - 24usize];
    ["Alignment of dds_publication_matched_status"]
        [::std::mem::align_of::<dds_publication_matched_status>() - 8usize];
    ["Offset of field: dds_publication_matched_status::total_count"]
        [::std::mem::offset_of!(dds_publication_matched_status, total_count) - 0usize];
    ["Offset of field: dds_publication_matched_status::total_count_change"]
        [::std::mem::offset_of!(dds_publication_matched_status, total_count_change) - 4usize];
    ["Offset of field: dds_publication_matched_status::current_count"]
        [::std::mem::offset_of!(dds_publication_matched_status, current_count) - 8usize];
    ["Offset of field: dds_publication_matched_status::current_count_change"]
        [::std::mem::offset_of!(dds_publication_matched_status, current_count_change) - 12usize];
    ["Offset of field: dds_publication_matched_status::last_subscription_handle"][::std::mem::offset_of!(
        dds_publication_matched_status,
        last_subscription_handle
    ) - 16usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_PublicationMatched\n DOC_TODO"]
pub type dds_publication_matched_status_t = dds_publication_matched_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessLost\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_liveliness_lost_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_liveliness_lost_status"]
        [::std::mem::size_of::<dds_liveliness_lost_status>() - 8usize];
    ["Alignment of dds_liveliness_lost_status"]
        [::std::mem::align_of::<dds_liveliness_lost_status>() - 4usize];
    ["Offset of field: dds_liveliness_lost_status::total_count"]
        [::std::mem::offset_of!(dds_liveliness_lost_status, total_count) - 0usize];
    ["Offset of field: dds_liveliness_lost_status::total_count_change"]
        [::std::mem::offset_of!(dds_liveliness_lost_status, total_count_change) - 4usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessLost\n DOC_TODO"]
pub type dds_liveliness_lost_status_t = dds_liveliness_lost_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SubscriptionMatched\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_subscription_matched_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub current_count: u32,
    #[doc = "< DOC_TODO"]
    pub current_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_publication_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_subscription_matched_status"]
        [::std::mem::size_of::<dds_subscription_matched_status>() - 24usize];
    ["Alignment of dds_subscription_matched_status"]
        [::std::mem::align_of::<dds_subscription_matched_status>() - 8usize];
    ["Offset of field: dds_subscription_matched_status::total_count"]
        [::std::mem::offset_of!(dds_subscription_matched_status, total_count) - 0usize];
    ["Offset of field: dds_subscription_matched_status::total_count_change"]
        [::std::mem::offset_of!(dds_subscription_matched_status, total_count_change) - 4usize];
    ["Offset of field: dds_subscription_matched_status::current_count"]
        [::std::mem::offset_of!(dds_subscription_matched_status, current_count) - 8usize];
    ["Offset of field: dds_subscription_matched_status::current_count_change"]
        [::std::mem::offset_of!(dds_subscription_matched_status, current_count_change) - 12usize];
    ["Offset of field: dds_subscription_matched_status::last_publication_handle"][::std::mem::offset_of!(
        dds_subscription_matched_status,
        last_publication_handle
    ) - 16usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SubscriptionMatched\n DOC_TODO"]
pub type dds_subscription_matched_status_t = dds_subscription_matched_status;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_NOT_REJECTED: dds_sample_rejected_status_kind = 0;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_REJECTED_BY_INSTANCES_LIMIT:
    dds_sample_rejected_status_kind = 1;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_REJECTED_BY_SAMPLES_LIMIT:
    dds_sample_rejected_status_kind = 2;
#[doc = "< DOC_TODO"]
pub const dds_sample_rejected_status_kind_DDS_REJECTED_BY_SAMPLES_PER_INSTANCE_LIMIT:
    dds_sample_rejected_status_kind = 3;
#[doc = " @ingroup dcps_status\n @brief Rejected Status\n DOC_TODO"]
pub type dds_sample_rejected_status_kind = ::std::ffi::c_uint;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleRejected\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_sample_rejected_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_reason: dds_sample_rejected_status_kind,
    #[doc = "< DOC_TODO"]
    pub last_instance_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_sample_rejected_status"]
        [::std::mem::size_of::<dds_sample_rejected_status>() - 24usize];
    ["Alignment of dds_sample_rejected_status"]
        [::std::mem::align_of::<dds_sample_rejected_status>() - 8usize];
    ["Offset of field: dds_sample_rejected_status::total_count"]
        [::std::mem::offset_of!(dds_sample_rejected_status, total_count) - 0usize];
    ["Offset of field: dds_sample_rejected_status::total_count_change"]
        [::std::mem::offset_of!(dds_sample_rejected_status, total_count_change) - 4usize];
    ["Offset of field: dds_sample_rejected_status::last_reason"]
        [::std::mem::offset_of!(dds_sample_rejected_status, last_reason) - 8usize];
    ["Offset of field: dds_sample_rejected_status::last_instance_handle"]
        [::std::mem::offset_of!(dds_sample_rejected_status, last_instance_handle) - 16usize];
};
impl Default for dds_sample_rejected_status {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleRejected\n DOC_TODO"]
pub type dds_sample_rejected_status_t = dds_sample_rejected_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessChanged\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_liveliness_changed_status {
    #[doc = "< DOC_TODO"]
    pub alive_count: u32,
    #[doc = "< DOC_TODO"]
    pub not_alive_count: u32,
    #[doc = "< DOC_TODO"]
    pub alive_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub not_alive_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_publication_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_liveliness_changed_status"]
        [::std::mem::size_of::<dds_liveliness_changed_status>() - 24usize];
    ["Alignment of dds_liveliness_changed_status"]
        [::std::mem::align_of::<dds_liveliness_changed_status>() - 8usize];
    ["Offset of field: dds_liveliness_changed_status::alive_count"]
        [::std::mem::offset_of!(dds_liveliness_changed_status, alive_count) - 0usize];
    ["Offset of field: dds_liveliness_changed_status::not_alive_count"]
        [::std::mem::offset_of!(dds_liveliness_changed_status, not_alive_count) - 4usize];
    ["Offset of field: dds_liveliness_changed_status::alive_count_change"]
        [::std::mem::offset_of!(dds_liveliness_changed_status, alive_count_change) - 8usize];
    ["Offset of field: dds_liveliness_changed_status::not_alive_count_change"]
        [::std::mem::offset_of!(dds_liveliness_changed_status, not_alive_count_change) - 12usize];
    ["Offset of field: dds_liveliness_changed_status::last_publication_handle"]
        [::std::mem::offset_of!(dds_liveliness_changed_status, last_publication_handle) - 16usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_LivelinessChanged\n DOC_TODO"]
pub type dds_liveliness_changed_status_t = dds_liveliness_changed_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedDeadlineMissed\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_requested_deadline_missed_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_instance_handle: dds_instance_handle_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_requested_deadline_missed_status"]
        [::std::mem::size_of::<dds_requested_deadline_missed_status>() - 16usize];
    ["Alignment of dds_requested_deadline_missed_status"]
        [::std::mem::align_of::<dds_requested_deadline_missed_status>() - 8usize];
    ["Offset of field: dds_requested_deadline_missed_status::total_count"]
        [::std::mem::offset_of!(dds_requested_deadline_missed_status, total_count) - 0usize];
    ["Offset of field: dds_requested_deadline_missed_status::total_count_change"]
        [::std::mem::offset_of!(dds_requested_deadline_missed_status, total_count_change) - 4usize];
    ["Offset of field: dds_requested_deadline_missed_status::last_instance_handle"][::std::mem::offset_of!(
        dds_requested_deadline_missed_status,
        last_instance_handle
    ) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedDeadlineMissed\n DOC_TODO"]
pub type dds_requested_deadline_missed_status_t = dds_requested_deadline_missed_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedIncompatibleQoS\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_requested_incompatible_qos_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
    #[doc = "< DOC_TODO"]
    pub last_policy_id: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_requested_incompatible_qos_status"]
        [::std::mem::size_of::<dds_requested_incompatible_qos_status>() - 12usize];
    ["Alignment of dds_requested_incompatible_qos_status"]
        [::std::mem::align_of::<dds_requested_incompatible_qos_status>() - 4usize];
    ["Offset of field: dds_requested_incompatible_qos_status::total_count"]
        [::std::mem::offset_of!(dds_requested_incompatible_qos_status, total_count) - 0usize];
    ["Offset of field: dds_requested_incompatible_qos_status::total_count_change"][::std::mem::offset_of!(
        dds_requested_incompatible_qos_status,
        total_count_change
    ) - 4usize];
    ["Offset of field: dds_requested_incompatible_qos_status::last_policy_id"]
        [::std::mem::offset_of!(dds_requested_incompatible_qos_status, last_policy_id) - 8usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_RequestedIncompatibleQoS\n DOC_TODO"]
pub type dds_requested_incompatible_qos_status_t = dds_requested_incompatible_qos_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleLost\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_sample_lost_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_sample_lost_status"][::std::mem::size_of::<dds_sample_lost_status>() - 8usize];
    ["Alignment of dds_sample_lost_status"]
        [::std::mem::align_of::<dds_sample_lost_status>() - 4usize];
    ["Offset of field: dds_sample_lost_status::total_count"]
        [::std::mem::offset_of!(dds_sample_lost_status, total_count) - 0usize];
    ["Offset of field: dds_sample_lost_status::total_count_change"]
        [::std::mem::offset_of!(dds_sample_lost_status, total_count_change) - 4usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_SampleLost\n DOC_TODO"]
pub type dds_sample_lost_status_t = dds_sample_lost_status;
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_InconsistentTopic\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_inconsistent_topic_status {
    #[doc = "< DOC_TODO"]
    pub total_count: u32,
    #[doc = "< DOC_TODO"]
    pub total_count_change: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_inconsistent_topic_status"]
        [::std::mem::size_of::<dds_inconsistent_topic_status>() - 8usize];
    ["Alignment of dds_inconsistent_topic_status"]
        [::std::mem::align_of::<dds_inconsistent_topic_status>() - 4usize];
    ["Offset of field: dds_inconsistent_topic_status::total_count"]
        [::std::mem::offset_of!(dds_inconsistent_topic_status, total_count) - 0usize];
    ["Offset of field: dds_inconsistent_topic_status::total_count_change"]
        [::std::mem::offset_of!(dds_inconsistent_topic_status, total_count_change) - 4usize];
};
#[doc = " @ingroup dcps_status\n @brief DCPS_Status_InconsistentTopic\n DOC_TODO"]
pub type dds_inconsistent_topic_status_t = dds_inconsistent_topic_status;
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get INCONSISTENT_TOPIC status\n\n This operation gets the status value corresponding to INCONSISTENT_TOPIC\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  topic  The topic entity to get the status\n @param[out] status The pointer to @ref dds_inconsistent_topic_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_inconsistent_topic_status(
        topic: dds_entity_t,
        status: *mut dds_inconsistent_topic_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get PUBLICATION_MATCHED status\n\n This operation gets the status value corresponding to PUBLICATION_MATCHED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  writer  The writer entity to get the status\n @param[out] status  The pointer to @ref dds_publication_matched_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_publication_matched_status(
        writer: dds_entity_t,
        status: *mut dds_publication_matched_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get LIVELINESS_LOST status\n\n This operation gets the status value corresponding to LIVELINESS_LOST\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  writer  The writer entity to get the status\n @param[out] status  The pointer to @ref dds_liveliness_lost_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_liveliness_lost_status(
        writer: dds_entity_t,
        status: *mut dds_liveliness_lost_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get OFFERED_DEADLINE_MISSED status\n\n This operation gets the status value corresponding to OFFERED_DEADLINE_MISSED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  writer  The writer entity to get the status\n @param[out] status  The pointer to @ref dds_offered_deadline_missed_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_offered_deadline_missed_status(
        writer: dds_entity_t,
        status: *mut dds_offered_deadline_missed_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get OFFERED_INCOMPATIBLE_QOS status\n\n This operation gets the status value corresponding to OFFERED_INCOMPATIBLE_QOS\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  writer  The writer entity to get the status\n @param[out] status  The pointer to @ref dds_offered_incompatible_qos_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_offered_incompatible_qos_status(
        writer: dds_entity_t,
        status: *mut dds_offered_incompatible_qos_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get SUBSCRIPTION_MATCHED status\n\n This operation gets the status value corresponding to SUBSCRIPTION_MATCHED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  reader  The reader entity to get the status\n @param[out] status  The pointer to @ref dds_subscription_matched_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_subscription_matched_status(
        reader: dds_entity_t,
        status: *mut dds_subscription_matched_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get LIVELINESS_CHANGED status\n\n This operation gets the status value corresponding to LIVELINESS_CHANGED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  reader  The reader entity to get the status\n @param[out] status  The pointer to @ref dds_liveliness_changed_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_liveliness_changed_status(
        reader: dds_entity_t,
        status: *mut dds_liveliness_changed_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get SAMPLE_REJECTED status\n\n This operation gets the status value corresponding to SAMPLE_REJECTED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  reader  The reader entity to get the status\n @param[out] status  The pointer to @ref dds_sample_rejected_status_t to get the status\n\n @returns  0 - Success\n @returns <0 - Failure\n\n @retval DDS_RETCODE_ERROR\n                  An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n                  One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n                  The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n                  The entity has already been deleted."]
    pub fn dds_get_sample_rejected_status(
        reader: dds_entity_t,
        status: *mut dds_sample_rejected_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get SAMPLE_LOST status\n\n This operation gets the status value corresponding to SAMPLE_LOST\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  reader  The reader entity to get the status\n @param[out] status  The pointer to @ref dds_sample_lost_status_t to get the status\n\n @returns A dds_return_t indicating success or failure\n\n @retval DDS_RETCODE_OK\n            Success\n @retval DDS_RETCODE_ERROR\n            An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n            The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n            The entity has already been deleted."]
    pub fn dds_get_sample_lost_status(
        reader: dds_entity_t,
        status: *mut dds_sample_lost_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get REQUESTED_DEADLINE_MISSED status\n\n This operation gets the status value corresponding to REQUESTED_DEADLINE_MISSED\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  reader  The reader entity to get the status\n @param[out] status  The pointer to @ref dds_requested_deadline_missed_status_t to get the status\n\n @returns A dds_return_t indicating success or failure\n\n @retval DDS_RETCODE_OK\n            Success\n @retval DDS_RETCODE_ERROR\n            An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n            The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n            The entity has already been deleted."]
    pub fn dds_get_requested_deadline_missed_status(
        reader: dds_entity_t,
        status: *mut dds_requested_deadline_missed_status_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup dcps_status_getters\n @component entity_status\n @brief Get REQUESTED_INCOMPATIBLE_QOS status\n\n This operation gets the status value corresponding to REQUESTED_INCOMPATIBLE_QOS\n and reset the status. The value can be obtained, only if the status is enabled for an entity.\n NULL value for status is allowed and it will reset the trigger value when status is enabled.\n\n @param[in]  reader  The reader entity to get the status\n @param[out] status  The pointer to @ref dds_requested_incompatible_qos_status_t to get the status\n\n @returns A dds_return_t indicating success or failure\n\n @retval DDS_RETCODE_OK\n            Success\n @retval DDS_RETCODE_ERROR\n            An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n            The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n            The entity has already been deleted."]
    pub fn dds_get_requested_incompatible_qos_status(
        reader: dds_entity_t,
        status: *mut dds_requested_incompatible_qos_status_t,
    ) -> dds_return_t;
}
pub type dds_on_inconsistent_topic_fn = ::std::option::Option<
    unsafe extern "C" fn(
        topic: dds_entity_t,
        status: dds_inconsistent_topic_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_liveliness_lost_fn = ::std::option::Option<
    unsafe extern "C" fn(
        writer: dds_entity_t,
        status: dds_liveliness_lost_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_offered_deadline_missed_fn = ::std::option::Option<
    unsafe extern "C" fn(
        writer: dds_entity_t,
        status: dds_offered_deadline_missed_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_offered_incompatible_qos_fn = ::std::option::Option<
    unsafe extern "C" fn(
        writer: dds_entity_t,
        status: dds_offered_incompatible_qos_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_data_on_readers_fn = ::std::option::Option<
    unsafe extern "C" fn(subscriber: dds_entity_t, arg: *mut ::std::ffi::c_void),
>;
pub type dds_on_sample_lost_fn = ::std::option::Option<
    unsafe extern "C" fn(
        reader: dds_entity_t,
        status: dds_sample_lost_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_data_available_fn =
    ::std::option::Option<unsafe extern "C" fn(reader: dds_entity_t, arg: *mut ::std::ffi::c_void)>;
pub type dds_on_sample_rejected_fn = ::std::option::Option<
    unsafe extern "C" fn(
        reader: dds_entity_t,
        status: dds_sample_rejected_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_liveliness_changed_fn = ::std::option::Option<
    unsafe extern "C" fn(
        reader: dds_entity_t,
        status: dds_liveliness_changed_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_requested_deadline_missed_fn = ::std::option::Option<
    unsafe extern "C" fn(
        reader: dds_entity_t,
        status: dds_requested_deadline_missed_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_requested_incompatible_qos_fn = ::std::option::Option<
    unsafe extern "C" fn(
        reader: dds_entity_t,
        status: dds_requested_incompatible_qos_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_publication_matched_fn = ::std::option::Option<
    unsafe extern "C" fn(
        writer: dds_entity_t,
        status: dds_publication_matched_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
pub type dds_on_subscription_matched_fn = ::std::option::Option<
    unsafe extern "C" fn(
        reader: dds_entity_t,
        status: dds_subscription_matched_status_t,
        arg: *mut ::std::ffi::c_void,
    ),
>;
#[doc = " @brief DDS Listener struct (opaque)\n @ingroup listener"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_listener {
    _unused: [u8; 0],
}
#[doc = " @brief DDS Listener type (opaque)\n @ingroup listener"]
pub type dds_listener_t = dds_listener;
unsafe extern "C" {
    #[doc = " @ingroup listener\n @component listener_obj\n @brief Allocate memory and initializes to default values (@ref DDS_LUNSET) of a listener\n\n @param[in] arg optional pointer that will be passed on to the listener callbacks\n\n @returns Returns a pointer to the allocated memory for dds_listener_t structure."]
    pub fn dds_create_listener(arg: *mut ::std::ffi::c_void) -> *mut dds_listener_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener\n @component listener_obj\n @brief Delete the memory allocated to listener structure\n\n @param[in] listener pointer to the listener struct to delete"]
    pub fn dds_delete_listener(listener: *mut dds_listener_t);
}
unsafe extern "C" {
    #[doc = " @ingroup listener\n @component listener_obj\n @brief Reset the listener structure contents to @ref DDS_LUNSET\n\n @param[in,out] listener pointer to the listener struct to reset"]
    pub fn dds_reset_listener(listener: *mut dds_listener_t);
}
unsafe extern "C" {
    #[doc = " @ingroup listener\n @component listener_obj\n @brief Copy the listener callbacks from source to destination\n\n @param[in,out] dst The pointer to the destination listener structure, where the content is to copied\n @param[in] src The pointer to the source listener structure to be copied"]
    pub fn dds_copy_listener(dst: *mut dds_listener_t, src: *const dds_listener_t);
}
unsafe extern "C" {
    #[doc = " @ingroup listener\n @component listener_obj\n @brief Copy the listener callbacks from source to destination, unless already set\n\n Any listener callbacks already set in @p dst (including NULL) are skipped, only\n those set to DDS_LUNSET are copied from @p src.\n\n @param[in,out] dst The pointer to the destination listener structure, where the content is merged\n @param[in] src The pointer to the source listener structure to be copied"]
    pub fn dds_merge_listener(dst: *mut dds_listener_t, src: *const dds_listener_t);
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_available callback and argument in the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_data_available_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_data_available_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_on_readers callback and argument in the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_data_on_readers_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_data_on_readers_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the inconsistent_topic callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_inconsistent_topic_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_inconsistent_topic_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_changed callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_liveliness_changed_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_liveliness_changed_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_lost callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_liveliness_lost_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_liveliness_lost_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_deadline_missed callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_offered_deadline_missed_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_offered_deadline_missed_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_incompatible_qos callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_offered_incompatible_qos_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_offered_incompatible_qos_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the publication_matched callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_publication_matched_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_publication_matched_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_deadline_missed callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_requested_deadline_missed_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_requested_deadline_missed_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_incompatible_qos callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_requested_incompatible_qos_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_requested_incompatible_qos_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_lost callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_sample_lost_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_sample_lost_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_rejected callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_sample_rejected_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_sample_rejected_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the subscription_matched callback and argument in the listener structure.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer\n @param[in] arg callback argument that is passed uninterpreted to the callback function\n @param[in] reset_on_invoke whether or not the status should be cleared when the listener callback is invoked\n\n @retval DDS_RETCODE_OK success\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lset_subscription_matched_arg(
        listener: *mut dds_listener_t,
        callback: dds_on_subscription_matched_fn,
        arg: *mut ::std::ffi::c_void,
        reset_on_invoke: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the inconsistent_topic callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_inconsistent_topic_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_inconsistent_topic(
        listener: *mut dds_listener_t,
        callback: dds_on_inconsistent_topic_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_lost callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_liveliness_lost_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_liveliness_lost(
        listener: *mut dds_listener_t,
        callback: dds_on_liveliness_lost_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_deadline_missed callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_offered_deadline_missed_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_offered_deadline_missed(
        listener: *mut dds_listener_t,
        callback: dds_on_offered_deadline_missed_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the offered_incompatible_qos callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_offered_incompatible_qos_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_offered_incompatible_qos(
        listener: *mut dds_listener_t,
        callback: dds_on_offered_incompatible_qos_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_on_readers callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_data_on_readers_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_data_on_readers(
        listener: *mut dds_listener_t,
        callback: dds_on_data_on_readers_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_lost callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_sample_lost_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_sample_lost(listener: *mut dds_listener_t, callback: dds_on_sample_lost_fn);
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the data_available callback in the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n Equivalent to calling @ref dds_lset_data_available_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_data_available(
        listener: *mut dds_listener_t,
        callback: dds_on_data_available_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the sample_rejected callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_sample_rejected_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_sample_rejected(
        listener: *mut dds_listener_t,
        callback: dds_on_sample_rejected_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the liveliness_changed callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_liveliness_changed_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_liveliness_changed(
        listener: *mut dds_listener_t,
        callback: dds_on_liveliness_changed_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_deadline_missed callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_requested_deadline_missed_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_requested_deadline_missed(
        listener: *mut dds_listener_t,
        callback: dds_on_requested_deadline_missed_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the requested_incompatible_qos callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_requested_incompatible_qos_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_requested_incompatible_qos(
        listener: *mut dds_listener_t,
        callback: dds_on_requested_incompatible_qos_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the publication_matched callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_publication_matched_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_publication_matched(
        listener: *mut dds_listener_t,
        callback: dds_on_publication_matched_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_setters\n @component listener_obj\n @brief Set the subscription_matched callback in the listener structure.\n\n Equivalent to calling @ref dds_lset_subscription_matched_arg with arg set to the argument passed in\n dds_create_listener() and reset_on_invoke to true, and throwing away the result.\n\n @param[in,out] listener listener structure to update\n @param[in] callback the callback to set or a null pointer"]
    pub fn dds_lset_subscription_matched(
        listener: *mut dds_listener_t,
        callback: dds_on_subscription_matched_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_available callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_data_available_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_data_available_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_on_readers callback from the listener structure.\n\n @remark: See also the remark on @ref DDS_DATA_AVAILABLE_STATUS)\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_data_on_readers_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_data_on_readers_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the inconsistent_topic callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_inconsistent_topic_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_inconsistent_topic_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_changed callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_liveliness_changed_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_liveliness_changed_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_lost callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_liveliness_lost_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_liveliness_lost_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_deadline_missed callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_offered_deadline_missed_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_offered_deadline_missed_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_incompatible_qos callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_offered_incompatible_qos_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_offered_incompatible_qos_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the publication_matched callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_publication_matched_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_publication_matched_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the subscription_matched callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_requested_deadline_missed_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_requested_deadline_missed_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the requested_incompatible_qos callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_requested_incompatible_qos_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_requested_incompatible_qos_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_lost callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_sample_lost_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_sample_lost_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_rejected callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_sample_rejected_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_sample_rejected_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the subscription_matched callback from the listener structure.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer\n @param[out] arg Callback argument pointer; may be a null pointer\n @param[out] reset_on_invoke Whether the status is reset by listener invocation; may be a null pointer\n\n @retval DDS_RETCODE_OK if successful\n @retval DDS_RETCODE_BAD_PARAMETER listener is a null pointer"]
    pub fn dds_lget_subscription_matched_arg(
        listener: *const dds_listener_t,
        callback: *mut dds_on_subscription_matched_fn,
        arg: *mut *mut ::std::ffi::c_void,
        reset_on_invoke: *mut bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the inconsistent_topic callback from the listener structure\n\n Equivalent to calling @ref dds_lget_inconsistent_topic_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_inconsistent_topic(
        listener: *const dds_listener_t,
        callback: *mut dds_on_inconsistent_topic_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_lost callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_liveliness_lost_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_liveliness_lost(
        listener: *const dds_listener_t,
        callback: *mut dds_on_liveliness_lost_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_deadline_missed callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_offered_deadline_missed_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_offered_deadline_missed(
        listener: *const dds_listener_t,
        callback: *mut dds_on_offered_deadline_missed_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the offered_incompatible_qos callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_offered_incompatible_qos_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_offered_incompatible_qos(
        listener: *const dds_listener_t,
        callback: *mut dds_on_offered_incompatible_qos_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_on_readers callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_data_on_readers_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_data_on_readers(
        listener: *const dds_listener_t,
        callback: *mut dds_on_data_on_readers_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_lost callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_sample_lost_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_sample_lost(
        listener: *const dds_listener_t,
        callback: *mut dds_on_sample_lost_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the data_available callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_data_available_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_data_available(
        listener: *const dds_listener_t,
        callback: *mut dds_on_data_available_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the sample_rejected callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_sample_rejected_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_sample_rejected(
        listener: *const dds_listener_t,
        callback: *mut dds_on_sample_rejected_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the liveliness_changed callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_liveliness_changed_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_liveliness_changed(
        listener: *const dds_listener_t,
        callback: *mut dds_on_liveliness_changed_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the requested_deadline_missed callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_requested_deadline_missed_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_requested_deadline_missed(
        listener: *const dds_listener_t,
        callback: *mut dds_on_requested_deadline_missed_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the requested_incompatible_qos callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_requested_incompatible_qos_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_requested_incompatible_qos(
        listener: *const dds_listener_t,
        callback: *mut dds_on_requested_incompatible_qos_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the publication_matched callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_publication_matched_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_publication_matched(
        listener: *const dds_listener_t,
        callback: *mut dds_on_publication_matched_fn,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup listener_getters\n @component listener_obj\n @brief Get the subscription_matched callback from the listener structure.\n\n Equivalent to calling @ref dds_lget_subscription_matched_arg with arg and reset_on_invoke set to a null pointer and throwing away the result.\n\n @param[in] listener The pointer to the listener structure, where the callback will be retrieved from\n @param[out] callback Callback function; may be a null pointer"]
    pub fn dds_lget_subscription_matched(
        listener: *const dds_listener_t,
        callback: *mut dds_on_subscription_matched_fn,
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_typeinfo {
    _unused: [u8; 0],
}
#[doc = " @brief Dynamic Type\n @ingroup dynamic_type\n\n Representation of a dynamically created type. This struct has an opaque pointer\n to the type in the type system. During construction of the type (setting properties\n and adding members), the internal type has the state 'CONSTRUCTION'. Once the type\n is registered, the state is updated to 'RESOLVED' and the type cannot be modified.\n\n The 'ret' member of this struct holds the return code of operations performed on\n this type. In case this value is not DDS_RETCODE_OK, the type cannot be used for\n further processing (e.g. adding members, registering the type, etc.).\n"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_dynamic_type {
    pub x: [*mut ::std::ffi::c_void; 2usize],
    pub ret: dds_return_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_dynamic_type"][::std::mem::size_of::<dds_dynamic_type>() - 24usize];
    ["Alignment of dds_dynamic_type"][::std::mem::align_of::<dds_dynamic_type>() - 8usize];
    ["Offset of field: dds_dynamic_type::x"][::std::mem::offset_of!(dds_dynamic_type, x) - 0usize];
    ["Offset of field: dds_dynamic_type::ret"]
        [::std::mem::offset_of!(dds_dynamic_type, ret) - 16usize];
};
impl Default for dds_dynamic_type {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Dynamic Type\n @ingroup dynamic_type\n\n Representation of a dynamically created type. This struct has an opaque pointer\n to the type in the type system. During construction of the type (setting properties\n and adding members), the internal type has the state 'CONSTRUCTION'. Once the type\n is registered, the state is updated to 'RESOLVED' and the type cannot be modified.\n\n The 'ret' member of this struct holds the return code of operations performed on\n this type. In case this value is not DDS_RETCODE_OK, the type cannot be used for\n further processing (e.g. adding members, registering the type, etc.).\n"]
pub type dds_dynamic_type_t = dds_dynamic_type;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_NONE: dds_dynamic_type_kind = 0;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BOOLEAN: dds_dynamic_type_kind = 1;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BYTE: dds_dynamic_type_kind = 2;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT16: dds_dynamic_type_kind = 3;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT32: dds_dynamic_type_kind = 4;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT64: dds_dynamic_type_kind = 5;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT16: dds_dynamic_type_kind = 6;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT32: dds_dynamic_type_kind = 7;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT64: dds_dynamic_type_kind = 8;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_FLOAT32: dds_dynamic_type_kind = 9;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_FLOAT64: dds_dynamic_type_kind = 10;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_FLOAT128: dds_dynamic_type_kind = 11;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_INT8: dds_dynamic_type_kind = 12;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UINT8: dds_dynamic_type_kind = 13;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_CHAR8: dds_dynamic_type_kind = 14;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_CHAR16: dds_dynamic_type_kind = 15;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_STRING8: dds_dynamic_type_kind = 16;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_STRING16: dds_dynamic_type_kind = 17;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_ENUMERATION: dds_dynamic_type_kind = 18;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BITMASK: dds_dynamic_type_kind = 19;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_ALIAS: dds_dynamic_type_kind = 20;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_ARRAY: dds_dynamic_type_kind = 21;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_SEQUENCE: dds_dynamic_type_kind = 22;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_MAP: dds_dynamic_type_kind = 23;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_STRUCTURE: dds_dynamic_type_kind = 24;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_UNION: dds_dynamic_type_kind = 25;
pub const dds_dynamic_type_kind_DDS_DYNAMIC_BITSET: dds_dynamic_type_kind = 26;
#[doc = " @brief Dynamic Type Kind\n @ingroup dynamic_type\n\n Enumeration with the type kind values that can be used to create a dynamic type."]
pub type dds_dynamic_type_kind = ::std::ffi::c_uint;
#[doc = " @brief Dynamic Type Kind\n @ingroup dynamic_type\n\n Enumeration with the type kind values that can be used to create a dynamic type."]
pub use self::dds_dynamic_type_kind as dds_dynamic_type_kind_t;
pub const dds_dynamic_type_spec_kind_DDS_DYNAMIC_TYPE_KIND_UNSET: dds_dynamic_type_spec_kind = 0;
pub const dds_dynamic_type_spec_kind_DDS_DYNAMIC_TYPE_KIND_DEFINITION: dds_dynamic_type_spec_kind =
    1;
pub const dds_dynamic_type_spec_kind_DDS_DYNAMIC_TYPE_KIND_PRIMITIVE: dds_dynamic_type_spec_kind =
    2;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification kind"]
pub type dds_dynamic_type_spec_kind = ::std::ffi::c_uint;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification kind"]
pub use self::dds_dynamic_type_spec_kind as dds_dynamic_type_spec_kind_t;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification: a reference to dynamic type, which can be a primitive type\n kind (just the type kind enumeration value), or a (primitive or non-primitive) dynamic\n type reference."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_dynamic_type_spec {
    pub kind: dds_dynamic_type_spec_kind_t,
    pub type_: dds_dynamic_type_spec__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_dynamic_type_spec__bindgen_ty_1 {
    pub type_: dds_dynamic_type_t,
    pub primitive: dds_dynamic_type_kind_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_dynamic_type_spec__bindgen_ty_1"]
        [::std::mem::size_of::<dds_dynamic_type_spec__bindgen_ty_1>() - 24usize];
    ["Alignment of dds_dynamic_type_spec__bindgen_ty_1"]
        [::std::mem::align_of::<dds_dynamic_type_spec__bindgen_ty_1>() - 8usize];
    ["Offset of field: dds_dynamic_type_spec__bindgen_ty_1::type_"]
        [::std::mem::offset_of!(dds_dynamic_type_spec__bindgen_ty_1, type_) - 0usize];
    ["Offset of field: dds_dynamic_type_spec__bindgen_ty_1::primitive"]
        [::std::mem::offset_of!(dds_dynamic_type_spec__bindgen_ty_1, primitive) - 0usize];
};
impl Default for dds_dynamic_type_spec__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_dynamic_type_spec"][::std::mem::size_of::<dds_dynamic_type_spec>() - 32usize];
    ["Alignment of dds_dynamic_type_spec"]
        [::std::mem::align_of::<dds_dynamic_type_spec>() - 8usize];
    ["Offset of field: dds_dynamic_type_spec::kind"]
        [::std::mem::offset_of!(dds_dynamic_type_spec, kind) - 0usize];
    ["Offset of field: dds_dynamic_type_spec::type_"]
        [::std::mem::offset_of!(dds_dynamic_type_spec, type_) - 8usize];
};
impl Default for dds_dynamic_type_spec {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @ingroup dynamic_type\n\n Dynamic Type specification: a reference to dynamic type, which can be a primitive type\n kind (just the type kind enumeration value), or a (primitive or non-primitive) dynamic\n type reference."]
pub type dds_dynamic_type_spec_t = dds_dynamic_type_spec;
#[doc = " @brief Dynamic Type descriptor\n @ingroup dynamic_type\n\n Structure that holds the properties for creating a Dynamic Type. For each type kind,\n specific member fields are applicable and/or required."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_dynamic_type_descriptor {
    #[doc = "< Type kind. Required for all types."]
    pub kind: dds_dynamic_type_kind_t,
    #[doc = "< Type name. Required for struct, union, alias, enum, bitmask, array, sequence."]
    pub name: *const ::std::ffi::c_char,
    #[doc = "< Option base type for a struct, or (required) aliased type in case of an alias type."]
    pub base_type: dds_dynamic_type_spec_t,
    #[doc = "< Discriminator type for a union (required)."]
    pub discriminator_type: dds_dynamic_type_spec_t,
    #[doc = "< Number of bounds for array and sequence types. In case of sequence, this can be 0 (unbounded) or 1."]
    pub num_bounds: u32,
    #[doc = "< Bounds for array (0..num_bounds) and sequence (single value)"]
    pub bounds: *const u32,
    #[doc = "< Element type for array and sequence, required."]
    pub element_type: dds_dynamic_type_spec_t,
    #[doc = "< Key element type for map type"]
    pub key_element_type: dds_dynamic_type_spec_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_dynamic_type_descriptor"]
        [::std::mem::size_of::<dds_dynamic_type_descriptor>() - 160usize];
    ["Alignment of dds_dynamic_type_descriptor"]
        [::std::mem::align_of::<dds_dynamic_type_descriptor>() - 8usize];
    ["Offset of field: dds_dynamic_type_descriptor::kind"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, kind) - 0usize];
    ["Offset of field: dds_dynamic_type_descriptor::name"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, name) - 8usize];
    ["Offset of field: dds_dynamic_type_descriptor::base_type"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, base_type) - 16usize];
    ["Offset of field: dds_dynamic_type_descriptor::discriminator_type"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, discriminator_type) - 48usize];
    ["Offset of field: dds_dynamic_type_descriptor::num_bounds"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, num_bounds) - 80usize];
    ["Offset of field: dds_dynamic_type_descriptor::bounds"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, bounds) - 88usize];
    ["Offset of field: dds_dynamic_type_descriptor::element_type"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, element_type) - 96usize];
    ["Offset of field: dds_dynamic_type_descriptor::key_element_type"]
        [::std::mem::offset_of!(dds_dynamic_type_descriptor, key_element_type) - 128usize];
};
impl Default for dds_dynamic_type_descriptor {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Dynamic Type descriptor\n @ingroup dynamic_type\n\n Structure that holds the properties for creating a Dynamic Type. For each type kind,\n specific member fields are applicable and/or required."]
pub type dds_dynamic_type_descriptor_t = dds_dynamic_type_descriptor;
#[doc = " @brief Dynamic Type Member descriptor\n @ingroup dynamic_type\n\n Structure that holds the properities for adding a member to a dynamic type. Depending on\n the member type, different fields apply and are required."]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_dynamic_member_descriptor {
    #[doc = "< Name of the member, required"]
    pub name: *const ::std::ffi::c_char,
    #[doc = "< Identifier of the member, applicable for struct and union members. DDS_DYNAMIC_MEMBER_ID_AUTO can be used to indicate the next available id (current max + 1) should be used."]
    pub id: u32,
    #[doc = "< Member type, required for struct and union members."]
    pub type_: dds_dynamic_type_spec_t,
    #[doc = "< Default value for the member"]
    pub default_value: *mut ::std::ffi::c_char,
    #[doc = "< Member index, applicable for struct and union members. DDS_DYNAMIC_MEMBER_INDEX_START and DDS_DYNAMIC_MEMBER_INDEX_END can be used to add a member as first or last member in the parent type."]
    pub index: u32,
    #[doc = "< Number of labels, required for union members in case not default_label"]
    pub num_labels: u32,
    #[doc = "< Labels for a union member, 1..n required for union members in case not default_label"]
    pub labels: *mut i32,
    #[doc = "< Is default union member"]
    pub default_label: bool,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_dynamic_member_descriptor"]
        [::std::mem::size_of::<dds_dynamic_member_descriptor>() - 80usize];
    ["Alignment of dds_dynamic_member_descriptor"]
        [::std::mem::align_of::<dds_dynamic_member_descriptor>() - 8usize];
    ["Offset of field: dds_dynamic_member_descriptor::name"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, name) - 0usize];
    ["Offset of field: dds_dynamic_member_descriptor::id"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, id) - 8usize];
    ["Offset of field: dds_dynamic_member_descriptor::type_"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, type_) - 16usize];
    ["Offset of field: dds_dynamic_member_descriptor::default_value"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, default_value) - 48usize];
    ["Offset of field: dds_dynamic_member_descriptor::index"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, index) - 56usize];
    ["Offset of field: dds_dynamic_member_descriptor::num_labels"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, num_labels) - 60usize];
    ["Offset of field: dds_dynamic_member_descriptor::labels"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, labels) - 64usize];
    ["Offset of field: dds_dynamic_member_descriptor::default_label"]
        [::std::mem::offset_of!(dds_dynamic_member_descriptor, default_label) - 72usize];
};
impl Default for dds_dynamic_member_descriptor {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Dynamic Type Member descriptor\n @ingroup dynamic_type\n\n Structure that holds the properities for adding a member to a dynamic type. Depending on\n the member type, different fields apply and are required."]
pub type dds_dynamic_member_descriptor_t = dds_dynamic_member_descriptor;
pub const dds_dynamic_type_extensibility_DDS_DYNAMIC_TYPE_EXT_FINAL:
    dds_dynamic_type_extensibility = 0;
pub const dds_dynamic_type_extensibility_DDS_DYNAMIC_TYPE_EXT_APPENDABLE:
    dds_dynamic_type_extensibility = 1;
pub const dds_dynamic_type_extensibility_DDS_DYNAMIC_TYPE_EXT_MUTABLE:
    dds_dynamic_type_extensibility = 2;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type extensibility"]
pub type dds_dynamic_type_extensibility = ::std::ffi::c_uint;
#[doc = "< The member ID are assigned sequential"]
pub const dds_dynamic_type_autoid_DDS_DYNAMIC_TYPE_AUTOID_SEQUENTIAL: dds_dynamic_type_autoid = 0;
#[doc = "< The member ID is the hash of the member's name"]
pub const dds_dynamic_type_autoid_DDS_DYNAMIC_TYPE_AUTOID_HASH: dds_dynamic_type_autoid = 1;
#[doc = " @ingroup dynamic_type\n\n Dynamic Type automatic member ID kind"]
pub type dds_dynamic_type_autoid = ::std::ffi::c_uint;
pub const dds_dynamic_type_enum_value_kind_DDS_DYNAMIC_ENUM_LITERAL_VALUE_NEXT_AVAIL:
    dds_dynamic_type_enum_value_kind = 0;
pub const dds_dynamic_type_enum_value_kind_DDS_DYNAMIC_ENUM_LITERAL_VALUE_EXPLICIT:
    dds_dynamic_type_enum_value_kind = 1;
#[doc = " @brief Enum value kind\n\n see @ref dds_dynamic_enum_literal_value"]
pub type dds_dynamic_type_enum_value_kind = ::std::ffi::c_uint;
#[doc = " @ingroup dynamic_type\n\n Dynamic Enumeration type literal value kind and value. Can be set to NEXT_AVAIL to indicate\n that the current max value + 1 should be used for this member, or an explicit value can be\n provided."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_dynamic_enum_literal_value {
    pub value_kind: dds_dynamic_type_enum_value_kind,
    pub value: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_dynamic_enum_literal_value"]
        [::std::mem::size_of::<dds_dynamic_enum_literal_value>() - 8usize];
    ["Alignment of dds_dynamic_enum_literal_value"]
        [::std::mem::align_of::<dds_dynamic_enum_literal_value>() - 4usize];
    ["Offset of field: dds_dynamic_enum_literal_value::value_kind"]
        [::std::mem::offset_of!(dds_dynamic_enum_literal_value, value_kind) - 0usize];
    ["Offset of field: dds_dynamic_enum_literal_value::value"]
        [::std::mem::offset_of!(dds_dynamic_enum_literal_value, value) - 4usize];
};
impl Default for dds_dynamic_enum_literal_value {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @ingroup dynamic_type\n\n Dynamic Enumeration type literal value kind and value. Can be set to NEXT_AVAIL to indicate\n that the current max value + 1 should be used for this member, or an explicit value can be\n provided."]
pub type dds_dynamic_enum_literal_value_t = dds_dynamic_enum_literal_value;
unsafe extern "C" {
    #[doc = " @brief Create a new Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n Creates a new Dynamic Type, using the properties that are set in the type descriptor.\n In case these properties include a base-type, element-type or discriminator type, the\n ownership of these types is transferred to the newly created type.\n\n @param[in] entity A DDS entity (any entity, except the pseudo root entity identified by DDS_CYCLONEDDS_HANDLE). This entity is used to get the type library of the entity's domain, to add the type to.\n @param[in] descriptor The Dynamic Type descriptor.\n\n @return dds_dynamic_type_t A Dynamic Type reference for the created type.\n\n @retval DDS_RETCODE_OK\n            The type is created successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_UNSUPPORTED\n            The provided type kind is not supported.\n @retval DDS_RETCODE_OUT_OF_RESOURCES\n            Not enough resources to create the type."]
    pub fn dds_dynamic_type_create(
        entity: dds_entity_t,
        descriptor: dds_dynamic_type_descriptor_t,
    ) -> dds_dynamic_type_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the extensibility of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the extensibility for. This can be a structure, union, bitmask or enum type. This type must be in the CONSTRUCTING state and have no members added.\n @param[in] extensibility The extensibility to set (@ref dds_dynamic_type_extensibility).\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The extensibility is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_set_extensibility(
        type_: *mut dds_dynamic_type_t,
        extensibility: dds_dynamic_type_extensibility,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the bit-bound of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the bit-bound for. This can be a bitmask or enum type.\n @param[in] bit_bound The bit-bound value to set, in the (including) range 1..32 for enum and 1..64 for bitmask.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The bit-bound is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_set_bit_bound(
        type_: *mut dds_dynamic_type_t,
        bit_bound: u16,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the nested flag of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the nested flag for. This can be a structure or union type.\n @param[in] is_nested Whether the nested flag is set.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The flag is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_set_nested(
        type_: *mut dds_dynamic_type_t,
        is_nested: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the auto-id kind of a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type to set the auto-id kind for. This can be a structure or union type.\n @param[in] value The auto-id kind, see @ref dds_dynamic_type_autoid.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The value is set successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_set_autoid(
        type_: *mut dds_dynamic_type_t,
        value: dds_dynamic_type_autoid,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Add a member to a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function is used to add a member to a Dynamic Type. The parent type can be a structure,\n union, enumeration or bitmask type. The parent type the member is added to takes over the\n ownership of the member type and dereferences the member type when it is deleted.\n (@see dds_dynamic_type_ref for re-using a type)\n\n @param[in,out] type The Dynamic type to add the member to.\n @param[in] member_descriptor The member descriptor that has the properties of the member to add, @see dds_dynamic_member_descriptor.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The member is added successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type (non the member type) is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_add_member(
        type_: *mut dds_dynamic_type_t,
        member_descriptor: dds_dynamic_member_descriptor_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Add a literal to a Dynamic Enum Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function is used to add a literal to a Dynamic Enum Type.\n\n @param[in,out] type The Dynamic enum type to add the member to.\n @param[in] name The name of the literal to add.\n @param[in] value The value for the literal (@see dds_dynamic_enum_literal_value).\n @param[in] is_default Indicates if the literal if default for the enum.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The member is added successfully\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_add_enum_literal(
        type_: *mut dds_dynamic_type_t,
        name: *const ::std::ffi::c_char,
        value: dds_dynamic_enum_literal_value_t,
        is_default: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Add a field to a Dynamic bitmask Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function is used to add a field to a Dynamic bitmask Type.\n\n @param[in,out] type The Dynamic bitmask type to add the field to.\n @param[in] name The name of the field to add.\n @param[in] position The position for the field (@see DDS_DYNAMIC_BITMASK_POSITION_AUTO).\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The member is added successfully\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_add_bitmask_field(
        type_: *mut dds_dynamic_type_t,
        name: *const ::std::ffi::c_char,
        position: u16,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the key flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the key flag for (must be a structure type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_key Indicates whether the key flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_member_set_key(
        type_: *mut dds_dynamic_type_t,
        member_id: u32,
        is_key: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the optional flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the optional flag for (must be a structure type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_optional Indicates whether the optional flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_member_set_optional(
        type_: *mut dds_dynamic_type_t,
        member_id: u32,
        is_optional: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the external flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the external flag for (must be a structure or union type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_external Indicates whether the external flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_member_set_external(
        type_: *mut dds_dynamic_type_t,
        member_id: u32,
        is_external: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the hash ID flag and hash field name for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the flag and hash-name for (must be a structure or union type).\n @param[in] member_id The ID of the member to set the flag and hash-name for.\n @param[in] hash_member_name The hash-name that should be used for calculating the member ID.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_member_set_hashid(
        type_: *mut dds_dynamic_type_t,
        member_id: u32,
        hash_member_name: *const ::std::ffi::c_char,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set the must-understand flag for a Dynamic Type member\n @ingroup dynamic_type\n @component dynamic_type_api\n\n @param[in,out] type Dynamic Type that contains the member to set the must-understand flag for (must be a structure type).\n @param[in] member_id The ID of the member to set the flag for.\n @param[in] is_must_understand Indicates whether the must-understand flag should be set or cleared.\n\n @return dds_return_t Return code. In case of an error, the return code field in the provided type is also set to this value.\n\n @retval DDS_RETCODE_OK\n            The flag is updated successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_member_set_must_understand(
        type_: *mut dds_dynamic_type_t,
        member_id: u32,
        is_must_understand: bool,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Registers a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n This function registers a dynamic type, making it immutable and finalizing\n its definition. A type that is registered, get the state 'RESOLVED' and is\n stored in the type library.\n\n @param[in] type A pointer to the dynamic type to be registered.\n @param[out] type_info A pointer to a pointer to a ddsi_typeinfo structure that holds information about the registered type.\n\n @return dds_return_t Return code.\n\n @retval DDS_RETCODE_OK\n            The type was successfully registered.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state.\n @retval DDS_RETCODE_OUT_OF_RESOURCES\n            Not enough resources to create the type."]
    pub fn dds_dynamic_type_register(
        type_: *mut dds_dynamic_type_t,
        type_info: *mut *mut ddsi_typeinfo,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Reference a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n References a Dynamic Type and increases the ref-count of the type. This\n can e.g. be used to re-use a subtype when constructing a type.\n\n @param type Dynamic Type to reference\n\n @return dds_dynamic_type_t Dynamic Type with increased ref-count"]
    pub fn dds_dynamic_type_ref(type_: *mut dds_dynamic_type_t) -> dds_dynamic_type_t;
}
unsafe extern "C" {
    #[doc = " @brief Unref a Dynamic Type\n\n @param type The Dynamic Type to dereference.\n\n @return dds_return_t Return code.\n\n @retval DDS_RETCODE_OK\n            The type was successfully registered.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One or more of the provided parameters are invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n            The provided type is not in the CONSTRUCTING state."]
    pub fn dds_dynamic_type_unref(type_: *mut dds_dynamic_type_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Duplicate a Dynamic Type\n @ingroup dynamic_type\n @component dynamic_type_api\n\n Duplicates a Dynamic Type. Dependencies of the type are not duplicated,\n but their ref-count is increased.\n\n @param src The type to duplicate.\n\n @return dds_dynamic_type_t A duplicate of the source type."]
    pub fn dds_dynamic_type_dup(src: *const dds_dynamic_type_t) -> dds_dynamic_type_t;
}
unsafe extern "C" {
    #[doc = " @brief Request a loan from an entity.\n @ingroup loan\n\n Borrow a sample from the entity, which currently must be a writer. This sample\n can then be returned using @ref dds_return_loan or can be used to publish data\n using @ref dds_write or @ref dds_writedispose.\n\n If the topic type has a fixed size (and so no internal pointers) and a PSMX interface is configured,\n the memory will be borrowed from the PSMX implementation, which allows Cyclone to avoid copies\n and/or serialization if there is no need for sending the data over a network interface or storing it\n in the WHC.\n\n @param[in] entity The entity to request loans from.\n @param[out] sample Where to store the address of the loaned sample.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One or more parameters are invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_ERROR\n             An unfortunate incident occurred."]
    pub fn dds_request_loan(
        entity: dds_entity_t,
        sample: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Return loaned samples to a reader or writer\n @ingroup loan\n @component read_data\n\n Used to release middleware-owned samples returned by a read/take operation and samples\n borrowed from the writer using @ref dds_request_loan.\n\n For reader loans, the @ref dds_read and @ref dds_take operations implicitly return\n outstanding loans referenced by the sample array passed in.  Looping until no data is\n returned therefore often eliminates the need for calling this function.\n\n For writer loans, a @ref dds_write operation takes over the loan.  Consequently, this\n function is only needed in the exceptional case where a loan is taken but ultimately\n not used to publish data.\n\n @param[in] entity The entity that the loan(s) belong to. If a read or query condition is passed in for the entity, the reader for that condition is used.\n @param[in,out] buf An array of (pointers to) samples, some or all of which will be set to null pointers.\n @param[in] bufsz The size of the buffer.\n\n @returns A dds_return_t indicating success or failure\n @retval DDS_RETCODE_OK\n             - the operation was successful\n             - a no-op if bufsz <= 0, otherwise\n             - buf[0] .. buf[k-1] were successfully returned loans, k = bufsz or buf[k] = null\n             - buf[0] is set to a null pointer, buf[k > 0] undefined\n @retval DDS_RETCODE_BAD_PARAMETER\n             - the entity parameter is not a valid parameter\n             - buf is null, or bufsz > 0 and buf[0] = null\n             - a non-loan was encountered (all loans are still returned)\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             - bufsz > 0 and buf[0] != null but not a loan, nothing done\n @retval DDS_RETCODE_UNSUPPORTED\n             - (for writer loans) invoked on a writer not supporting loans.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             - the operation is invoked on an inappropriate object."]
    pub fn dds_return_loan(
        entity: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        bufsz: i32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup loan\n @component read_data\n @brief Check if a shared memory is available to reader/writer.\n\n @note dds_request_loan_of_size can be used if and only if\n dds_is_shared_memory_available returns true.\n\n @param[in] entity the handle of the entity\n\n @returns true if shared memory is available, false otherwise"]
    pub fn dds_is_shared_memory_available(entity: dds_entity_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @brief Request a loan of a specified size from an entity.\n @ingroup loan\n\n Borrow a sample of a specified size from the entity, which currently must be a\n writer. This sample can then be returned using @ref dds_return_loan or can be\n used to publish data using @ref dds_write or @ref dds_writedispose.\n\n @note The function can only be used if dds_is_shared_memory_available is\n       true for the writer.\n\n @param[in] writer The entity to request loans from.\n @param[in] size the requested loan size\n @param[out] sample Where to store the address of the loaned sample.\n\n @returns DDS_RETCODE_OK if successful, DDS_RETCODE_ERROR otherwise"]
    pub fn dds_request_loan_of_size(
        writer: dds_entity_t,
        size: usize,
        sample: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup deprecated\n @component read_data\n @brief Check if a Loan is available to reader/writer\n @deprecated Use @ref dds_request_loan instead, returns 0 if loan is not available\n\n The loan is available if the shared memory is enabled and all the constraints\n to enable shared memory are met and the type is fixed\n @note dds_loan_sample can be used if and only if\n dds_is_loan_available returns true.\n\n @param[in] entity the handle of the entity\n\n @returns loan available or not"]
    pub fn dds_is_loan_available(entity: dds_entity_t) -> bool;
}
unsafe extern "C" {
    #[doc = " @ingroup deprecated\n @component read_data\n @brief Loan a sample from the writer.\n @deprecated Use @ref dds_request_loan\n @note This function is to be used with dds_write to publish the loaned\n sample.\n @note The function can only be used if dds_is_loan_available is\n       true for the writer.\n\n @param[in] writer the writer to loan the buffer from\n @param[out] sample the loaned sample\n\n @returns DDS_RETCODE_OK if successful, DDS_RETCODE_ERROR otherwise"]
    pub fn dds_loan_sample(
        writer: dds_entity_t,
        sample: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
pub const dds_qos_kind_DDS_PARTICIPANT_QOS: dds_qos_kind = 0;
pub const dds_qos_kind_DDS_PUBLISHER_QOS: dds_qos_kind = 1;
pub const dds_qos_kind_DDS_SUBSCRIBER_QOS: dds_qos_kind = 2;
pub const dds_qos_kind_DDS_TOPIC_QOS: dds_qos_kind = 3;
pub const dds_qos_kind_DDS_READER_QOS: dds_qos_kind = 4;
pub const dds_qos_kind_DDS_WRITER_QOS: dds_qos_kind = 5;
#[doc = " @brief All kind of entities for which qos can be stored in Profile.\n @ingroup qos_provider\n @component qos_provider_api"]
pub type dds_qos_kind = ::std::ffi::c_uint;
#[doc = " @brief All kind of entities for which qos can be stored in Profile.\n @ingroup qos_provider\n @component qos_provider_api"]
pub use self::dds_qos_kind as dds_qos_kind_t;
#[doc = " @brief Sample structure of the Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_qos_provider {
    _unused: [u8; 0],
}
pub type dds_qos_provider_t = dds_qos_provider;
unsafe extern "C" {
    #[doc = " @brief Initialize Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api\n\n Create dds_qos_provider with provided system definition file path.\n\n @param[in] path - String that contains system definition inself or path to system defenition file.\n @param[in,out] provider - Pointer to the Qos Provider structure.\n\n @return a DDS return code"]
    pub fn dds_create_qos_provider(
        path: *const ::std::ffi::c_char,
        provider: *mut *mut dds_qos_provider_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Initialize Qos Provider with certain scope.\n @ingroup qos_provider\n @component qos_provider_api\n\n Create dds_qos_provider with provided system definition file path and scope.\n\n @param[in] path - String that contains system definition inself or path to system defenition file.\n @param[in,out] provider - Pointer to the Qos Provider structure.\n @param[in] key - String that contains pattern of interested qos from `path` in format '<library name>::<profile name>::<entity name>'.\n\n @return a DDS return code"]
    pub fn dds_create_qos_provider_scope(
        path: *const ::std::ffi::c_char,
        provider: *mut *mut dds_qos_provider_t,
        key: *const ::std::ffi::c_char,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get Qos from Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api\n\n Provide access to dds_qos_t from dds_qos_provider by full key and type of qos entity.\n\n @param[in] provider - Pointer to the Qos Provider structure.\n @param[in] type - Type of entity which Qos to get.\n @param[in] key - Full qualify name of Qos to get in format '<library name>::<profile name>::<entity name>'.\n @param[in,out] qos - Pointer to the Qos structure.\n\n @return a DDS return code"]
    pub fn dds_qos_provider_get_qos(
        provider: *const dds_qos_provider_t,
        type_: dds_qos_kind_t,
        key: *const ::std::ffi::c_char,
        qos: *mut *const dds_qos_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Finalize Qos Provider.\n @ingroup qos_provider\n @component qos_provider_api\n\n Release resources allocated by dds_qos_provider.\n\n @param[in] provider - Pointer to the Qos Provider structure."]
    pub fn dds_delete_qos_provider(provider: *mut dds_qos_provider_t);
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_typeid {
    _unused: [u8; 0],
}
#[doc = " @brief DDS Type Identifier (XTypes)\n @ingroup dds\n DOC_TODO"]
pub type dds_typeid_t = ddsi_typeid;
#[doc = " @brief DDS Type Information (XTypes)\n @ingroup dds\n DOC_TODO"]
pub type dds_typeinfo_t = ddsi_typeinfo;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_typeobj {
    _unused: [u8; 0],
}
#[doc = " @brief DDS Type Object (XTypes)\n @ingroup dds\n DOC_TODO"]
pub type dds_typeobj_t = ddsi_typeobj;
#[doc = " @brief DDSI parameter list\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_plist {
    _unused: [u8; 0],
}
#[doc = " @anchor ddsi_sertype\n @brief DDSI sertype\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_sertype {
    _unused: [u8; 0],
}
#[doc = " @anchor ddsi_serdata\n @brief DDSI Serdata\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_serdata {
    _unused: [u8; 0],
}
#[doc = " @brief DDSI Config\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_config {
    _unused: [u8; 0],
}
#[doc = "< See @ref DDS_INCONSISTENT_TOPIC_STATUS"]
pub const dds_status_id_DDS_INCONSISTENT_TOPIC_STATUS_ID: dds_status_id = 0;
#[doc = "< See @ref DDS_OFFERED_DEADLINE_MISSED_STATUS"]
pub const dds_status_id_DDS_OFFERED_DEADLINE_MISSED_STATUS_ID: dds_status_id = 1;
#[doc = "< See @ref DDS_REQUESTED_DEADLINE_MISSED_STATUS"]
pub const dds_status_id_DDS_REQUESTED_DEADLINE_MISSED_STATUS_ID: dds_status_id = 2;
#[doc = "< See @ref DDS_OFFERED_INCOMPATIBLE_QOS_STATUS"]
pub const dds_status_id_DDS_OFFERED_INCOMPATIBLE_QOS_STATUS_ID: dds_status_id = 3;
#[doc = "< See @ref DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS"]
pub const dds_status_id_DDS_REQUESTED_INCOMPATIBLE_QOS_STATUS_ID: dds_status_id = 4;
#[doc = "< See @ref DDS_SAMPLE_LOST_STATUS"]
pub const dds_status_id_DDS_SAMPLE_LOST_STATUS_ID: dds_status_id = 5;
#[doc = "< See @ref DDS_SAMPLE_REJECTED_STATUS"]
pub const dds_status_id_DDS_SAMPLE_REJECTED_STATUS_ID: dds_status_id = 6;
#[doc = "< See @ref DDS_DATA_ON_READERS_STATUS"]
pub const dds_status_id_DDS_DATA_ON_READERS_STATUS_ID: dds_status_id = 7;
#[doc = "< See @ref DDS_DATA_AVAILABLE_STATUS"]
pub const dds_status_id_DDS_DATA_AVAILABLE_STATUS_ID: dds_status_id = 8;
#[doc = "< See @ref DDS_LIVELINESS_LOST_STATUS"]
pub const dds_status_id_DDS_LIVELINESS_LOST_STATUS_ID: dds_status_id = 9;
#[doc = "< See @ref DDS_LIVELINESS_CHANGED_STATUS"]
pub const dds_status_id_DDS_LIVELINESS_CHANGED_STATUS_ID: dds_status_id = 10;
#[doc = "< See @ref DDS_PUBLICATION_MATCHED_STATUS"]
pub const dds_status_id_DDS_PUBLICATION_MATCHED_STATUS_ID: dds_status_id = 11;
#[doc = "< See @ref DDS_SUBSCRIPTION_MATCHED_STATUS"]
pub const dds_status_id_DDS_SUBSCRIPTION_MATCHED_STATUS_ID: dds_status_id = 12;
#[doc = " @defgroup entity_status (Entity Status)\n @ingroup entity\n All entities have a set of \"status conditions\"\n (following the DCPS spec), read peeks, take reads & resets (analogously to read &\n take operations on reader). The \"mask\" allows operating only on a subset of the statuses.\n Enabled status analogously to DCPS spec.\n @{\n/\n/**\n @brief These identifiers are used to generate the bitshifted identifiers.\n By using bitflags instead of these IDs the process of building status masks is\n simplified to using simple binary OR operations.\n DOC_TODO fix the refs"]
pub type dds_status_id = ::std::ffi::c_uint;
#[doc = " @defgroup entity_status (Entity Status)\n @ingroup entity\n All entities have a set of \"status conditions\"\n (following the DCPS spec), read peeks, take reads & resets (analogously to read &\n take operations on reader). The \"mask\" allows operating only on a subset of the statuses.\n Enabled status analogously to DCPS spec.\n @{\n/\n/**\n @brief These identifiers are used to generate the bitshifted identifiers.\n By using bitflags instead of these IDs the process of building status masks is\n simplified to using simple binary OR operations.\n DOC_TODO fix the refs"]
pub use self::dds_status_id as dds_status_id_t;
#[doc = "<DataReader has already accessed the sample by read"]
pub const dds_sample_state_DDS_SST_READ: dds_sample_state = 1;
#[doc = "<DataReader has not accessed the sample before"]
pub const dds_sample_state_DDS_SST_NOT_READ: dds_sample_state = 2;
#[doc = " Read state for a data value"]
pub type dds_sample_state = ::std::ffi::c_uint;
#[doc = " Read state for a data value"]
pub use self::dds_sample_state as dds_sample_state_t;
#[doc = " DataReader is accessing the sample for the first time when the instance is alive"]
pub const dds_view_state_DDS_VST_NEW: dds_view_state = 4;
#[doc = " DataReader accessed the sample before"]
pub const dds_view_state_DDS_VST_OLD: dds_view_state = 8;
#[doc = " View state of an instance relative to the samples"]
pub type dds_view_state = ::std::ffi::c_uint;
#[doc = " View state of an instance relative to the samples"]
pub use self::dds_view_state as dds_view_state_t;
#[doc = " Samples received for the instance from the live data writers"]
pub const dds_instance_state_DDS_IST_ALIVE: dds_instance_state = 16;
#[doc = " Instance was explicitly disposed by the data writer"]
pub const dds_instance_state_DDS_IST_NOT_ALIVE_DISPOSED: dds_instance_state = 32;
#[doc = " Instance has been declared as not alive by data reader as there are no live data writers writing that instance"]
pub const dds_instance_state_DDS_IST_NOT_ALIVE_NO_WRITERS: dds_instance_state = 64;
#[doc = " Defines the state of the instance"]
pub type dds_instance_state = ::std::ffi::c_uint;
#[doc = " Defines the state of the instance"]
pub use self::dds_instance_state as dds_instance_state_t;
#[doc = " Contains information about the associated data value"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_sample_info {
    #[doc = " Sample state"]
    pub sample_state: dds_sample_state_t,
    #[doc = " View state"]
    pub view_state: dds_view_state_t,
    #[doc = " Instance state"]
    pub instance_state: dds_instance_state_t,
    #[doc = " Indicates whether there is a data associated with a sample\n  - true, indicates the data is valid\n  - false, indicates the data is invalid, no data to read"]
    pub valid_data: bool,
    #[doc = " timestamp of a data instance when it is written"]
    pub source_timestamp: dds_time_t,
    #[doc = " handle to the data instance"]
    pub instance_handle: dds_instance_handle_t,
    #[doc = " handle to the publisher"]
    pub publication_handle: dds_instance_handle_t,
    #[doc = " count of instance state change from NOT_ALIVE_DISPOSED to ALIVE"]
    pub disposed_generation_count: u32,
    #[doc = " count of instance state change from NOT_ALIVE_NO_WRITERS to ALIVE"]
    pub no_writers_generation_count: u32,
    #[doc = " indicates the number of samples of the same instance that follow the current one in the collection"]
    pub sample_rank: u32,
    #[doc = " difference in generations between the sample and most recent sample of the same instance that appears in the returned collection"]
    pub generation_rank: u32,
    #[doc = " difference in generations between the sample and most recent sample of the same instance when read/take was called"]
    pub absolute_generation_rank: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_sample_info"][::std::mem::size_of::<dds_sample_info>() - 64usize];
    ["Alignment of dds_sample_info"][::std::mem::align_of::<dds_sample_info>() - 8usize];
    ["Offset of field: dds_sample_info::sample_state"]
        [::std::mem::offset_of!(dds_sample_info, sample_state) - 0usize];
    ["Offset of field: dds_sample_info::view_state"]
        [::std::mem::offset_of!(dds_sample_info, view_state) - 4usize];
    ["Offset of field: dds_sample_info::instance_state"]
        [::std::mem::offset_of!(dds_sample_info, instance_state) - 8usize];
    ["Offset of field: dds_sample_info::valid_data"]
        [::std::mem::offset_of!(dds_sample_info, valid_data) - 12usize];
    ["Offset of field: dds_sample_info::source_timestamp"]
        [::std::mem::offset_of!(dds_sample_info, source_timestamp) - 16usize];
    ["Offset of field: dds_sample_info::instance_handle"]
        [::std::mem::offset_of!(dds_sample_info, instance_handle) - 24usize];
    ["Offset of field: dds_sample_info::publication_handle"]
        [::std::mem::offset_of!(dds_sample_info, publication_handle) - 32usize];
    ["Offset of field: dds_sample_info::disposed_generation_count"]
        [::std::mem::offset_of!(dds_sample_info, disposed_generation_count) - 40usize];
    ["Offset of field: dds_sample_info::no_writers_generation_count"]
        [::std::mem::offset_of!(dds_sample_info, no_writers_generation_count) - 44usize];
    ["Offset of field: dds_sample_info::sample_rank"]
        [::std::mem::offset_of!(dds_sample_info, sample_rank) - 48usize];
    ["Offset of field: dds_sample_info::generation_rank"]
        [::std::mem::offset_of!(dds_sample_info, generation_rank) - 52usize];
    ["Offset of field: dds_sample_info::absolute_generation_rank"]
        [::std::mem::offset_of!(dds_sample_info, absolute_generation_rank) - 56usize];
};
impl Default for dds_sample_info {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " Contains information about the associated data value"]
pub type dds_sample_info_t = dds_sample_info;
#[doc = " @brief Sample structure of the Builtin topic DcpsParticipant.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_builtintopic_participant {
    #[doc = "< The GUID that uniquely identifies the participant on the network"]
    pub key: dds_guid_t,
    #[doc = "< The QoS of the participant"]
    pub qos: *mut dds_qos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_builtintopic_participant"]
        [::std::mem::size_of::<dds_builtintopic_participant>() - 24usize];
    ["Alignment of dds_builtintopic_participant"]
        [::std::mem::align_of::<dds_builtintopic_participant>() - 8usize];
    ["Offset of field: dds_builtintopic_participant::key"]
        [::std::mem::offset_of!(dds_builtintopic_participant, key) - 0usize];
    ["Offset of field: dds_builtintopic_participant::qos"]
        [::std::mem::offset_of!(dds_builtintopic_participant, qos) - 16usize];
};
impl Default for dds_builtintopic_participant {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Sample structure of the Builtin topic DcpsParticipant.\n @ingroup builtintopic"]
pub type dds_builtintopic_participant_t = dds_builtintopic_participant;
#[doc = " @brief Structure of a key in the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_builtintopic_topic_key {
    #[doc = "< 16-byte unique identifier"]
    pub d: [::std::ffi::c_uchar; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_builtintopic_topic_key"]
        [::std::mem::size_of::<dds_builtintopic_topic_key>() - 16usize];
    ["Alignment of dds_builtintopic_topic_key"]
        [::std::mem::align_of::<dds_builtintopic_topic_key>() - 1usize];
    ["Offset of field: dds_builtintopic_topic_key::d"]
        [::std::mem::offset_of!(dds_builtintopic_topic_key, d) - 0usize];
};
#[doc = " @brief Structure of a key in the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
pub type dds_builtintopic_topic_key_t = dds_builtintopic_topic_key;
#[doc = " @brief Sample structure of the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_builtintopic_topic {
    #[doc = "< The GUID that uniquely identifies the topic on the network"]
    pub key: dds_builtintopic_topic_key_t,
    #[doc = "< The name of the topic, potentially unicode."]
    pub topic_name: *mut ::std::ffi::c_char,
    #[doc = "< The name of the type, potentially unicode."]
    pub type_name: *mut ::std::ffi::c_char,
    #[doc = "< The QoS of the topic"]
    pub qos: *mut dds_qos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_builtintopic_topic"][::std::mem::size_of::<dds_builtintopic_topic>() - 40usize];
    ["Alignment of dds_builtintopic_topic"]
        [::std::mem::align_of::<dds_builtintopic_topic>() - 8usize];
    ["Offset of field: dds_builtintopic_topic::key"]
        [::std::mem::offset_of!(dds_builtintopic_topic, key) - 0usize];
    ["Offset of field: dds_builtintopic_topic::topic_name"]
        [::std::mem::offset_of!(dds_builtintopic_topic, topic_name) - 16usize];
    ["Offset of field: dds_builtintopic_topic::type_name"]
        [::std::mem::offset_of!(dds_builtintopic_topic, type_name) - 24usize];
    ["Offset of field: dds_builtintopic_topic::qos"]
        [::std::mem::offset_of!(dds_builtintopic_topic, qos) - 32usize];
};
impl Default for dds_builtintopic_topic {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Sample structure of the Builtin topic DcpsTopic.\n @ingroup builtintopic"]
pub type dds_builtintopic_topic_t = dds_builtintopic_topic;
#[doc = " @brief Sample structure of the Builtin topic DcpsPublication and DcpsSubscription.\n @ingroup builtintopic"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_builtintopic_endpoint {
    #[doc = "< The GUID that uniquely identifies the endpoint on the network"]
    pub key: dds_guid_t,
    #[doc = "< The GUID of the participant this endpoint belongs to."]
    pub participant_key: dds_guid_t,
    #[doc = "< The instance handle the participant assigned to this enpoint."]
    pub participant_instance_handle: dds_instance_handle_t,
    #[doc = "< The name of the topic, potentially unicode."]
    pub topic_name: *mut ::std::ffi::c_char,
    #[doc = "< The name of the type, potentially unicode."]
    pub type_name: *mut ::std::ffi::c_char,
    #[doc = "< The QoS of the endpoint"]
    pub qos: *mut dds_qos_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_builtintopic_endpoint"]
        [::std::mem::size_of::<dds_builtintopic_endpoint>() - 64usize];
    ["Alignment of dds_builtintopic_endpoint"]
        [::std::mem::align_of::<dds_builtintopic_endpoint>() - 8usize];
    ["Offset of field: dds_builtintopic_endpoint::key"]
        [::std::mem::offset_of!(dds_builtintopic_endpoint, key) - 0usize];
    ["Offset of field: dds_builtintopic_endpoint::participant_key"]
        [::std::mem::offset_of!(dds_builtintopic_endpoint, participant_key) - 16usize];
    ["Offset of field: dds_builtintopic_endpoint::participant_instance_handle"]
        [::std::mem::offset_of!(dds_builtintopic_endpoint, participant_instance_handle) - 32usize];
    ["Offset of field: dds_builtintopic_endpoint::topic_name"]
        [::std::mem::offset_of!(dds_builtintopic_endpoint, topic_name) - 40usize];
    ["Offset of field: dds_builtintopic_endpoint::type_name"]
        [::std::mem::offset_of!(dds_builtintopic_endpoint, type_name) - 48usize];
    ["Offset of field: dds_builtintopic_endpoint::qos"]
        [::std::mem::offset_of!(dds_builtintopic_endpoint, qos) - 56usize];
};
impl Default for dds_builtintopic_endpoint {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Sample structure of the Builtin topic DcpsPublication and DcpsSubscription.\n @ingroup builtintopic"]
pub type dds_builtintopic_endpoint_t = dds_builtintopic_endpoint;
unsafe extern "C" {
    #[doc = " @brief Enable entity.\n @ingroup entity\n @component generic_entity\n\n @note Delayed entity enabling is not supported yet (CHAM-96).\n\n This operation enables the dds_entity_t. Created dds_entity_t objects can start in\n either an enabled or disabled state. This is controlled by the value of the\n entityfactory policy on the corresponding parent entity for the given\n entity. Enabled entities are immediately activated at creation time meaning\n all their immutable QoS settings can no longer be changed. Disabled Entities are not\n yet activated, so it is still possible to change their immutable QoS settings. However,\n once activated the immutable QoS settings can no longer be changed.\n Creating disabled entities can make sense when the creator of the DDS_Entity\n does not yet know which QoS settings to apply, thus allowing another piece of code\n to set the QoS later on.\n\n The default setting of DDS_EntityFactoryQosPolicy is such that, by default,\n entities are created in an enabled state so that it is not necessary to explicitly call\n dds_enable on newly-created entities.\n\n The dds_enable operation produces the same results no matter how\n many times it is performed. Calling dds_enable on an already\n enabled DDS_Entity returns DDS_RETCODE_OK and has no effect.\n\n If an Entity has not yet been enabled, the only operations that can be invoked\n on it are: the ones to set, get or copy the QosPolicy settings, the ones that set\n (or get) the Listener, the ones that get the Status and the dds_get_status_changes\n operation (although the status of a disabled entity never changes). Other operations\n will return the error DDS_RETCODE_NOT_ENABLED.\n\n Entities created with a parent that is disabled, are created disabled regardless of\n the setting of the entityfactory policy.\n\n If the entityfactory policy has autoenable_created_entities\n set to TRUE, the dds_enable operation on the parent will\n automatically enable all child entities created with the parent.\n\n The Listeners associated with an Entity are not called until the\n Entity is enabled. Conditions associated with an Entity that\n is not enabled are \"inactive\", that is, have a trigger_value which is FALSE.\n\n @param[in]  entity  The entity to enable.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The listeners of to the entity have been successfully been copied\n             into the specified listener parameter.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The parent of the given Entity is not enabled."]
    pub fn dds_enable(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Delete given entity.\n @ingroup entity\n @component generic_entity\n\n This operation will delete the given entity. It will also automatically\n delete all its children, childrens' children, etc entities.\n\n @param[in]  entity  Entity to delete.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The entity and its children (recursive are deleted).\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_delete(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity publisher.\n @ingroup entity\n @component entity_relations\n\n This operation returns the publisher to which the given entity belongs.\n For instance, it will return the Publisher that was used when\n creating a DataWriter (when that DataWriter was provided here).\n\n @param[in]  writer  Entity from which to get its publisher.\n\n @returns A valid entity or an error code.\n\n @retval >0\n             A valid publisher handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_publisher(writer: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity subscriber.\n @ingroup entity\n @component entity_relations\n\n This operation returns the subscriber to which the given entity belongs.\n For instance, it will return the Subscriber that was used when\n creating a DataReader (when that DataReader was provided here).\n\n @param[in]  entity  Entity from which to get its subscriber.\n\n @returns A valid subscriber handle or an error code.\n\n @retval >0\n             A valid subscriber handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n DOC_TODO: Link to generic dds entity relations documentation."]
    pub fn dds_get_subscriber(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity datareader.\n @ingroup entity\n @component entity_relations\n\n This operation returns the datareader to which the given entity belongs.\n For instance, it will return the DataReader that was used when\n creating a ReadCondition (when that ReadCondition was provided here).\n\n @param[in]  entity  Entity from which to get its datareader.\n\n @returns A valid reader handle or an error code.\n\n @retval >0\n             A valid reader handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n DOC_TODO: Link to generic dds entity relations documentation."]
    pub fn dds_get_datareader(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get the mask of a condition.\n @ingroup condition\n @component entity_status\n\n This operation returns the mask that was used to create the given\n condition.\n\n @param[in]  condition  Read or Query condition that has a mask.\n @param[out] mask       Where to store the mask of the condition.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success (given mask is set).\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The mask arg is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_mask(condition: dds_entity_t, mask: *mut u32) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Returns the instance handle that represents the entity.\n @ingroup entity\n @component generic_entity\n\n @param[in]   entity  Entity of which to get the instance handle.\n @param[out]  ihdl    Pointer to dds_instance_handle_t.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n DOC_TODO: Check list of return codes is complete."]
    pub fn dds_get_instance_handle(
        entity: dds_entity_t,
        ihdl: *mut dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Returns the GUID that represents the entity in the network,\n and therefore only supports participants, readers and writers.\n @ingroup entity\n @component generic_entity\n\n @param[in]   entity  Entity of which to get the instance handle.\n @param[out]  guid    Where to store the GUID.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n\n DOC_TODO: Check list of return codes is complete."]
    pub fn dds_get_guid(entity: dds_entity_t, guid: *mut dds_guid_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read the status set for the entity\n @ingroup entity_status\n @component entity_status\n\n This operation reads the status(es) set for the entity based on\n the enabled status and mask set. It does not clear the read status(es).\n\n @param[in]  entity  Entity on which the status has to be read.\n @param[out] status  Returns the status set on the entity, based on the enabled status.\n @param[in]  mask    Filter the status condition to be read, 0 means all statuses\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter, status is a null pointer or\n             mask has bits set outside the status range.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object or mask has status\n             bits set that are undefined for the type of entity.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_status(entity: dds_entity_t, status: *mut u32, mask: u32) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read the status set for the entity\n @ingroup entity_status\n @component entity_status\n\n This operation reads the status(es) set for the entity based on the enabled\n status and mask set. It clears the status set after reading.\n\n @param[in]  entity  Entity on which the status has to be read.\n @param[out] status  Returns the status set on the entity, based on the enabled status.\n @param[in]  mask    Filter the status condition to be read, 0 means all statuses\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter, status is a null pointer or\n             mask has bits set outside the status range.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object or mask has status\n             bits set that are undefined for the type of entity.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_status(entity: dds_entity_t, status: *mut u32, mask: u32) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get changed status(es)\n @ingroup entity_status\n @component entity_status\n\n This operation returns the status changes since they were last read.\n\n @param[in]  entity  Entity on which the statuses are read.\n @param[out] status  Returns the current set of triggered statuses.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_status_changes(entity: dds_entity_t, status: *mut u32) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @anchor dds_get_status_mask\n @brief Get enabled status on entity\n @ingroup entity_status\n @component entity_status\n\n This operation returns the status enabled on the entity\n\n @param[in]  entity  Entity to get the status.\n @param[out] mask    Mask of enabled statuses set on the entity.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_status_mask(entity: dds_entity_t, mask: *mut u32) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @anchor dds_set_status_mask\n @brief Set status enabled on entity\n @ingroup entity_status\n @component entity_status\n\n This operation enables the status(es) based on the mask set\n\n @param[in]  entity  Entity to enable the status.\n @param[in]  mask    Status value that indicates the status to be enabled.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Success.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_set_status_mask(entity: dds_entity_t, mask: u32) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity QoS policies.\n @ingroup entity_qos\n @component entity_qos\n\n This operation allows access to the existing set of QoS policies\n for the entity.\n\n @param[in]  entity  Entity on which to get qos.\n @param[out] qos     Pointer to the qos structure that returns the set policies.\n\n @returns A dds_return_t indicating success or failure. The QoS object will have\n at least all QoS relevant for the entity present and the corresponding dds_qget_...\n will return true.\n\n @retval DDS_RETCODE_OK\n             The existing set of QoS policy values applied to the entity\n             has successfully been copied into the specified qos parameter.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The qos parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n\n DOC_TODO: Link to generic QoS information documentation."]
    pub fn dds_get_qos(entity: dds_entity_t, qos: *mut dds_qos_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set entity QoS policies.\n @ingroup entity_qos\n @component entity_qos\n\n This operation replaces the existing set of Qos Policy settings for an\n entity. The parameter qos must contain the struct with the QosPolicy\n settings which is checked for self-consistency.\n\n The set of QosPolicy settings specified by the qos parameter are applied on\n top of the existing QoS, replacing the values of any policies previously set\n (provided, the operation returned DDS_RETCODE_OK).\n\n Not all policies are changeable when the entity is enabled.\n\n @note Currently only Latency Budget and Ownership Strength are changeable QoS\n       that can be set.\n\n @param[in]  entity  Entity from which to get qos.\n @param[in]  qos     Pointer to the qos structure that provides the policies.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The new QoS policies are set.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The qos parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_IMMUTABLE_POLICY\n             The entity is enabled and one or more of the policies of the QoS\n             are immutable.\n @retval DDS_RETCODE_INCONSISTENT_POLICY\n             A few policies within the QoS are not consistent with each other.\n\n DOC_TODO: Link to generic QoS information documentation."]
    pub fn dds_set_qos(entity: dds_entity_t, qos: *const dds_qos_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity listeners.\n @ingroup entity_listener\n @component entity_listener\n\n This operation allows access to the existing listeners attached to\n the entity.\n\n @param[in]  entity   Entity on which to get the listeners.\n @param[out] listener Pointer to the listener structure that returns the\n                      set of listener callbacks.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The listeners of to the entity have been successfully been\n             copied into the specified listener parameter.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The listener parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n\n DOC_TODO: Link to (generic) Listener and status information."]
    pub fn dds_get_listener(entity: dds_entity_t, listener: *mut dds_listener_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Set entity listeners.\n @ingroup entity_listener\n @component entity_listener\n\n This operation attaches a dds_listener_t to the dds_entity_t. Only one\n Listener can be attached to each Entity. If a Listener was already\n attached, this operation will replace it with the new one. In other\n words, all related callbacks are replaced (possibly with NULL).\n\n A call to this operation will immediately invoke any listener callbacks for\n which the corresponding status flag is set. It may cause spurious invocations,\n including multiple invocations for one listener. For most cases this is unlikely,\n but for the DATA_ON_READERS listeners it is quite likely, though not certain.\n\n When listener parameter is NULL, all listener callbacks that were possibly\n set on the Entity will be removed.\n\n @note Not all listener callbacks are related to all entities.\n\n ## Communication Status\n For each communication status, the StatusChangedFlag flag is initially set to\n FALSE. It becomes TRUE whenever that plain communication status changes. For\n each plain communication status activated in the mask, the associated\n Listener callback is invoked and the communication status is reset\n to FALSE, as the listener implicitly accesses the status which is passed as a\n parameter to that operation.\n The status is reset prior to calling the listener, so if the application calls\n the get_<status_name> from inside the listener it will see the\n status already reset.\n\n ## Status Propagation\n In case a related callback within the Listener is not set, the Listener of\n the Parent entity is called recursively, until a Listener with the appropriate\n callback set has been found and called. This allows the application to set\n (for instance) a default behaviour in the Listener of the containing Publisher\n and a DataWriter specific behaviour when needed. In case the callback is not\n set in the Publishers' Listener either, the communication status will be\n propagated to the Listener of the DomainParticipant of the containing\n DomainParticipant. In case the callback is not set in the DomainParticipants'\n Listener either, the Communication Status flag will be set, resulting in a\n possible WaitSet trigger.\n\n @param[in]  entity    Entity on which to get the listeners.\n @param[in]  listener  Pointer to the listener structure that contains the\n                       set of listener callbacks (maybe NULL).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The listeners of to the entity have been successfully been\n             copied into the specified listener parameter.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n DOC_TODO: Link to (generic) Listener and status information."]
    pub fn dds_set_listener(entity: dds_entity_t, listener: *const dds_listener_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new instance of a DDS participant in a domain\n @ingroup domain_participant\n @component participant\n\n This function creates a new participant in the specified domain id, implicitly creating\n a domain entity if one doesn't exist for the specified domain id.  The domain entity\n can exist as a consequence of the existence of another participant in it, or because it\n was explicitly created using @ref dds_create_domain or @ref\n dds_create_domain_with_rawconfig.  If the domain entity has not been created yet, a new\n domain entity is created using a configuration taken from the CYCLONEDDS_URI\n environment variable.\n\n The domain id may be specified as DDS_DOMAIN_DEFAULT, in which case the behaviour\n depends on whether some domain entity already exists or not.  If there is at least one,\n the one with the lowest id will be used.  If there are none, one is created with the\n domain id taken from the first domain id specified in the configuration file (i.e.,\n with a Domain element with the id attribute not \"any\"), and if no domain id is\n specified in the configuration file, domain id 0 is used.\n\n The domain configuration is constructed by amending the default configuration with the\n Domain configuration (fragments) for which the domain id is specifed as \"any\" and those\n for which the domain id matches the specified domain id (not DDS_DOMAIN_DEFAULT) in the\n order in which they are encountered in the configuration.\n\n @param[in]  domain The domain in which to create the participant.\n @param[in]  qos The QoS to set on the new participant (can be NULL).\n @param[in]  listener Any listener functions associated with the new participant (can be NULL).\n\n @returns A valid participant handle or an error code.\n\n @retval >0\n             A valid participant handle.\n @retval DDS_RETCODE_NOT_ALLOWED_BY_SECURITY\n             An invalid DDS Security configuration was specified (whether\n             that be missing or incorrect entries, expired certificates,\n             or anything else related to the security settings and\n             implementation).\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             Some security properties specified in the QoS, but the Cyclone\n             build does not include support for DDS Security.\n @retval DDS_RETCODE_OUT_OF_RESOURCES\n             Some resource limit (maximum participants, memory, handles,\n             &c.) prevented creation of the participant.\n @retval DDS_RETCODE_ERROR\n             The \"CYCLONEDDS_URI\" environment variable lists non-existent\n             or invalid configuration files, or contains invalid embedded\n             configuration items; or an unspecified internal error has\n             occurred."]
    pub fn dds_create_participant(
        domain: dds_domainid_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a domain with a given configuration\n @ingroup domain\n @component domain\n\n To explicitly create a domain based on a configuration passed as a string.  A domain\n created in this manner must be explicitly deleted by calling @ref dds_delete on the\n domain (or on DDS_CYCLONEDDS_HANDLE).\n\n It will not be created if a domain with the given domain id already exists.  This could\n have been created implicitly by a previous call to this function, @ref\n dds_create_participant or @ref dds_create_domain_with_rawconfig.\n\n The domain configuration is constructed by amending the default configuration with the\n Domain configuration (fragments) for which the domain id is specifed as \"any\" and those\n for which the domain id matches the specified domain id in the order in which they are\n encountered in the configuration.\n\n Using NULL or \"\" as config will create a domain with default settings.\n\n @param[in]  domain The domain to be created. DDS_DEFAULT_DOMAIN is not allowed.\n @param[in]  config A configuration string containing file names and/or XML fragments representing the configuration.\n\n @returns A valid entity handle or an error code.\n\n @retval DDS_RETCODE_BAD_PARAMETER\n             Illegal value for domain id or the configfile parameter is NULL.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The domain already existed and cannot be created again.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred."]
    pub fn dds_create_domain(
        domain: dds_domainid_t,
        config: *const ::std::ffi::c_char,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a domain with a given configuration, specified as an\n initializer (unstable interface)\n @ingroup domain\n @component domain\n @unstable\n\n To explicitly create a domain based on a configuration passed as a raw initializer\n rather than as an XML string. This allows bypassing the XML parsing, but tightly\n couples the initializing to implementation.  See\n dds/ddsi/ddsi_config.h:ddsi_config_init_default for a way to initialize the default\n configuration.  A domain created in this manner must be explicitly deleted by calling\n @ref dds_delete on the domain (or on DDS_CYCLONEDDS_HANDLE).\n\n It will not be created if a domain with the given domain id already exists.  This could\n have been created implicitly by a previous call to this function, @ref\n dds_create_participant or @ref dds_create_domain_with_rawconfig.\n\n Please be aware that the given domain_id always takes precedence over the\n configuration.\n\n @param[in]  domain The domain to be created. DDS_DEFAULT_DOMAIN is not allowed.\n @param[in]  config A configuration initializer.  The lifetime of any pointers\n             in config must be at least that of the lifetime of the domain.\n\n @returns A valid entity handle or an error code.\n\n @retval DDS_RETCODE_BAD_PARAMETER\n             Illegal value for domain id or the config parameter is NULL.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The domain already existed and cannot be created again.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred."]
    pub fn dds_create_domain_with_rawconfig(
        domain: dds_domainid_t,
        config: *const ddsi_config,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity parent.\n @ingroup entity\n @component entity_relations\n\n This operation returns the parent to which the given entity belongs.\n For instance, it will return the Participant that was used when\n creating a Publisher (when that Publisher was provided here).\n\n When a reader or a writer are created with a participant, then a\n subscriber or publisher are created implicitly.\n This function will return the implicit parent and not the used\n participant.\n\n @param[in]  entity  Entity from which to get its parent.\n\n @returns A valid entity handle or an error code.\n\n @retval >0\n             A valid entity handle.\n @retval DDS_ENTITY_NIL\n             Called with a participant.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n DOC_TODO: Link to generic dds entity relations documentation."]
    pub fn dds_get_parent(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity participant.\n @ingroup entity\n @component entity_relations\n\n This operation returns the participant to which the given entity belongs.\n For instance, it will return the Participant that was used when\n creating a Publisher that was used to create a DataWriter (when that\n DataWriter was provided here).\n\n DOC_TODO: Link to generic dds entity relations documentation.\n\n @param[in]  entity  Entity from which to get its participant.\n\n @returns A valid entity or an error code.\n\n @retval >0\n             A valid participant handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_participant(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get entity children.\n @ingroup entity\n @component entity_relations\n\n This operation returns the children that the entity contains.\n For instance, it will return all the Topics, Publishers and Subscribers\n of the Participant that was used to create those entities (when that\n Participant is provided here).\n\n This functions takes a pre-allocated list to put the children in and\n will return the number of found children. It is possible that the given\n size of the list is not the same as the number of found children. If\n less children are found, then the last few entries in the list are\n untouched. When more children are found, then only 'size' number of\n entries are inserted into the list, but still complete count of the\n found children is returned. Which children are returned in the latter\n case is undefined.\n\n When supplying NULL as list and 0 as size, you can use this to acquire\n the number of children without having to pre-allocate a list.\n\n When a reader or a writer are created with a participant, then a\n subscriber or publisher are created implicitly.\n When used on the participant, this function will return the implicit\n subscriber and/or publisher and not the related reader/writer.\n\n @param[in]  entity   Entity from which to get its children.\n @param[out] children Pre-allocated array to contain the found children.\n @param[in]  size     Size of the pre-allocated children's list.\n\n @returns Number of children or an error code.\n\n @retval >=0\n             Number of found children (can be larger than 'size').\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The children parameter is NULL, while a size is provided.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_children(
        entity: dds_entity_t,
        children: *mut dds_entity_t,
        size: usize,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get the domain id to which this entity is attached.\n @ingroup entity\n @component entity_relations\n\n When creating a participant entity, it is attached to a certain domain.\n All the children (like Publishers) and childrens' children (like\n DataReaders), etc are also attached to that domain.\n\n This function will return the original domain ID when called on\n any of the entities within that hierarchy.  For entities not associated\n with a domain, the id is set to DDS_DOMAIN_DEFAULT.\n\n @param[in]  entity   Entity from which to get its children.\n @param[out] id       Pointer to put the domain ID in.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Domain ID was returned.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The id parameter is NULL.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_domainid(entity: dds_entity_t, id: *mut dds_domainid_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get participants of a domain.\n @ingroup domain\n @component participant\n\n This operation acquires the participants created on a domain and returns\n the number of found participants.\n\n This function takes a domain id with the size of pre-allocated participant's\n list in and will return the number of found participants. It is possible that\n the given size of the list is not the same as the number of found participants.\n If less participants are found, then the last few entries in an array stay\n untouched. If more participants are found and the array is too small, then the\n participants returned are undefined.\n\n @param[in]  domain_id    The domain id.\n @param[out] participants The participant for domain.\n @param[in]  size         Size of the pre-allocated participant's list.\n\n @returns Number of participants found or and error code.\n\n @retval >0\n             Number of participants found.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The participant parameter is NULL, while a size is provided."]
    pub fn dds_lookup_participant(
        domain_id: dds_domainid_t,
        participants: *mut dds_entity_t,
        size: usize,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new topic with default type handling.\n @ingroup topic\n @component topic\n\n The type name for the topic is taken from the generated descriptor. Topic\n matching is done on a combination of topic name and type name. Each successful\n call to dds_create_topic creates a new topic entity sharing the same QoS\n settings with all other topics of the same name.\n\n @param[in]  participant  Participant on which to create the topic.\n @param[in]  descriptor   An IDL generated topic descriptor.\n @param[in]  name         Name of the topic.\n @param[in]  qos          QoS to set on the new topic (can be NULL).\n @param[in]  listener     Any listener functions associated with the new topic (can be NULL).\n\n @returns A valid, unique topic handle or an error code.\n\n @retval >=0\n             A valid unique topic handle.\n @retval DDS_RETCODE_BAD_PARAMETER\n             Either participant, descriptor, name or qos is invalid.\n @retval DDS_RETCODE_INCONSISTENT_POLICY\n             QoS mismatch between qos and an existing topic's QoS.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             Mismatch between type name in descriptor and pre-existing\n             topic's type name."]
    pub fn dds_create_topic(
        participant: dds_entity_t,
        descriptor: *const dds_topic_descriptor_t,
        name: *const ::std::ffi::c_char,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new topic with provided type handling.\n @ingroup topic\n @component topic\n\n The name for the type is taken from the provided \"sertype\" object. Type\n matching is done on a combination of topic name and type name. Each successful\n call to dds_create_topic creates a new topic entity sharing the same QoS\n settings with all other topics of the same name.\n\n In case this function returns a valid handle, the ownership of the provided\n sertype is handed over to Cyclone. On return, the caller gets in the sertype parameter a\n pointer to the sertype that is actually used by the topic. This can be the provided sertype\n (if this sertype was not yet known in the domain), or a sertype thas was\n already known in the domain.\n\n @param[in]     participant  Participant on which to create the topic.\n @param[in]     name         Topic name\n @param[in,out] sertype      Internal description of the type . On return, the sertype parameter is set to the actual sertype that is used by the topic.\n @param[in]     qos          QoS to set on the new topic (can be NULL).\n @param[in]     listener     Any listener functions associated with the new topic (can be NULL).\n @param[in]     sedp_plist   Ignored (should be NULL, may be enforced in the future).\n\n @returns A valid, unique topic handle or an error code. Iff a valid handle, the domain takes ownership of provided serdata.\n\n @retval >=0\n             A valid unique topic handle.\n @retval DDS_RETCODE_BAD_PARAMETER\n             Either participant, descriptor, name or qos is invalid.\n @retval DDS_RETCODE_INCONSISTENT_POLICY\n             QoS mismatch between qos and an existing topic's QoS.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             Mismatch between type name in sertype and pre-existing\n             topic's type name."]
    pub fn dds_create_topic_sertype(
        participant: dds_entity_t,
        name: *const ::std::ffi::c_char,
        sertype: *mut *mut ddsi_sertype,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
        sedp_plist: *const ddsi_plist,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Finds a locally created or discovered remote topic by topic name and type information\n @ingroup topic\n @component topic\n\n Finds a locally created topic or a discovered remote topic based on the topic\n name and type. In case the topic is not found, this function will wait for\n the topic to become available until the provided time out.\n\n When using the scope DDS_FIND_SCOPE_LOCAL_DOMAIN, there will be no requests sent\n over the network for resolving the type in case it is unresolved. This also applies\n to dependent types: in case a dependency of the provided type is unresolved, no\n requests will be sent for resolving the type when using LOCAL_DOMAIN scope.\n\n In case the scope is DDS_FIND_SCOPE_GLOBAL, for unresolved types (or dependencies)\n a type lookup request will be sent.\n\n In case no type information is provided and multiple (discovered) topics exist\n with the provided name, an arbitrary topic with that name will be returned.\n In this scenario, it would be better to read DCPSTopic data and use that to\n get the required topic meta-data.\n\n The returned topic should be released with dds_delete.\n\n @param[in]  scope        The scope used to find the topic. In case topic discovery is not enabled in the build, SCOPE_GLOBAL cannot be used.\n @param[in]  participant  The handle of the participant the found topic will be created in\n @param[in]  name         The name of the topic to find.\n @param[in]  type_info    The type information of the topic to find. Optional, and should not be provided in case topic discovery is not enabled in the build.\n @param[in]  timeout      The timeout for waiting for the topic to become available\n\n @returns A valid topic handle or an error code.\n\n @retval >0\n             A valid topic handle.\n @retval 0\n             No topic of this name exists\n @retval DDS_RETCODE_BAD_PARAMETER\n             Participant or type information was invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The provided type could not be found."]
    pub fn dds_find_topic(
        scope: dds_find_scope_t,
        participant: dds_entity_t,
        name: *const ::std::ffi::c_char,
        type_info: *const dds_typeinfo_t,
        timeout: dds_duration_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @component topic\n @deprecated Finds a locally created or discovered remote topic by topic name\n @ingroup deprecated\n Use @ref dds_find_topic instead.\n\n Finds a locally created topic or a discovered remote topic based on the topic\n name. In case the topic is not found, this function will wait for the topic\n to become available until the provided time out.\n\n In case multiple (discovered) topics exist with the provided name, this function\n will return randomly one of these topic. The caller can decide to read DCPSTopic\n data and select one of the topic definitions to create the topic.\n\n The returned topic should be released with dds_delete.\n\n @param[in]  scope        The scope used to find the topic\n @param[in]  participant  The handle of the participant the found topic will be created in\n @param[in]  name         The name of the topic to find.\n @param[in]  timeout      The timeout for waiting for the topic to become available\n\n @returns A valid topic handle or an error code.\n\n @retval >0\n             A valid topic handle.\n @retval 0\n             No topic of this name existed yet\n @retval DDS_RETCODE_BAD_PARAMETER\n             Participant handle or scope invalid"]
    pub fn dds_find_topic_scoped(
        scope: dds_find_scope_t,
        participant: dds_entity_t,
        name: *const ::std::ffi::c_char,
        timeout: dds_duration_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @ingroup topic\n @component topic\n @brief Creates topic descriptor for the provided type_info\n\n @param[in]  scope        The scope used to find the type: DDS_FIND_SCOPE_LOCAL_DOMAIN or DDS_FIND_SCOPE_GLOBAL. In case DDS_FIND_SCOPE_GLOBAL is used, a type lookup request will be sent to other nodes.\n @param[in]  participant  The handle of the participant.\n @param[in]  type_info    The type (dds_typeinfo_t) of the topic to find.\n @param[in]  timeout      The timeout for waiting for the type to become available\n @param[out] descriptor - Pointer to a dds_topic_descriptor_t pointer that will be allocated and populated. To free allocated memory for this descriptor, use dds_delete_topic_descriptor.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The topic descriptor has been succesfully created.\n @retval DDS_RETCODE_BAD_PARAMETER\n             Type_info or descriptor parameter not provided, invalid entity (not a participant) or scope invalid.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The participant or the type_id was not found.\n @retval DDS_RETCODE_TIMEOUT\n             Type was not resolved within the provided timeout\n @retval DDS_RETCODE_UNSUPPORTED\n             Cyclone DDS built without type discovery\n             (cf. DDS_HAS_TYPE_DISCOVERY)"]
    pub fn dds_create_topic_descriptor(
        scope: dds_find_scope_t,
        participant: dds_entity_t,
        type_info: *const dds_typeinfo_t,
        timeout: dds_duration_t,
        descriptor: *mut *mut dds_topic_descriptor_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @ingroup topic\n @component topic\n @brief Delete memory allocated to the provided topic descriptor\n\n @param[in] descriptor - Pointer to a dds_topic_descriptor_t\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The topic descriptor has been succesfully deleted.\n @retval DDS_RETCODE_BAD_PARAMETER\n             No descriptor provided\n @retval DDS_RETCODE_UNSUPPORTED\n             Cyclone DDS built without type discovery\n             (cf. DDS_HAS_TYPE_DISCOVERY)"]
    pub fn dds_delete_topic_descriptor(descriptor: *mut dds_topic_descriptor_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Returns the name of a given topic.\n @ingroup topic\n @component topic\n\n @param[in]  topic  The topic.\n @param[out] name   Buffer to write the topic name to.\n @param[in]  size   Number of bytes available in the buffer.\n\n @returns A dds_return_t indicating success or failure.\n\n @return Actual length of topic name (name is truncated if return value >= size) or error"]
    pub fn dds_get_name(
        topic: dds_entity_t,
        name: *mut ::std::ffi::c_char,
        size: usize,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Returns the type name of a given topic.\n @ingroup topic\n @component topic\n\n @param[in]  topic  The topic.\n @param[out] name   Buffer to write the topic type name to.\n @param[in]  size   Number of bytes available in the buffer.\n\n @returns A dds_return_t indicating success or failure.\n\n @return Actual length of type name (name is truncated if return value >= size) or error"]
    pub fn dds_get_type_name(
        topic: dds_entity_t,
        name: *mut ::std::ffi::c_char,
        size: usize,
    ) -> dds_return_t;
}
#[doc = " @anchor dds_topic_filter_sample_fn\n @brief Topic filter function that only needs to look at the sample.\n @ingroup topic_filter\n @warning Unstable API\n @unstable"]
pub type dds_topic_filter_sample_fn =
    ::std::option::Option<unsafe extern "C" fn(sample: *const ::std::ffi::c_void) -> bool>;
#[doc = " @anchor dds_topic_filter_sample_arg_fn\n @brief Topic filter function that only needs to look at the sample and a custom argument.\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_sample_arg_fn = ::std::option::Option<
    unsafe extern "C" fn(sample: *const ::std::ffi::c_void, arg: *mut ::std::ffi::c_void) -> bool,
>;
#[doc = " @anchor dds_topic_filter_sampleinfo_arg_fn\n @brief Topic filter function that only needs to look at the sampleinfo and a custom argument.\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_sampleinfo_arg_fn = ::std::option::Option<
    unsafe extern "C" fn(
        sampleinfo: *const dds_sample_info_t,
        arg: *mut ::std::ffi::c_void,
    ) -> bool,
>;
#[doc = " @anchor dds_topic_filter_sample_sampleinfo_arg_fn\n @brief Topic filter function that needs to look at the sample, the sampleinfo and a custom argument.\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_sample_sampleinfo_arg_fn = ::std::option::Option<
    unsafe extern "C" fn(
        sample: *const ::std::ffi::c_void,
        sampleinfo: *const dds_sample_info_t,
        arg: *mut ::std::ffi::c_void,
    ) -> bool,
>;
#[doc = " @anchor dds_topic_filter_fn\n @brief See \\ref dds_topic_filter_sample_fn\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_fn = dds_topic_filter_sample_fn;
#[doc = " @anchor dds_topic_filter_arg_fn\n @brief See \\ref dds_topic_filter_sample_arg_fn\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_arg_fn = dds_topic_filter_sample_arg_fn;
#[doc = "< Can be used to reset topic filter"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_NONE: dds_topic_filter_mode = 0;
#[doc = "< Use with \\ref dds_topic_filter_sample_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLE: dds_topic_filter_mode = 1;
#[doc = "< Use with \\ref dds_topic_filter_sample_arg_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLE_ARG: dds_topic_filter_mode = 2;
#[doc = "< Use with \\ref dds_topic_filter_sampleinfo_arg_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLEINFO_ARG: dds_topic_filter_mode = 3;
#[doc = "< Use with \\ref dds_topic_filter_sample_sampleinfo_arg_fn"]
pub const dds_topic_filter_mode_DDS_TOPIC_FILTER_SAMPLE_SAMPLEINFO_ARG: dds_topic_filter_mode = 4;
#[doc = " @brief Topic filter mode;\n @ingroup topic_filter\n @warning Unstable API"]
pub type dds_topic_filter_mode = ::std::ffi::c_uint;
#[doc = " @brief Union of all filter function types;\n @ingroup topic_filter\n @warning Unstable API"]
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_topic_filter_function_union {
    #[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLE"]
    pub sample: dds_topic_filter_sample_fn,
    #[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLE_ARG"]
    pub sample_arg: dds_topic_filter_sample_arg_fn,
    #[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLEINFO_ARG"]
    pub sampleinfo_arg: dds_topic_filter_sampleinfo_arg_fn,
    #[doc = "< Use with mode dds_topic_filter_mode::DDS_TOPIC_FILTER_SAMPLE_SAMPLEINFO_ARG"]
    pub sample_sampleinfo_arg: dds_topic_filter_sample_sampleinfo_arg_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_topic_filter_function_union"]
        [::std::mem::size_of::<dds_topic_filter_function_union>() - 8usize];
    ["Alignment of dds_topic_filter_function_union"]
        [::std::mem::align_of::<dds_topic_filter_function_union>() - 8usize];
    ["Offset of field: dds_topic_filter_function_union::sample"]
        [::std::mem::offset_of!(dds_topic_filter_function_union, sample) - 0usize];
    ["Offset of field: dds_topic_filter_function_union::sample_arg"]
        [::std::mem::offset_of!(dds_topic_filter_function_union, sample_arg) - 0usize];
    ["Offset of field: dds_topic_filter_function_union::sampleinfo_arg"]
        [::std::mem::offset_of!(dds_topic_filter_function_union, sampleinfo_arg) - 0usize];
    ["Offset of field: dds_topic_filter_function_union::sample_sampleinfo_arg"]
        [::std::mem::offset_of!(dds_topic_filter_function_union, sample_sampleinfo_arg) - 0usize];
};
impl Default for dds_topic_filter_function_union {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Full topic filter container;\n @ingroup topic_filter\n @warning Unstable API"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_topic_filter {
    #[doc = "< Provide a mode"]
    pub mode: dds_topic_filter_mode,
    #[doc = "< Provide a filter function"]
    pub f: dds_topic_filter_function_union,
    #[doc = "< Provide an argument, can be NULL"]
    pub arg: *mut ::std::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_topic_filter"][::std::mem::size_of::<dds_topic_filter>() - 24usize];
    ["Alignment of dds_topic_filter"][::std::mem::align_of::<dds_topic_filter>() - 8usize];
    ["Offset of field: dds_topic_filter::mode"]
        [::std::mem::offset_of!(dds_topic_filter, mode) - 0usize];
    ["Offset of field: dds_topic_filter::f"][::std::mem::offset_of!(dds_topic_filter, f) - 8usize];
    ["Offset of field: dds_topic_filter::arg"]
        [::std::mem::offset_of!(dds_topic_filter, arg) - 16usize];
};
impl Default for dds_topic_filter {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " @anchor dds_set_topic_filter_and_arg\n @brief Sets a filter and filter argument on a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n To be replaced by proper filtering on readers.\n\n Not thread-safe with respect to data being read/written using readers/writers\n using this topic.  Be sure to create a topic entity specific to the reader you\n want to filter, then set the filter function, and only then create the reader.\n And don't change it unless you know there are no concurrent writes.\n\n @param[in]  topic   The topic on which the content filter is set.\n @param[in]  filter  The filter function used to filter topic samples.\n @param[in]  arg     Argument for the filter function.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK  Filter set successfully\n @retval DDS_RETCODE_BAD_PARAMETER  The topic handle is invalid"]
    pub fn dds_set_topic_filter_and_arg(
        topic: dds_entity_t,
        filter: dds_topic_filter_arg_fn,
        arg: *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @anchor dds_set_topic_filter_extended\n @brief Sets a filter and filter argument on a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n To be replaced by proper filtering on readers.\n\n Not thread-safe with respect to data being read/written using readers/writers\n using this topic.  Be sure to create a topic entity specific to the reader you\n want to filter, then set the filter function, and only then create the reader.\n And don't change it unless you know there are no concurrent writes.\n\n @param[in]  topic   The topic on which the content filter is set.\n @param[in]  filter  The filter specification.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK  Filter set successfully\n @retval DDS_RETCODE_BAD_PARAMETER  The topic handle is invalid"]
    pub fn dds_set_topic_filter_extended(
        topic: dds_entity_t,
        filter: *const dds_topic_filter,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Gets the filter for a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n\n To be replaced by proper filtering on readers\n\n @param[in]  topic  The topic from which to get the filter.\n @param[out] fn     The topic filter function (fn may be NULL).\n @param[out] arg    Filter function argument (arg may be NULL).\n\n @retval DDS_RETCODE_OK  Filter set successfully\n @retval DDS_RETCODE_PRECONDITION_NOT_MET  Filter is not of \"none\" or \"sample_arg\"\n @retval DDS_RETCODE_BAD_PARAMETER  The topic handle is invalid"]
    pub fn dds_get_topic_filter_and_arg(
        topic: dds_entity_t,
        fn_: *mut dds_topic_filter_arg_fn,
        arg: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Gets the filter for a topic.\n @ingroup topic_filter\n @component topic\n @warning Unstable API\n\n To be replaced by proper filtering on readers\n\n @param[in]  topic  The topic from which to get the filter.\n @param[out] filter The topic filter specification.\n\n @retval DDS_RETCODE_OK  Filter set successfully\n @retval DDS_RETCODE_BAD_PARAMETER  The topic handle is invalid"]
    pub fn dds_get_topic_filter_extended(
        topic: dds_entity_t,
        filter: *mut dds_topic_filter,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new instance of a DDS subscriber\n @ingroup subscriber\n @component subscriber\n\n @param[in]  participant The participant on which the subscriber is being created.\n @param[in]  qos         The QoS to set on the new subscriber (can be NULL).\n @param[in]  listener    Any listener functions associated with the new subscriber (can be NULL).\n\n @returns A valid subscriber handle or an error code.\n\n @retval >0\n             A valid subscriber handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the parameters is invalid."]
    pub fn dds_create_subscriber(
        participant: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new instance of a DDS publisher\n @ingroup publisher\n @component publisher\n\n @param[in]  participant The participant to create a publisher for.\n @param[in]  qos         The QoS to set on the new publisher (can be NULL).\n @param[in]  listener    Any listener functions associated with the new publisher (can be NULL).\n\n @returns A valid publisher handle or an error code.\n\n @retval >0\n            A valid publisher handle.\n @retval DDS_RETCODE_ERROR\n            An internal error has occurred."]
    pub fn dds_create_publisher(
        participant: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Suspends the publications of the Publisher\n @ingroup publisher\n @component publisher\n\n This operation is a hint to the Service so it can optimize its performance by e.g., collecting\n modifications to DDS writers and then batching them. The Service is not required to use the hint.\n\n Every invocation of this operation must be matched by a corresponding call to @see dds_resume\n indicating that the set of modifications has completed.\n\n @param[in]  publisher The publisher for which all publications will be suspended.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Publications suspended successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The pub parameter is not a valid publisher.\n @retval DDS_RETCODE_UNSUPPORTED\n             Operation is not supported."]
    pub fn dds_suspend(publisher: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Resumes the publications of the Publisher\n @ingroup publisher\n @component publisher\n\n This operation is a hint to the Service to indicate that the application has\n completed changes initiated by a previous dds_suspend(). The Service is not\n required to use the hint.\n\n The call to resume_publications must match a previous call to @see suspend_publications.\n\n @param[in]  publisher The publisher for which all publications will be resumed.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Publications resumed successfully.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The pub parameter is not a valid publisher.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             No previous matching dds_suspend().\n @retval DDS_RETCODE_UNSUPPORTED\n             Operation is not supported."]
    pub fn dds_resume(publisher: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Waits at most for the duration timeout for acks for data in the publisher or writer.\n @ingroup publication\n @component publisher\n\n This operation blocks the calling thread until either all data written by the publisher\n or writer is acknowledged by all matched reliable reader entities, or else the duration\n specified by the timeout parameter elapses, whichever happens first.\n\n @param[in]  publisher_or_writer Publisher or writer whose acknowledgments must be waited for\n @param[in]  timeout             How long to wait for acknowledgments before time out\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             All acknowledgments successfully received with the timeout.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The publisher_or_writer is not a valid publisher or writer.\n @retval DDS_RETCODE_TIMEOUT\n             Timeout expired before all acknowledgments from reliable reader entities were received.\n @retval DDS_RETCODE_UNSUPPORTED\n             Operation is not supported."]
    pub fn dds_wait_for_acks(
        publisher_or_writer: dds_entity_t,
        timeout: dds_duration_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new instance of a DDS reader.\n @ingroup reader\n @component reader\n\n When a participant is used to create a reader, an implicit subscriber is created.\n This implicit subscriber will be deleted automatically when the created reader\n is deleted.\n\n @param[in]  participant_or_subscriber The participant or subscriber on which the reader is being created.\n @param[in]  topic                     The topic to read.\n @param[in]  qos                       The QoS to set on the new reader (can be NULL).\n @param[in]  listener                  Any listener functions associated with the new reader (can be NULL).\n\n @returns A valid reader handle or an error code.\n\n @retval >0\n            A valid reader handle.\n @retval DDS_RETCODE_ERROR\n            An internal error occurred.\n\n DOC_TODO: Complete list of error codes"]
    pub fn dds_create_reader(
        participant_or_subscriber: dds_entity_t,
        topic: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new instance of a DDS reader with a custom history cache.\n @ingroup reader\n @component reader\n\n When a participant is used to create a reader, an implicit subscriber is created.\n This implicit subscriber will be deleted automatically when the created reader\n is deleted.\n\n @param[in]  participant_or_subscriber The participant or subscriber on which the reader is being created.\n @param[in]  topic                     The topic to read.\n @param[in]  qos                       The QoS to set on the new reader (can be NULL).\n @param[in]  listener                  Any listener functions associated with the new reader (can be NULL).\n @param[in]  rhc                       Reader history cache to use, reader becomes the owner\n\n @returns A valid reader handle or an error code.\n\n @retval >0\n            A valid reader handle.\n @retval DDS_RETCODE_ERROR\n            An internal error occurred.\n\n DOC_TODO: Complete list of error codes"]
    pub fn dds_create_reader_rhc(
        participant_or_subscriber: dds_entity_t,
        topic: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
        rhc: *mut dds_rhc,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Wait until reader receives all historic data\n @ingroup reader\n @component reader\n\n The operation blocks the calling thread until either all \"historical\" data is\n received, or else the duration specified by the max_wait parameter elapses, whichever happens\n first. A return value of 0 indicates that all the \"historical\" data was received; a return\n value of TIMEOUT indicates that max_wait elapsed before all the data was received.\n\n @param[in]  reader    The reader on which to wait for historical data.\n @param[in]  max_wait  How long to wait for historical data before time out.\n\n @returns a status, 0 on success, TIMEOUT on timeout or a negative value to indicate error.\n\n DOC_TODO: Complete list of error codes"]
    pub fn dds_reader_wait_for_historical_data(
        reader: dds_entity_t,
        max_wait: dds_duration_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a new instance of a DDS writer.\n @ingroup writer\n @component writer\n\n When a participant is used to create a writer, an implicit publisher is created.\n This implicit publisher will be deleted automatically when the created writer\n is deleted.\n\n @param[in]  participant_or_publisher The participant or publisher on which the writer is being created.\n @param[in]  topic The topic to write.\n @param[in]  qos The QoS to set on the new writer (can be NULL).\n @param[in]  listener Any listener functions associated with the new writer (can be NULL).\n\n @returns A valid writer handle or an error code.\n\n @returns >0\n              A valid writer handle.\n @returns DDS_RETCODE_ERROR\n              An internal error occurred.\n\n DOC_TODO: Complete list of error codes"]
    pub fn dds_create_writer(
        participant_or_publisher: dds_entity_t,
        topic: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Registers an instance\n @ingroup writing\n @component data_instance\n\n This operation registers an instance with a key value to the data writer and\n returns an instance handle that could be used for successive write & dispose\n operations. When the handle is not allocated, the function will return an\n error and the handle will be un-touched.\n\n @param[in]  writer  The writer to which instance has be associated.\n @param[out] handle  The instance handle.\n @param[in]  data    The instance with the key value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n            The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n            One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n            The operation is invoked on an inappropriate object."]
    pub fn dds_register_instance(
        writer: dds_entity_t,
        handle: *mut dds_instance_handle_t,
        data: *const ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Unregisters an instance by instance\n @ingroup writing\n @component data_instance\n\n This operation reverses the action of register instance, removes all information regarding\n the instance and unregisters an instance with a key value from the data writer.\n\n @param[in]  writer  The writer to which instance is associated.\n @param[in]  data    The instance with the key value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_unregister_instance(
        writer: dds_entity_t,
        data: *const ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Unregisters an instance by instance handle\n @ingroup writing\n @component data_instance\n\n This operation unregisters the instance which is identified by the key fields of the given\n typed instance handle.\n\n @param[in]  writer  The writer to which instance is associated.\n @param[in]  handle  The instance handle.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_unregister_instance_ih(
        writer: dds_entity_t,
        handle: dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Unregisters an instance by instance with timestamp\n @ingroup writing\n @component data_instance\n\n This operation reverses the action of register instance, removes all information regarding\n the instance and unregisters an instance with a key value from the data writer. It also\n provides a value for the timestamp explicitly.\n\n @param[in]  writer    The writer to which instance is associated.\n @param[in]  data      The instance with the key value.\n @param[in]  timestamp The timestamp for the unregistration (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_unregister_instance_ts(
        writer: dds_entity_t,
        data: *const ::std::ffi::c_void,
        timestamp: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Unregisters an instance by instance handle with timestamp\n @ingroup writing\n @component data_instance\n\n This operation unregisters an instance with a key value from the handle. Instance can be identified\n from instance handle. If an unregistered key ID is passed as an instance data, an error is logged and\n not flagged as return value.\n\n @param[in]  writer    The writer to which instance is associated.\n @param[in]  handle    The instance handle.\n @param[in]  timestamp The timestamp for the unregistration (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object"]
    pub fn dds_unregister_instance_ih_ts(
        writer: dds_entity_t,
        handle: dds_instance_handle_t,
        timestamp: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation modifies and disposes a data instance.\n @ingroup writing\n @component write_data\n\n This operation requests the Data Distribution Service to modify the instance and\n mark it for deletion. Copies of the instance and its corresponding samples, which are\n stored in every connected reader and, dependent on the QoS policy settings (also in\n the Transient and Persistent stores) will be modified and marked for deletion by\n setting their dds_instance_state_t to DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE.\n\n @par Blocking\n If the history QoS policy is set to DDS_HISTORY_KEEP_ALL, the\n dds_writedispose operation on the writer may block if the modification\n would cause data to be lost because one of the limits, specified in the\n resource_limits QoS policy, to be exceeded. In case the synchronous\n attribute value of the reliability Qos policy is set to true for\n communicating writers and readers then the writer will wait until\n all synchronous readers have acknowledged the data. Under these\n circumstances, the max_blocking_time attribute of the reliability\n QoS policy configures the maximum time the dds_writedispose operation\n may block.\n If max_blocking_time elapses before the writer is able to store the\n modification without exceeding the limits and all expected acknowledgements\n are received, the dds_writedispose operation will fail and returns\n DDS_RETCODE_TIMEOUT.\n\n @param[in]  writer The writer to dispose the data instance from.\n @param[in]  data   The data to be written and disposed.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n             Either the current action overflowed the available resources as\n             specified by the combination of the reliability QoS policy,\n             history QoS policy and resource_limits QoS policy, or the\n             current action was waiting for data delivery acknowledgement\n             by synchronous readers. This caused blocking of this operation,\n             which could not be resolved before max_blocking_time of the\n             reliability QoS policy elapsed."]
    pub fn dds_writedispose(writer: dds_entity_t, data: *const ::std::ffi::c_void) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation modifies and disposes a data instance with a specific\n        timestamp.\n @ingroup writing\n @component write_data\n\n This operation performs the same functions as dds_writedispose() except that\n the application provides the value for the source_timestamp that is made\n available to connected reader objects. This timestamp is important for the\n interpretation of the destination_order QoS policy.\n\n @param[in]  writer    The writer to dispose the data instance from.\n @param[in]  data      The data to be written and disposed.\n @param[in]  timestamp The timestamp used as source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n             Either the current action overflowed the available resources as\n             specified by the combination of the reliability QoS policy,\n             history QoS policy and resource_limits QoS policy, or the\n             current action was waiting for data delivery acknowledgement\n             by synchronous readers. This caused blocking of this operation,\n             which could not be resolved before max_blocking_time of the\n             reliability QoS policy elapsed."]
    pub fn dds_writedispose_ts(
        writer: dds_entity_t,
        data: *const ::std::ffi::c_void,
        timestamp: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation disposes an instance, identified by the data sample.\n @ingroup writing\n @component write_data\n\n This operation requests the Data Distribution Service to modify the instance and\n mark it for deletion. Copies of the instance and its corresponding samples, which are\n stored in every connected reader and, dependent on the QoS policy settings (also in\n the Transient and Persistent stores) will be modified and marked for deletion by\n setting their dds_instance_state_t to DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE.\n\n @par Blocking\n If the history QoS policy is set to DDS_HISTORY_KEEP_ALL, the\n dds_writedispose operation on the writer may block if the modification\n would cause data to be lost because one of the limits, specified in the\n resource_limits QoS policy, to be exceeded. In case the synchronous\n attribute value of the reliability Qos policy is set to true for\n communicating writers and readers then the writer will wait until\n all synchronous readers have acknowledged the data. Under these\n circumstances, the max_blocking_time attribute of the reliability\n QoS policy configures the maximum time the dds_writedispose operation\n may block.\n If max_blocking_time elapses before the writer is able to store the\n modification without exceeding the limits and all expected acknowledgements\n are received, the dds_writedispose operation will fail and returns\n DDS_RETCODE_TIMEOUT.\n\n @param[in]  writer The writer to dispose the data instance from.\n @param[in]  data   The data sample that identifies the instance\n                    to be disposed.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n             Either the current action overflowed the available resources as\n             specified by the combination of the reliability QoS policy,\n             history QoS policy and resource_limits QoS policy, or the\n             current action was waiting for data delivery acknowledgement\n             by synchronous readers. This caused blocking of this operation,\n             which could not be resolved before max_blocking_time of the\n             reliability QoS policy elapsed."]
    pub fn dds_dispose(writer: dds_entity_t, data: *const ::std::ffi::c_void) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation disposes an instance with a specific timestamp, identified by the data sample.\n @ingroup writing\n @component write_data\n\n This operation performs the same functions as dds_dispose() except that\n the application provides the value for the source_timestamp that is made\n available to connected reader objects. This timestamp is important for the\n interpretation of the destination_order QoS policy.\n\n @param[in]  writer    The writer to dispose the data instance from.\n @param[in]  data      The data sample that identifies the instance\n                       to be disposed.\n @param[in]  timestamp The timestamp used as source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The sample is written and the instance is marked for deletion\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred\n @retval DDS_RETCODE_BAD_PARAMETER\n             At least one of the arguments is invalid\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted\n @retval DDS_RETCODE_TIMEOUT\n             Either the current action overflowed the available resources as\n             specified by the combination of the reliability QoS policy,\n             history QoS policy and resource_limits QoS policy, or the\n             current action was waiting for data delivery acknowledgment\n             by synchronous readers. This caused blocking of this operation,\n             which could not be resolved before max_blocking_time of the\n             reliability QoS policy elapsed."]
    pub fn dds_dispose_ts(
        writer: dds_entity_t,
        data: *const ::std::ffi::c_void,
        timestamp: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation disposes an instance, identified by the instance handle.\n @ingroup writing\n @component write_data\n\n This operation requests the Data Distribution Service to modify the instance and\n mark it for deletion. Copies of the instance and its corresponding samples, which are\n stored in every connected reader and, dependent on the QoS policy settings (also in\n the Transient and Persistent stores) will be modified and marked for deletion by\n setting their dds_instance_state_t to DDS_NOT_ALIVE_DISPOSED_INSTANCE_STATE.\n\n @par Instance Handle\n The given instance handle must correspond to the value that was returned by either\n the dds_register_instance operation, dds_register_instance_ts or dds_lookup_instance.\n If there is no correspondence, then the result of the operation is unspecified.\n\n @param[in]  writer The writer to dispose the data instance from.\n @param[in]  handle The handle to identify an instance.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             At least one of the arguments is invalid\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this writer"]
    pub fn dds_dispose_ih(writer: dds_entity_t, handle: dds_instance_handle_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation disposes an instance with a specific timestamp, identified by the instance handle.\n @ingroup writing\n @component write_data\n\n This operation performs the same functions as dds_dispose_ih() except that\n the application provides the value for the source_timestamp that is made\n available to connected reader objects. This timestamp is important for the\n interpretation of the destination_order QoS policy.\n\n @param[in]  writer    The writer to dispose the data instance from.\n @param[in]  handle    The handle to identify an instance.\n @param[in]  timestamp The timestamp used as source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The sample is written and the instance is marked for deletion.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             At least one of the arguments is invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this writer."]
    pub fn dds_dispose_ih_ts(
        writer: dds_entity_t,
        handle: dds_instance_handle_t,
        timestamp: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Write the value of a data instance\n @ingroup writing\n @component write_data\n\n With this API, the value of the source timestamp is automatically made\n available to the data reader by the service.\n\n @param[in]  writer The writer entity.\n @param[in]  data Value to be written.\n\n @returns dds_return_t indicating success or failure."]
    pub fn dds_write(writer: dds_entity_t, data: *const ::std::ffi::c_void) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Flush a writers batched writes\n @ingroup writing\n @component write_data\n\n When using write batching you can manually batch small writes into larger\n datapackets for network efficiency. The normal `dds_write()` no longer\n guarantee that data is sent on the network automatically.\n\n @param[in]  entity The writer entity.\n\n @returns A dds_return_t indicating success or failure.\n @retval DDS_RETCODE_OK\n             The writer successfully forwarded to the network.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_write_flush(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Write a serialized value of a data instance\n @ingroup writing\n @component write_data\n\n This call causes the writer to write the serialized value that is provided\n in the serdata argument.  Timestamp and statusinfo fields are set to the\n current time and 0 (indicating a regular write), respectively.\n\n @param[in]  writer The writer entity.\n @param[in]  serdata Serialized value to be written.\n\n @returns A dds_return_t indicating success or failure. On error, some writers failed to flush buffered messages.\n\n @retval DDS_RETCODE_OK\n             The writer successfully wrote the serialized value.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n             The writer failed to write the serialized value reliably within the specified max_blocking_time."]
    pub fn dds_writecdr(writer: dds_entity_t, serdata: *mut ddsi_serdata) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Write a serialized value of a data instance\n @ingroup writing\n @component write_data\n\n This call causes the writer to write the serialized value that is provided\n in the serdata argument.  Timestamp and statusinfo are used as is.\n\n @param[in]  writer The writer entity.\n @param[in]  serdata Serialized value to be written.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The writer successfully wrote the serialized value.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_TIMEOUT\n             The writer failed to write the serialized value reliably within the specified max_blocking_time."]
    pub fn dds_forwardcdr(writer: dds_entity_t, serdata: *mut ddsi_serdata) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Write the value of a data instance along with the source timestamp passed.\n @ingroup writing\n @component write_data\n\n @param[in]  writer The writer entity.\n @param[in]  data Value to be written.\n @param[in]  timestamp Source timestamp (>= 0).\n\n @returns A dds_return_t indicating success or failure."]
    pub fn dds_write_ts(
        writer: dds_entity_t,
        data: *const ::std::ffi::c_void,
        timestamp: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a readcondition associated to the given reader.\n @ingroup readcondition\n @component data_query\n\n The readcondition allows specifying which samples are of interest in\n a data reader's history, by means of a mask. The mask is or'd with\n the flags that are dds_sample_state_t, dds_view_state_t and\n dds_instance_state_t.\n\n Based on the mask value set, the readcondition gets triggered when\n data is available on the reader.\n\n Waitsets allow waiting for an event on some of any set of entities.\n This means that the readcondition can be used to wake up a waitset when\n data is in the reader history with states that matches the given mask.\n\n @note The parent reader and every of its associated conditions (whether\n       they are readconditions or queryconditions) share the same resources.\n       This means that one of these entities reads or takes data, the states\n       of the data will change for other entities automatically. For instance,\n       if one reads a sample, then the sample state will become 'read' for all\n       associated reader/conditions. Or if one takes a sample, then it's not\n       available to any other associated reader/condition.\n\n @param[in]  reader  Reader to associate the condition to.\n @param[in]  mask    Interest (dds_sample_state_t|dds_view_state_t|dds_instance_state_t).\n\n @returns A valid condition handle or an error code.\n\n @retval >0\n             A valid condition handle\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_create_readcondition(reader: dds_entity_t, mask: u32) -> dds_entity_t;
}
#[doc = " @brief Function signature for a querycondition filter\n @ingroup querycondition"]
pub type dds_querycondition_filter_fn =
    ::std::option::Option<unsafe extern "C" fn(sample: *const ::std::ffi::c_void) -> bool>;
unsafe extern "C" {
    #[doc = " @brief Creates a queryondition associated to the given reader.\n @ingroup querycondition\n @component data_query\n\n The queryondition allows specifying which samples are of interest in\n a data reader's history, by means of a mask and a filter. The mask is\n or'd with the flags that are dds_sample_state_t, dds_view_state_t and\n dds_instance_state_t.\n\n Based on the mask value set and data that matches the filter, the\n querycondition gets triggered when data is available on the reader.\n\n Waitsets allow waiting for an event on some of any set of entities.\n This means that the querycondition can be used to wake up a waitset when\n data is in the reader history with states that matches the given mask\n and filter.\n\n @note The parent reader and every of its associated conditions (whether\n       they are readconditions or queryconditions) share the same resources.\n       This means that one of these entities reads or takes data, the states\n       of the data will change for other entities automatically. For instance,\n       if one reads a sample, then the sample state will become 'read' for all\n       associated reader/conditions. Or if one takes a sample, then it's not\n       available to any other associated reader/condition.\n\n @param[in]  reader  Reader to associate the condition to.\n @param[in]  mask    Interest (dds_sample_state_t|dds_view_state_t|dds_instance_state_t).\n @param[in]  filter  Callback that the application can use to filter specific samples.\n\n @returns A valid condition handle or an error code\n\n @retval >=0\n             A valid condition handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_create_querycondition(
        reader: dds_entity_t,
        mask: u32,
        filter: dds_querycondition_filter_fn,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Creates a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n Waitsets allow waiting for an event on some of any set of entities.\n This means that the guardcondition can be used to wake up a waitset when\n data is in the reader history with states that matches the given mask.\n\n @param[in]   owner  Participant on which to create the guardcondition.\n\n @returns A valid condition handle or an error code.\n\n @retval >0\n             A valid condition handle\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_create_guardcondition(owner: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Sets the trigger status of a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n @param[in]   guardcond  Guard condition to set the trigger status of.\n @param[in]   triggered  The triggered status to set.\n\n @retval DDS_RETCODE_OK\n             Operation successful\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_set_guardcondition(guardcond: dds_entity_t, triggered: bool) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Reads the trigger status of a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n @param[in]   guardcond  Guard condition to read the trigger status of.\n @param[out]  triggered  The triggered status read from the guard condition.\n\n @retval DDS_RETCODE_OK\n             Operation successful\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_guardcondition(guardcond: dds_entity_t, triggered: *mut bool) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Reads and resets the trigger status of a guardcondition.\n @ingroup guardcondition\n @component guard_condition\n\n @param[in]   guardcond  Guard condition to read and reset the trigger status of.\n @param[out]  triggered  The triggered status read from the guard condition.\n\n @retval DDS_RETCODE_OK\n             Operation successful\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_guardcondition(guardcond: dds_entity_t, triggered: *mut bool) -> dds_return_t;
}
#[doc = " @brief Waitset attachment argument.\n @ingroup waitset\n\n Every entity that is attached to the waitset can be accompanied by such\n an attachment argument. When the waitset wait is unblocked because of an\n entity that triggered, then the returning array will be populated with\n these attachment arguments that are related to the triggered entity."]
pub type dds_attach_t = isize;
unsafe extern "C" {
    #[doc = " @brief Create a waitset and allocate the resources required\n @ingroup waitset\n @component waitset\n\n A WaitSet object allows an application to wait until one or more of the\n conditions of the attached entities evaluates to TRUE or until the timeout\n expires.\n\n @param[in]  owner  Domain participant which the WaitSet contains.\n\n @returns A valid waitset handle or an error code.\n\n @retval >=0\n             A valid waitset handle.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_create_waitset(owner: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Acquire previously attached entities.\n @ingroup waitset\n @component waitset\n\n This functions takes a pre-allocated list to put the entities in and\n will return the number of found entities. It is possible that the given\n size of the list is not the same as the number of found entities. If\n less entities are found, then the last few entries in the list are\n untouched. When more entities are found, then only 'size' number of\n entries are inserted into the list, but still the complete count of the\n found entities is returned. Which entities are returned in the latter\n case is undefined.\n\n @param[in]  waitset  Waitset from which to get its attached entities.\n @param[out] entities Pre-allocated array to contain the found entities.\n @param[in]  size     Size of the pre-allocated entities' list.\n\n @returns A dds_return_t with the number of children or an error code.\n\n @retval >=0\n             Number of children found (can be larger than 'size').\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entities parameter is NULL, while a size is provided.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The waitset has already been deleted."]
    pub fn dds_waitset_get_entities(
        waitset: dds_entity_t,
        entities: *mut dds_entity_t,
        size: usize,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation attaches an Entity to the WaitSet.\n @ingroup waitset\n @component waitset\n\n This operation attaches an Entity to the WaitSet. The dds_waitset_wait()\n will block when none of the attached entities are triggered. 'Triggered'\n (dds_triggered()) doesn't mean the same for every entity:\n  - Reader/Writer/Publisher/Subscriber/Topic/Participant\n      - These are triggered when their status changed.\n  - WaitSet\n      - Triggered when trigger value was set to true by the application.\n        It stays triggered until application sets the trigger value to\n        false (dds_waitset_set_trigger()). This can be used to wake up an\n        waitset for different reasons (f.i. termination) than the 'normal'\n        status change (like new data).\n  - ReadCondition/QueryCondition\n      - Triggered when data is available on the related Reader that matches\n        the Condition.\n\n Multiple entities can be attached to a single waitset. A particular entity\n can be attached to multiple waitsets. However, a particular entity can not\n be attached to a particular waitset multiple times.\n\n @param[in]  waitset  The waitset to attach the given entity to.\n @param[in]  entity   The entity to attach.\n @param[in]  x        Blob that will be supplied when the waitset wait is\n                      triggered by the given entity.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Entity attached.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The given waitset or entity are not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The waitset has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The entity was already attached."]
    pub fn dds_waitset_attach(
        waitset: dds_entity_t,
        entity: dds_entity_t,
        x: dds_attach_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation detaches an Entity from the WaitSet.\n @ingroup waitset\n @component waitset\n\n @param[in]  waitset  The waitset to detach the given entity from.\n @param[in]  entity   The entity to detach.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Entity detached.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The given waitset or entity are not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The waitset has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The entity is not attached."]
    pub fn dds_waitset_detach(waitset: dds_entity_t, entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Sets the trigger_value associated with a waitset.\n @ingroup waitset\n @component waitset\n\n When the waitset is attached to itself and the trigger value is\n set to 'true', then the waitset will wake up just like with an\n other status change of the attached entities.\n\n This can be used to forcefully wake up a waitset, for instance\n when the application wants to shut down. So, when the trigger\n value is true, the waitset will wake up or not wait at all.\n\n The trigger value will remain true until the application sets it\n false again deliberately.\n\n @param[in]  waitset  The waitset to set the trigger value on.\n @param[in]  trigger  The trigger value to set.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             Trigger value set.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The given waitset is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The waitset has already been deleted."]
    pub fn dds_waitset_set_trigger(waitset: dds_entity_t, trigger: bool) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation allows an application thread to wait for the a status\n        change or other trigger on (one of) the entities that are attached to\n        the WaitSet.\n @ingroup waitset\n @component waitset\n\n The dds_waitset_wait() operation blocks until the some of the attached\n entities have triggered or \"reltimeout\" has elapsed.\n 'Triggered' (dds_triggered()) doesn't mean the same for every entity:\n  - Reader/Writer/Publisher/Subscriber/Topic/Participant\n      - These are triggered when their status changed.\n  - WaitSet\n      - Triggered when trigger value was set to true by the application.\n        It stays triggered until application sets the trigger value to\n        false (dds_waitset_set_trigger()). This can be used to wake up an\n        waitset for different reasons (f.i. termination) than the 'normal'\n        status change (like new data).\n  - ReadCondition/QueryCondition\n      - Triggered when data is available on the related Reader that matches\n        the Condition.\n\n This functions takes a pre-allocated list to put the \"xs\" blobs in (that\n were provided during the attach of the related entities) and will return\n the number of triggered entities. It is possible that the given size\n of the list is not the same as the number of triggered entities. If less\n entities were triggered, then the last few entries in the list are\n untouched. When more entities are triggered, then only 'size' number of\n entries are inserted into the list, but still the complete count of the\n triggered entities is returned. Which \"xs\" blobs are returned in the\n latter case is undefined.\n\n In case of a time out, the return value is 0.\n\n Deleting the waitset while the application is blocked results in an\n error code (i.e. < 0) returned by \"wait\".\n\n Multiple threads may block on a single waitset at the same time;\n the calls are entirely independent.\n\n An empty waitset never triggers (i.e., dds_waitset_wait on an empty\n waitset is essentially equivalent to a sleep).\n\n The \"dds_waitset_wait_until\" operation is the same as the\n \"dds_waitset_wait\" except that it takes an absolute timeout.\n\n @param[in]  waitset    The waitset to set the trigger value on.\n @param[out] xs         Pre-allocated list to store the 'blobs' that were\n                        provided during the attach of the triggered entities.\n @param[in]  nxs        The size of the pre-allocated blobs list.\n @param[in]  reltimeout Relative timeout\n\n @returns A dds_return_t with the number of entities triggered or an error code\n\n @retval >0\n             Number of entities triggered.\n @retval  0\n             Time out (no entities were triggered).\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The given waitset is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The waitset has already been deleted."]
    pub fn dds_waitset_wait(
        waitset: dds_entity_t,
        xs: *mut dds_attach_t,
        nxs: usize,
        reltimeout: dds_duration_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation allows an application thread to wait for the a status\n        change or other trigger on (one of) the entities that are attached to\n        the WaitSet.\n @ingroup waitset\n @component waitset\n\n The dds_waitset_wait() operation blocks until the some of the attached\n entities have triggered or \"abstimeout\" has been reached.\n 'Triggered' (dds_triggered()) doesn't mean the same for every entity:\n  - Reader/Writer/Publisher/Subscriber/Topic/Participant\n      - These are triggered when their status changed.\n  - WaitSet\n      - Triggered when trigger value was set to true by the application.\n        It stays triggered until application sets the trigger value to\n        false (dds_waitset_set_trigger()). This can be used to wake up an\n        waitset for different reasons (f.i. termination) than the 'normal'\n        status change (like new data).\n  - ReadCondition/QueryCondition\n      - Triggered when data is available on the related Reader that matches\n        the Condition.\n\n This functions takes a pre-allocated list to put the \"xs\" blobs in (that\n were provided during the attach of the related entities) and will return\n the number of triggered entities. It is possible that the given size\n of the list is not the same as the number of triggered entities. If less\n entities were triggered, then the last few entries in the list are\n untouched. When more entities are triggered, then only 'size' number of\n entries are inserted into the list, but still the complete count of the\n triggered entities is returned. Which \"xs\" blobs are returned in the\n latter case is undefined.\n\n In case of a time out, the return value is 0.\n\n Deleting the waitset while the application is blocked results in an\n error code (i.e. < 0) returned by \"wait\".\n\n Multiple threads may block on a single waitset at the same time;\n the calls are entirely independent.\n\n An empty waitset never triggers (i.e., dds_waitset_wait on an empty\n waitset is essentially equivalent to a sleep).\n\n The \"dds_waitset_wait\" operation is the same as the\n \"dds_waitset_wait_until\" except that it takes an relative timeout.\n\n The \"dds_waitset_wait\" operation is the same as the \"dds_wait\"\n except that it takes an absolute timeout.\n\n @param[in]  waitset    The waitset to set the trigger value on.\n @param[out] xs         Pre-allocated list to store the 'blobs' that were\n                        provided during the attach of the triggered entities.\n @param[in]  nxs        The size of the pre-allocated blobs list.\n @param[in]  abstimeout Absolute timeout\n\n @returns A dds_return_t with the number of entities triggered or an error code.\n\n @retval >0\n             Number of entities triggered.\n @retval  0\n             Time out (no entities were triggered).\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The given waitset is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The waitset has already been deleted."]
    pub fn dds_waitset_wait_until(
        waitset: dds_entity_t,
        xs: *mut dds_attach_t,
        nxs: usize,
        abstimeout: dds_time_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n Reads samples from the reader history cache without marking these samples as \"read\". It starts\n with an arbitrary (matching) instance, reading (matching) samples from the oldest to\n the most recent, then continues with another arbitrarily selected (matching) instance,\n etc. This continues until it has traversed the entire history cache or has gathered\n `maxs` samples.\n\n The @ref dds_read operation can be used to mark the returned samples as \"read\"; the\n @ref dds_take operation can be used to also remove the returned samples from the\n history cache.\n\n For the plain `dds_peek` operation, all instances and samples match. This is different\n for the more selective variants, where the documentation refers to this function and\n only gives detailed information where it differs.\n\n The `buf` parameter is used as follows:\n - If `buf[0]` on entry is a null pointer:\n   - on return `buf[0]` .. `buf[k-1]` will point to middleware-owned memory (a.k.a. loans); and\n   - `buf[k]` will be a null pointer if `0 <= k < bufsz`; and\n   - `0 <= k <= maxs` is the number of samples read (a.k.a. the return value).\n\n - If `buf[0]` on entry is an outstanding sample loan (i.e., resulting from a previous call to, e.g., read), then:\n   - all of `buf[0]` .. `buf[k-1]` must be pointers to outstanding loans; and\n   - `k` = `bufsz` or `buf[k]` is a null pointer; where\n   - `1 <= k < bufsz`; and\n   - all these outstanding loans are returned as-if through @ref dds_return_loan; and\n   - the result will be as if `buf[0]` had been a null pointer on entry.\n\n - If `buf[0]` on entry is any other address, then:\n   - all of `buf[0]` .. `buf[bufsz-1]` must point to memory suitable for storing samples; and\n   - the C binding requires that this memory must be initialized such that all embedded strings, externals,\n     optionals and sequences are initialized (null pointers are ok, sequences may also be all-0)\n\n The loans returned by `dds_peek` operation are potentially shared copies of the data and the contents\n may not be modified. If a private copy is required, pass in non-null pointers to memory as in the third case\n above.\n\n The `si` array is filled with sample information on all returned samples. If the\n `valid_data` flag is set in the sample info for a particular sample, all fields of that\n sample are valid. Otherwise, only the key value is valid. For the C binding, all other\n fields will be set to 0.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of  `bufsz` pointers to samples (see above).\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_peek(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data matching sample/view/instance states from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n See @ref dds_peek. The matching criterion referred to there is that the\n sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_peek_mask(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data for a specific instance from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n See @ref dds_peek. The matching criterion referred to there is that the instance\n handle must equal the `handle` parameter.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_peek_instance(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        handle: dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data for a specific instance matching sample/view/instance states from the data reader, read or query condition without updating state\n @ingroup reading\n @component read_data\n\n See @ref dds_peek. The matching criterion referred to there is that:\n - the instance handle must equal the `handle` parameter; and\n - the sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of  `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_peek_instance_mask(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read the first unread sample without updating state\n @ingroup reading\n @component read_data\n\n Equivalent to `dds_peek_mask(reader, buf, si, 1, 1, DDS_NOT_READ_SAMPLE_STATE)`.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_peek_next(
        reader: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n Reads samples from the reader history cache, marking these samples as \"read\". It starts\n with an arbitrary (matching) instance, reading (matching) samples from the oldest to\n the most recent, then continues with another arbitrarily selected (matching) instance,\n etc. This continues until it has traversed the entire history cache or has gathered\n `maxs` samples.\n\n The @ref dds_peek operation can be read samples without marking them as \"read\"; the\n @ref dds_take operation can be used to also remove the returned samples from the\n history cache.\n\n For the plain `dds_read` operation, all instances and samples match. This is different\n for the more selective variants, where the documentation refers to this function and\n only gives detailed information where it differs.\n\n The `buf` parameter is used as follows:\n - If `buf[0]` on entry is a null pointer:\n   - on return `buf[0]` .. `buf[k-1]` will point to middleware-owned memory (a.k.a. loans); and\n   - `buf[k]` will be a null pointer if `0 <= k < bufsz`; and\n   - `0 <= k <= maxs` is the number of samples read (a.k.a. the return value).\n\n - If `buf[0]` on entry is an outstanding sample loan (i.e., resulting from a previous call to, e.g., read), then:\n   - all of `buf[0]` .. `buf[k-1]` must be pointers to outstanding loans; and\n   - `k` = `bufsz` or `buf[k]` is a null pointer; where\n   - `1 <= k < bufsz`; and\n   - all these outstanding loans are returned as-if through @ref dds_return_loan; and\n   - the result will be as if `buf[0]` had been a null pointer on entry.\n\n - If `buf[0]` on entry is any other address, then:\n   - all of `buf[0]` .. `buf[bufsz-1]` must point to memory suitable for storing samples; and\n   - the C binding requires that this memory must be initialized such that all embedded strings, externals,\n     optionals and sequences are initialized (null pointers are ok, sequences may also be all-0)\n\n The loans returned by `dds_read` operation are potentially shared copies of the data and the contents\n may not be modified. If a private copy is required, pass in non-null pointers to memory as in the third case\n above.\n\n The `si` array is filled with sample information on all returned samples. If the\n `valid_data` flag is set in the sample info for a particular sample, all fields of that\n sample are valid. Otherwise, only the key value is valid. For the C binding, all other\n fields will be set to 0.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of  `bufsz` pointers to samples (see above).\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for `dds_read` where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_read. The matching criterion referred to there is that the\n sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_mask(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_mask where `bufsz` = `maxs`.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in]  maxs Maximum number of samples to read.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_mask_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_read. The matching criterion referred to there is that the instance\n handle must equal the `handle` parameter.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_read_instance(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        handle: dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_instance where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_read_instance_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
        handle: dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_read. The matching criterion referred to there is that:\n - the instance handle must equal the `handle` parameter; and\n - the sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of  `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_read_instance_mask(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_instance_mask where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_read_instance_mask_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read the first unread sample\n @ingroup reading\n @component read_data\n\n Equivalent to `dds_read_mask(reader, buf, si, 1, 1, DDS_NOT_READ_SAMPLE_STATE)`.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_next(
        reader: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read the first unread sample\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_read_next.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_read_next_wl(
        reader: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n Reads and removes samples from the reader history cache. It starts with an arbitrary\n (matching) instance, reading (matching) samples from the oldest to the most recent,\n then continues with another arbitrarily selected (matching) instance, etc. This\n continues until it has traversed the entire history cache or has gathered `maxs`\n samples.\n\n The @ref dds_read operation can be used to read samples without removing them from\n the history cache but marking them as \"read\"; the @ref dds_peek operation can be used\n to read samples from the cache without changing any internal state.\n\n For the plain `dds_take` operation, all instances and samples match. This is different\n for the more selective variants, where the documentation refers to this function and\n only gives detailed information where it differs.\n\n The `buf` parameter is used as follows:\n - If `buf[0]` on entry is a null pointer:\n   - on return `buf[0]` .. `buf[k-1]` will point to middleware-owned memory (a.k.a. loans); and\n   - `buf[k]` will be a null pointer if `0 <= k < bufsz`; and\n   - `0 <= k <= maxs` is the number of samples read (a.k.a. the return value).\n\n - If `buf[0]` on entry is an outstanding sample loan (i.e., resulting from a previous call to, e.g., read), then:\n   - all of `buf[0]` .. `buf[k-1]` must be pointers to outstanding loans; and\n   - `k` = `bufsz` or `buf[k]` is a null pointer; where\n   - `1 <= k < bufsz`; and\n   - all these outstanding loans are returned as-if through @ref dds_return_loan; and\n   - the result will be as if `buf[0]` had been a null pointer on entry.\n\n - If `buf[0]` on entry is any other address, then:\n   - all of `buf[0]` .. `buf[bufsz-1]` must point to memory suitable for storing samples; and\n   - the C binding requires that this memory must be initialized such that all embedded strings, externals,\n     optionals and sequences are initialized (null pointers are ok, sequences may also be all-0)\n\n The loans returned by `dds_take` operation are potentially shared copies of the data and the contents\n may not be modified. If a private copy is required, pass in non-null pointers to memory as in the third case\n above.\n\n The `si` array is filled with sample information on all returned samples. If the\n `valid_data` flag is set in the sample info for a particular sample, all fields of that\n sample are valid. Otherwise, only the key value is valid. For the C binding, all other\n fields will be set to 0.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of  `bufsz` pointers to samples (see above).\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_take. The matching criterion referred to there is that the\n sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_mask(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for `dds_take_mask` where `bufsz` = `maxs`.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in]  maxs Maximum number of samples to read.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_mask_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_take. The matching criterion referred to there is that the instance\n handle must equal the `handle` parameter.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_take_instance(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        handle: dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data for a specific instance from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take_instance where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_take_instance_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
        handle: dds_instance_handle_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n See @ref dds_take. The matching criterion referred to there is that:\n - the instance handle must equal the `handle` parameter; and\n - the sample/view/instance states must match the specification in the `mask` parameter.\n\n If the sample/view/instance state component in the mask is 0 and `reader_or_condition`\n references a data reader (as opposed to a read or query condition), it is treated as\n equivalent to any sample/view/instance state. If `reader_or_condition` references a\n read or query condition, the matching states are the union of `mask` and the\n condition's mask.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of  `bufsz` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] bufsz The size of buffer provided.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_take_instance_mask(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        bufsz: usize,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take data for a specific instance matching sample/view/instance states from the data reader, read or query condition\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take_instance_mask where `bufsz` = `maxs`.\n\n @param[in] reader_or_condition Reader, readcondition or querycondition entity.\n @param[in,out] buf An array of `maxs` pointers to samples.\n @param[out] si Pointer to an array of @ref dds_sample_info_t returned for each data value.\n @param[in] maxs Maximum number of samples to read.\n @param[in] handle Instance handle related to the samples to read.\n @param[in] mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples or an error code.\n\n @retval >= 0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_take_instance_mask_wl(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take the first unread sample\n @ingroup reading\n @component read_data\n\n Equivalent to `dds_take_mask(reader, buf, si, 1, 1, DDS_NOT_READ_SAMPLE_STATE)`.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_next(
        reader: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take the first unread sample\n @ingroup reading\n @component read_data\n\n @deprecated Alias for @ref dds_take_next.\n\n @param[in] reader The reader entity.\n @param[in,out] buf A pointer to a sample.\n @param[out] si The pointer to @ref dds_sample_info_t returned for a data value.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_take_next_wl(
        reader: dds_entity_t,
        buf: *mut *mut ::std::ffi::c_void,
        si: *mut dds_sample_info_t,
    ) -> dds_return_t;
}
#[doc = " @brief Function type for sample collector argument in read/take-with-collector\n @ingroup reading\n @component read_data\n\n This defines the function type used by @ref dds_read_with_collector and @ref\n dds_take_with_collector for passing samples to be included in the result to an\n application defined function for collecting them in whatever way it needs.  The\n function is called for each sample while the RHC is locked, and so it is advisable to\n only perform a small amount of work.  Calling Cyclone DDS API functions is not\n supported.\n\n It is called for the samples in the order compatible with the requirements of the DDS\n specification, in particular that means instances are contiguous.\n\n @param[in] arg A pointer to the application-defined argument passed to read/take\n @param[in] si A fully initialized sample info object\n @param[in] st The underlying ddsi_sertype (needed only if si.valid_data is false)\n @param[in] sd The sample, if si.valid_data is false, the type has been erased (hence the \"st\" argument)\n\n @return An indication of success or failure\n @retval DDS_RETCODE_OK\n           the sample was successfully handled and reading can continue\n @retval otherwise\n           an error, this will propagated to the caller if it occurs on the first call\n           otherwise the return valu eof read/take will be the number of samples\n           successfully collected"]
pub type dds_read_with_collector_fn_t = ::std::option::Option<
    unsafe extern "C" fn(
        arg: *mut ::std::ffi::c_void,
        si: *const dds_sample_info_t,
        st: *const ddsi_sertype,
        sd: *mut ddsi_serdata,
    ) -> dds_return_t,
>;
unsafe extern "C" {
    #[doc = " @brief Read samples while collecting result in an application-defined way without updating state\n @ingroup reading\n @component read_data\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Collected samples are not marked as read.\n\n @param[in] reader_or_condition Handle of a reader or a read/query condition\n @param[in] maxs Maximum number of samples (1 .. INT32_MAX)\n @param[in] handle Instance handle or 0 if not reading a specific instance\n @param[in] mask Sample/view/instance state mask\n @param[in] collect_sample Function be called for each sample in the result\n @param[in] collect_sample_arg Arbitrary argument passed to \"collect_sample\"\n @return The number of returned samples or an error code\n @retval > 0 number of samples passed successfully collected by collect_sample\n @retval 0   success, no matching data\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval < 0 Return value of failing collect_sample on first invocation"]
    pub fn dds_peek_with_collector(
        reader_or_condition: dds_entity_t,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
        collect_sample: dds_read_with_collector_fn_t,
        collect_sample_arg: *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Read samples while collecting result in an application-defined way\n @ingroup reading\n @component read_data\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Collected samples are marked as read.\n\n @param[in] reader_or_condition Handle of a reader or a read/query condition\n @param[in] maxs Maximum number of samples (1 .. INT32_MAX)\n @param[in] handle Instance handle or 0 if not reading a specific instance\n @param[in] mask Sample/view/instance state mask\n @param[in] collect_sample Function be called for each sample in the result\n @param[in] collect_sample_arg Arbitrary argument passed to \"collect_sample\"\n @return The number of returned samples or an error code\n @retval > 0 number of samples passed successfully collected by collect_sample\n @retval 0   success, no matching data\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval < 0 Return value of failing collect_sample on first invocation"]
    pub fn dds_read_with_collector(
        reader_or_condition: dds_entity_t,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
        collect_sample: dds_read_with_collector_fn_t,
        collect_sample_arg: *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Take samples while collecting result in an application-defined way\n @ingroup reading\n @component read_data\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Collected samples are removed from the history cache.\n\n @param[in] reader_or_condition Handle of a reader or a read/query condition\n @param[in] maxs Maximum number of samples (1 .. INT32_MAX)\n @param[in] handle Instance handle or 0 if not taking from a specific instance\n @param[in] mask Sample/view/instance state mask\n @param[in] collect_sample Function be called for each sample in the result\n @param[in] collect_sample_arg Arbitrary argument passed to \"collect_sample\"\n @return The number of returned samples or an error code\n @retval > 0 number of samples passed successfully collected by collect_sample\n @retval 0   success, no matching data\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval < 0 Return value of failing collect_sample on first invocation"]
    pub fn dds_take_with_collector(
        reader_or_condition: dds_entity_t,
        maxs: u32,
        handle: dds_instance_handle_t,
        mask: u32,
        collect_sample: dds_read_with_collector_fn_t,
        collect_sample_arg: *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get references to a representation of the samples in a reader history cache and their accompanying sample infodata values (of same type) without updating state\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are not updated; @ref dds_readcdr updates these states; @ref dds_takecdr removes the data\n from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_peek_with_collector.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in]  maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The precondition for this operation is not met."]
    pub fn dds_peekcdr(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ddsi_serdata,
        maxs: u32,
        si: *mut dds_sample_info_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get references to a representation of the samples of a specific instance in a reader history cache and their accompanying sample infodata values (of same type) without updating state\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are not updated; @ref dds_readcdr updates these states; @ref dds_takecdr removes the data\n from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_peek_with_collector.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in]  maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in]  handle Handle of instance from which to read samples.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_peekcdr_instance(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ddsi_serdata,
        maxs: u32,
        si: *mut dds_sample_info_t,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get references to a representation of the samples in a reader history cache and their accompanying sample infodata values (of same type) and marking them as read\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are updated; @ref dds_peekcdr returns the data without updating these states; @ref dds_takecdr\n removes the data from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_read_with_collector.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in]  maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The precondition for this operation is not met."]
    pub fn dds_readcdr(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ddsi_serdata,
        maxs: u32,
        si: *mut dds_sample_info_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get references to a representation of the samples of a specific instance in a reader history cache and their accompanying sample infodata values (of same type) and marking them as read\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is left in the reader history cache and the sample state and view state of the returned samples and their\n instances are updated; @ref dds_peekcdr returns the data without updating these states; @ref dds_takecdr\n removes the data from the history cache.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_read_with_collector.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in]  maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in]  handle Handle of instance from which to read samples.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_readcdr_instance(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ddsi_serdata,
        maxs: u32,
        si: *mut dds_sample_info_t,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get references to a representation of the samples in a reader history cache and their accompanying sample infodata values (of same type) and remove them from the cache\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is removed from the reader history cache; @ref dds_peekcdr leaves them in and leaves the sample and\n view states unchanged; @ref dds_readcdr leaves the data in the cache but does update the sample and view\n states.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_take_with_collector.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in]  maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The precondition for this operation is not met."]
    pub fn dds_takecdr(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ddsi_serdata,
        maxs: u32,
        si: *mut dds_sample_info_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get references to a representation of the samples of a specific instance in a reader history cache and their accompanying sample infodata values (of same type) and remove them from the cache\n @ingroup reading\n @component read_data\n\n This operation returns references to the internal representation of samples (`struct ddsi_serdata`), which can\n then be used in a variety of ways. Examples are converting it to application representation and obtaining a copy or a\n reference of the serialized representation. If the underlying implementation (`struct ddsi_sertype`) is known to\n the application, other options may exist as well.\n\n The data is removed from the reader history cache; @ref dds_peekcdr leaves them in and leaves the sample and\n view states unchanged; @ref dds_readcdr leaves the data in the cache but does update the sample and view\n states.\n\n The returned references must eventually be released by calling @ref ddsi_serdata_unref. There is no guarantee\n the type pointer survives beyond the existence of the reader from which the references were read.\n\n When using a readcondition or querycondition, their masks are or'd with the given mask.\n\n If the sample/view/instance state component in the mask is 0 and there is no read or query condition,\n to combine it with, it is treated as equivalent to any sample/view/instance state.\n\n Note that this is a simple wrapper around @ref dds_take_with_collector.\n\n @param[in]  reader_or_condition Reader, readcondition or querycondition entity.\n @param[out] buf Filled with references @ref ddsi_serdata structures.\n @param[in]  maxs Maximum number of samples to read.\n @param[out] si Filled with sample info.\n @param[in]  handle Handle of instance from which to read samples.\n @param[in]  mask Filter the data based on dds_sample_state_t|dds_view_state_t|dds_instance_state_t.\n\n @returns A dds_return_t with the number of samples read or an error code.\n\n @retval >=0\n             Number of samples read.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the given arguments is not valid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted.\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n             The instance handle has not been registered with this reader."]
    pub fn dds_takecdr_instance(
        reader_or_condition: dds_entity_t,
        buf: *mut *mut ddsi_serdata,
        maxs: u32,
        si: *mut dds_sample_info_t,
        handle: dds_instance_handle_t,
        mask: u32,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation takes a sample and returns an instance handle to be used for subsequent operations.\n @ingroup instance_handle\n @component data_instance\n\n @param[in]  entity Reader or Writer entity.\n @param[in]  data   Sample with a key fields set.\n\n @returns instance handle or DDS_HANDLE_NIL if instance could not be found from key."]
    pub fn dds_lookup_instance(
        entity: dds_entity_t,
        data: *const ::std::ffi::c_void,
    ) -> dds_instance_handle_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation takes an instance handle and return a key-value corresponding to it.\n @ingroup instance_handle\n @component data_instance\n\n @param[in]  entity Reader, writer, readcondition or querycondition entity.\n @param[in]  ih     Instance handle.\n @param[out] data   pointer to an instance, to which the key ID corresponding to the instance handle will be\n    returned, the sample in the instance should be ignored.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One of the parameters was invalid or the topic does not exist.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n\n DOC_TODO: Check return codes for completeness"]
    pub fn dds_instance_get_key(
        entity: dds_entity_t,
        ih: dds_instance_handle_t,
        data: *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Begin coherent publishing or begin accessing a coherent set in a subscriber\n @ingroup publication\n @component coherent_sets\n\n Invoking on a Writer or Reader behaves as if dds_begin_coherent was invoked on its parent\n Publisher or Subscriber respectively.\n\n @param[in]  entity The entity that is prepared for coherent access.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_ERROR\n             An internal error has occurred.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The provided entity is invalid or not supported."]
    pub fn dds_begin_coherent(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief End coherent publishing or end accessing a coherent set in a subscriber\n @ingroup publication\n @component coherent_sets\n\n Invoking on a Writer or Reader behaves as if dds_end_coherent was invoked on its parent\n Publisher or Subscriber respectively.\n\n @param[in] entity The entity on which coherent access is finished.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The provided entity is invalid or not supported."]
    pub fn dds_end_coherent(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Trigger DATA_AVAILABLE event on contained readers\n @ingroup subscriber\n @component subscriber\n\n The DATA_AVAILABLE event is broadcast to all readers owned by this subscriber that currently\n have new data available. Any on_data_available listener callbacks attached to respective\n readers are invoked.\n\n @param[in] subscriber A valid subscriber handle.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The provided subscriber is invalid."]
    pub fn dds_notify_readers(subscriber: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Checks whether the entity has one of its enabled statuses triggered.\n @ingroup entity\n @component entity_status\n\n @param[in]  entity  Entity for which to check for triggered status.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_triggered(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get the topic\n @ingroup entity\n @component entity_relations\n\n This operation returns a topic (handle) when the function call is done\n with reader, writer, read condition or query condition. For instance, it\n will return the topic when it is used for creating the reader or writer.\n For the conditions, it returns the topic that is used for creating the reader\n which was used to create the condition.\n\n @param[in] entity The entity.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The entity has already been deleted."]
    pub fn dds_get_topic(entity: dds_entity_t) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @brief Get instance handles of the data readers matching a writer\n @ingroup builtintopic\n @component writer\n\n This operation fills the provided array with the instance handles\n of the data readers that match the writer.  On successful output,\n the number of entries of \"rds\" set is the minimum of the return\n value and the value of \"nrds\".\n\n @param[in] writer   The writer.\n @param[in] rds      The array to be filled.\n @param[in] nrds     The size of the rds array, at most the first\n                     nrds entries will be filled.  rds = NULL and nrds = 0\n                     is a valid way of determining the number of matched\n                     readers, but inefficient compared to relying on the\n                     matched publication status.\n\n @returns A dds_return_t indicating the number of matched readers\n             or failure.  The return value may be larger than nrds\n             if there are more matching readers than the array can\n             hold.\n\n @retval >=0\n             The number of matching readers.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not valid or rds = NULL and\n             nrds > 0.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_get_matched_subscriptions(
        writer: dds_entity_t,
        rds: *mut dds_instance_handle_t,
        nrds: usize,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get a description of a reader matched with the provided writer\n @ingroup builtintopic\n @component writer\n\n This operation looks up the reader instance handle in the set of\n readers matched with the specified writer, returning a freshly\n allocated sample of the DCPSSubscription built-in topic if found,\n and NULL if not.  The caller is responsible for freeing the\n memory allocated, e.g. using dds_builtintopic_free_endpoint.\n\n This operation is similar to performing a read of the given\n instance handle on a reader of the DCPSSubscription built-in\n topic, but this operation additionally filters on whether the\n reader is matched by the provided writer.\n\n @param[in] writer   The writer.\n @param[in] ih       The instance handle of a reader.\n\n @returns A newly allocated sample containing the information on the\n             reader, or a NULL pointer for any kind of failure.\n\n @retval != NULL\n             The requested data\n @retval NULL\n             The writer is not valid or ih is not an instance handle\n             of a matched reader."]
    pub fn dds_get_matched_subscription_data(
        writer: dds_entity_t,
        ih: dds_instance_handle_t,
    ) -> *mut dds_builtintopic_endpoint_t;
}
unsafe extern "C" {
    #[doc = " @brief Get instance handles of the data writers matching a reader\n @ingroup builtintopic\n @component reader\n\n This operation fills the provided array with the instance handles\n of the data writers that match the reader.  On successful output,\n the number of entries of \"wrs\" set is the minimum of the return\n value and the value of \"nwrs\".\n\n @param[in] reader   The reader.\n @param[in] wrs      The array to be filled.\n @param[in] nwrs     The size of the wrs array, at most the first\n             nwrs entries will be filled.  wrs = NULL and wrds = 0\n             is a valid way of determining the number of matched\n             readers, but inefficient compared to relying on the\n             matched publication status.\n\n @returns A dds_return_t indicating the number of matched writers\n             or failure.  The return value may be larger than nwrs\n             if there are more matching writers than the array can\n             hold.\n\n @retval >=0\n             The number of matching writers.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not valid or wrs = NULL and\n             nwrs > 0.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_get_matched_publications(
        reader: dds_entity_t,
        wrs: *mut dds_instance_handle_t,
        nwrs: usize,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Get a description of a writer matched with the provided reader\n @ingroup builtintopic\n @component reader\n\n This operation looks up the writer instance handle in the set of\n writers matched with the specified reader, returning a freshly\n allocated sample of the DCPSPublication built-in topic if found,\n and NULL if not.  The caller is responsible for freeing the\n memory allocated, e.g. using dds_builtintopic_free_endpoint.\n\n This operation is similar to performing a read of the given\n instance handle on a reader of the DCPSPublication built-in\n topic, but this operation additionally filters on whether the\n writer is matched by the provided reader.\n\n @param[in] reader   The reader.\n @param[in] ih       The instance handle of a writer.\n\n @returns A newly allocated sample containing the information on the\n             writer, or a NULL pointer for any kind of failure.\n\n @retval != NULL\n             The requested data\n @retval NULL\n             The reader is not valid or ih is not an instance handle\n             of a matched writer."]
    pub fn dds_get_matched_publication_data(
        reader: dds_entity_t,
        ih: dds_instance_handle_t,
    ) -> *mut dds_builtintopic_endpoint_t;
}
unsafe extern "C" {
    #[doc = " @brief Gets the type information from endpoint information that was\n        retrieved by dds_get_matched_subscription_data or\n        dds_get_matched_publication_data\n @ingroup builtintopic\n @component builtin_topic\n\n @param[in] builtintopic_endpoint  The builtintopic endpoint struct\n @param[out] type_info             Type information that will be allocated by this function in case of success.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One or more parameters are invalid"]
    pub fn dds_builtintopic_get_endpoint_type_info(
        builtintopic_endpoint: *mut dds_builtintopic_endpoint_t,
        type_info: *mut *const dds_typeinfo_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Free the endpoint information that was retrieved by\n        dds_get_matched_subscription_data or dds_get_matched_publication_data\n @ingroup builtintopic\n @component builtin_topic\n\n This operation deallocates the memory of the fields in a\n dds_builtintopic_endpoint_t struct and deallocates the\n struct itself.\n\n @param[in] builtintopic_endpoint  The builtintopic endpoint struct"]
    pub fn dds_builtintopic_free_endpoint(builtintopic_endpoint: *mut dds_builtintopic_endpoint_t);
}
unsafe extern "C" {
    #[doc = " @brief Free the provided topic information\n @ingroup builtintopic\n @component builtin_topic\n\n This operation deallocates the memory of the fields in a\n dds_builtintopic_topic_t struct and deallocates the\n struct itself.\n\n @param[in] builtintopic_topic  The builtintopic topic struct"]
    pub fn dds_builtintopic_free_topic(builtintopic_topic: *mut dds_builtintopic_topic_t);
}
unsafe extern "C" {
    #[doc = " @brief Free the provided participant information\n @ingroup builtintopic\n @component builtin_topic\n\n This operation deallocates the memory of the fields in a\n dds_builtintopic_participant_t struct and deallocates the\n struct itself.\n\n @param[in] builtintopic_participant  The builtintopic participant struct"]
    pub fn dds_builtintopic_free_participant(
        builtintopic_participant: *mut dds_builtintopic_participant_t,
    );
}
unsafe extern "C" {
    #[doc = " @brief This operation manually asserts the liveliness of a writer\n        or domain participant.\n @ingroup entity\n @component participant\n\n This operation manually asserts the liveliness of a writer\n or domain participant. This is used in combination with the Liveliness\n QoS policy to indicate that the entity remains active. This operation need\n only be used if the liveliness kind in the QoS is either\n DDS_LIVELINESS_MANUAL_BY_PARTICIPANT or DDS_LIVELINESS_MANUAL_BY_TOPIC.\n\n @param[in] entity  A domain participant or writer\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_assert_liveliness(entity: dds_entity_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This operation allows making the domain's network stack temporarily deaf and/or mute.\n @ingroup testing\n @component domain\n @warning Unstable API, for testing\n @unstable\n\n This is a support function for testing and, other special uses and is subject to change.\n\n @param[in] entity  A domain entity or an entity bound to a domain, such\n                    as a participant, reader or writer.\n @param[in] deaf    Whether to network stack should pretend to be deaf and\n                    ignore any incoming packets.\n @param[in] mute    Whether to network stack should pretend to be mute and\n                    discard any outgoing packets where it normally would.\n                    pass them to the operating system kernel for transmission.\n @param[in] reset_after  Any value less than INFINITY will cause it to\n                    set deaf = mute = false after reset_after ns have passed.\n                    This is done by an event scheduled for the appropriate\n                    time and otherwise forgotten. These events are not\n                    affected by subsequent calls to this function.\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object."]
    pub fn dds_domain_set_deafmute(
        entity: dds_entity_t,
        deaf: bool,
        mute: bool,
        reset_after: dds_duration_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This function resolves the type for the provided type identifier,\n which can e.g. be retrieved from endpoint or topic discovery data.\n @ingroup xtypes\n @component type_metadata\n\n @param[in]   entity              A domain entity or an entity bound to a domain, such\n                                  as a participant, reader or writer.\n @param[in]   type_id             Type identifier\n @param[in]   timeout             Timeout for waiting for requested type information to be available\n @param[out]  type_obj            The type information, untouched if type is not resolved\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The entity parameter is not a valid parameter, type_id or type name\n             is not provided, or the sertype out parameter is NULL\n @retval DDS_RETCODE_NOT_FOUND\n             A type with the provided type_id and type_name was not found\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_UNSUPPORTED\n             Cyclone DDS built without type discovery\n             (cf. DDS_HAS_TYPE_DISCOVERY)"]
    pub fn dds_get_typeobj(
        entity: dds_entity_t,
        type_id: *const dds_typeid_t,
        timeout: dds_duration_t,
        type_obj: *mut *mut dds_typeobj_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Free the type object that was retrieved using dds_get_typeobj\n @ingroup xtypes\n @component type_metadata\n\n @param[in]  type_obj     The type object\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The type_obj parameter is NULL\n @retval DDS_RETCODE_UNSUPPORTED\n             Cyclone DDS built without type discovery\n             (cf. DDS_HAS_TYPE_DISCOVERY)"]
    pub fn dds_free_typeobj(type_obj: *mut dds_typeobj_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief This function gets the type information from the\n provided topic, reader or writer\n @ingroup xtypes\n @component type_metadata\n\n @param[in]   entity          A topic/reader/writer entity\n @param[out]  type_info       The type information, untouched if returncode indicates failure\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The type_info parameter is null\n @retval DDS_RETCODE_NOT_FOUND\n             The entity does not have type information set\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_UNSUPPORTED\n             Cyclone DDS built without type discovery\n             (cf. DDS_HAS_TYPELIB)"]
    pub fn dds_get_typeinfo(
        entity: dds_entity_t,
        type_info: *mut *mut dds_typeinfo_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Free the type information that was retrieved using dds_get_typeinfo\n @ingroup xtypes\n @component type_metadata\n\n @param[in]  type_info     The type information\n\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The type_info parameter is NULL\n @retval DDS_RETCODE_UNSUPPORTED\n             Cyclone DDS built without type discovery\n             (cf. DDS_HAS_TYPELIB)"]
    pub fn dds_free_typeinfo(type_info: *mut dds_typeinfo_t) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Gets the sertype of an entity\n\n The provided entity must be a topic or endpoint. This function returns a pointer to\n the sertype of the entity. The refcount of the sertype is not incremented. The lifetime\n of the returned sertype pointer is at least that of the lifetime of the entity on which\n it was invoked.\n\n @param[in] entity A topic, reader or writer entity\n @param[out] sertype A pointer to the entity's sertype is stored in this parameter (see note above on lifetime of this pointer)\n\n @returns A dds_return_t indicating success or failure.\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             The sertype parameter is NULL\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             Not a topic, reader or writer entity"]
    pub fn dds_get_entity_sertype(
        entity: dds_entity_t,
        sertype: *mut *const ddsi_sertype,
    ) -> dds_return_t;
}
#[doc = "< value is a 32-bit unsigned integer"]
pub const dds_stat_kind_DDS_STAT_KIND_UINT32: dds_stat_kind = 0;
#[doc = "< value is a 64-bit unsigned integer"]
pub const dds_stat_kind_DDS_STAT_KIND_UINT64: dds_stat_kind = 1;
#[doc = "< value is integral(length(t) dt)"]
pub const dds_stat_kind_DDS_STAT_KIND_LENGTHTIME: dds_stat_kind = 2;
#[doc = " @brief Kind of statistical value\n @ingroup statistics"]
pub type dds_stat_kind = ::std::ffi::c_uint;
#[doc = " @brief KeyValue statistics entry\n @ingroup statistics"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_stat_keyvalue {
    #[doc = "< name, memory owned by library"]
    pub name: *const ::std::ffi::c_char,
    #[doc = "< value type"]
    pub kind: dds_stat_kind,
    #[doc = "< value"]
    pub u: dds_stat_keyvalue__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_stat_keyvalue__bindgen_ty_1 {
    #[doc = "< used if kind == DDS_STAT_KIND_UINT32"]
    pub u32_: u32,
    #[doc = "< used if kind == DDS_STAT_KIND_UINT64"]
    pub u64_: u64,
    #[doc = "< used if kind == DDS_STAT_KIND_LENGTHTIME"]
    pub lengthtime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_stat_keyvalue__bindgen_ty_1"]
        [::std::mem::size_of::<dds_stat_keyvalue__bindgen_ty_1>() - 8usize];
    ["Alignment of dds_stat_keyvalue__bindgen_ty_1"]
        [::std::mem::align_of::<dds_stat_keyvalue__bindgen_ty_1>() - 8usize];
    ["Offset of field: dds_stat_keyvalue__bindgen_ty_1::u32_"]
        [::std::mem::offset_of!(dds_stat_keyvalue__bindgen_ty_1, u32_) - 0usize];
    ["Offset of field: dds_stat_keyvalue__bindgen_ty_1::u64_"]
        [::std::mem::offset_of!(dds_stat_keyvalue__bindgen_ty_1, u64_) - 0usize];
    ["Offset of field: dds_stat_keyvalue__bindgen_ty_1::lengthtime"]
        [::std::mem::offset_of!(dds_stat_keyvalue__bindgen_ty_1, lengthtime) - 0usize];
};
impl Default for dds_stat_keyvalue__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_stat_keyvalue"][::std::mem::size_of::<dds_stat_keyvalue>() - 24usize];
    ["Alignment of dds_stat_keyvalue"][::std::mem::align_of::<dds_stat_keyvalue>() - 8usize];
    ["Offset of field: dds_stat_keyvalue::name"]
        [::std::mem::offset_of!(dds_stat_keyvalue, name) - 0usize];
    ["Offset of field: dds_stat_keyvalue::kind"]
        [::std::mem::offset_of!(dds_stat_keyvalue, kind) - 8usize];
    ["Offset of field: dds_stat_keyvalue::u"]
        [::std::mem::offset_of!(dds_stat_keyvalue, u) - 16usize];
};
impl Default for dds_stat_keyvalue {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Statistics container\n @ingroup statistics"]
#[repr(C)]
pub struct dds_statistics {
    #[doc = "< handle of entity to which this set of values applies"]
    pub entity: dds_entity_t,
    #[doc = "< internal data"]
    pub opaque: u64,
    #[doc = "< time stamp of latest call to dds_refresh_statistics()"]
    pub time: dds_time_t,
    #[doc = "< number of key-value pairs"]
    pub count: usize,
    #[doc = "< data"]
    pub kv: __IncompleteArrayField<dds_stat_keyvalue>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_statistics"][::std::mem::size_of::<dds_statistics>() - 32usize];
    ["Alignment of dds_statistics"][::std::mem::align_of::<dds_statistics>() - 8usize];
    ["Offset of field: dds_statistics::entity"]
        [::std::mem::offset_of!(dds_statistics, entity) - 0usize];
    ["Offset of field: dds_statistics::opaque"]
        [::std::mem::offset_of!(dds_statistics, opaque) - 8usize];
    ["Offset of field: dds_statistics::time"]
        [::std::mem::offset_of!(dds_statistics, time) - 16usize];
    ["Offset of field: dds_statistics::count"]
        [::std::mem::offset_of!(dds_statistics, count) - 24usize];
    ["Offset of field: dds_statistics::kv"][::std::mem::offset_of!(dds_statistics, kv) - 32usize];
};
impl Default for dds_statistics {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    #[doc = " @brief Allocate a new statistics object for entity\n @ingroup statistics\n @component statistics\n @unstable\n\n This allocates and populates a newly allocated `struct dds_statistics` for the\n specified entity.\n\n @param[in] entity       the handle of the entity\n\n @returns a newly allocated and populated statistics structure or NULL if entity is\n invalid or doesn't support any statistics."]
    pub fn dds_create_statistics(entity: dds_entity_t) -> *mut dds_statistics;
}
unsafe extern "C" {
    #[doc = " @brief Update a previously created statistics structure with current values\n @ingroup statistics\n @component statistics\n @unstable\n\n Only the time stamp and the values (and \"opaque\") may change.  The set of keys and the\n types of the values do not change.\n\n @param[in,out] stat     statistics structure to update the values of\n\n @returns success or an error indication\n\n @retval DDS_RETCODE_OK\n    the data was successfully updated\n @retval DDS_RETCODE_BAD_PARAMETER\n    stats is a null pointer or the referenced entity no longer exists\n @retval DDS_RETCODE_PRECONDITION_NOT_MET\n    library was deinitialized"]
    pub fn dds_refresh_statistics(stat: *mut dds_statistics) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Free a previously created statistics object\n @ingroup statistics\n @component statistics\n @unstable\n\n This frees the statistics object.  Passing a null pointer is a no-op.  The operation\n succeeds also if the referenced entity no longer exists.\n\n @param[in] stat         statistics object to free"]
    pub fn dds_delete_statistics(stat: *mut dds_statistics);
}
unsafe extern "C" {
    #[doc = " @brief Lookup a specific value by name\n @ingroup statistics\n @component statistics\n @unstable\n\n This looks up the specified name in the list of keys in `stat` and returns the address\n of the key-value pair if present, a null pointer if not.  If `stat` is a null pointer,\n it returns a null pointer.\n\n @param[in] stat         statistics object to lookup a name in (or NULL)\n @param[in] name         name to look for\n\n @returns The address of the key-value pair inside `stat`, or NULL if `stat` is NULL or\n `name` does not match a key in `stat."]
    pub fn dds_lookup_statistic(
        stat: *const dds_statistics,
        name: *const ::std::ffi::c_char,
    ) -> *const dds_stat_keyvalue;
}
pub const idtype_t_P_ALL: idtype_t = 0;
pub const idtype_t_P_PID: idtype_t = 1;
pub const idtype_t_P_PGID: idtype_t = 2;
pub type idtype_t = ::std::ffi::c_uint;
pub type pid_t = __darwin_pid_t;
pub type id_t = __darwin_id_t;
pub type sig_atomic_t = ::std::ffi::c_int;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_exception_state {
    pub __exception: __uint32_t,
    pub __fsr: __uint32_t,
    pub __far: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_exception_state"]
        [::std::mem::size_of::<__darwin_arm_exception_state>() - 12usize];
    ["Alignment of __darwin_arm_exception_state"]
        [::std::mem::align_of::<__darwin_arm_exception_state>() - 4usize];
    ["Offset of field: __darwin_arm_exception_state::__exception"]
        [::std::mem::offset_of!(__darwin_arm_exception_state, __exception) - 0usize];
    ["Offset of field: __darwin_arm_exception_state::__fsr"]
        [::std::mem::offset_of!(__darwin_arm_exception_state, __fsr) - 4usize];
    ["Offset of field: __darwin_arm_exception_state::__far"]
        [::std::mem::offset_of!(__darwin_arm_exception_state, __far) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_exception_state64 {
    pub __far: __uint64_t,
    pub __esr: __uint32_t,
    pub __exception: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_exception_state64"]
        [::std::mem::size_of::<__darwin_arm_exception_state64>() - 16usize];
    ["Alignment of __darwin_arm_exception_state64"]
        [::std::mem::align_of::<__darwin_arm_exception_state64>() - 8usize];
    ["Offset of field: __darwin_arm_exception_state64::__far"]
        [::std::mem::offset_of!(__darwin_arm_exception_state64, __far) - 0usize];
    ["Offset of field: __darwin_arm_exception_state64::__esr"]
        [::std::mem::offset_of!(__darwin_arm_exception_state64, __esr) - 8usize];
    ["Offset of field: __darwin_arm_exception_state64::__exception"]
        [::std::mem::offset_of!(__darwin_arm_exception_state64, __exception) - 12usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_exception_state64_v2 {
    pub __far: __uint64_t,
    pub __esr: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_exception_state64_v2"]
        [::std::mem::size_of::<__darwin_arm_exception_state64_v2>() - 16usize];
    ["Alignment of __darwin_arm_exception_state64_v2"]
        [::std::mem::align_of::<__darwin_arm_exception_state64_v2>() - 8usize];
    ["Offset of field: __darwin_arm_exception_state64_v2::__far"]
        [::std::mem::offset_of!(__darwin_arm_exception_state64_v2, __far) - 0usize];
    ["Offset of field: __darwin_arm_exception_state64_v2::__esr"]
        [::std::mem::offset_of!(__darwin_arm_exception_state64_v2, __esr) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_thread_state {
    pub __r: [__uint32_t; 13usize],
    pub __sp: __uint32_t,
    pub __lr: __uint32_t,
    pub __pc: __uint32_t,
    pub __cpsr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_thread_state"]
        [::std::mem::size_of::<__darwin_arm_thread_state>() - 68usize];
    ["Alignment of __darwin_arm_thread_state"]
        [::std::mem::align_of::<__darwin_arm_thread_state>() - 4usize];
    ["Offset of field: __darwin_arm_thread_state::__r"]
        [::std::mem::offset_of!(__darwin_arm_thread_state, __r) - 0usize];
    ["Offset of field: __darwin_arm_thread_state::__sp"]
        [::std::mem::offset_of!(__darwin_arm_thread_state, __sp) - 52usize];
    ["Offset of field: __darwin_arm_thread_state::__lr"]
        [::std::mem::offset_of!(__darwin_arm_thread_state, __lr) - 56usize];
    ["Offset of field: __darwin_arm_thread_state::__pc"]
        [::std::mem::offset_of!(__darwin_arm_thread_state, __pc) - 60usize];
    ["Offset of field: __darwin_arm_thread_state::__cpsr"]
        [::std::mem::offset_of!(__darwin_arm_thread_state, __cpsr) - 64usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_thread_state64 {
    pub __x: [__uint64_t; 29usize],
    pub __fp: __uint64_t,
    pub __lr: __uint64_t,
    pub __sp: __uint64_t,
    pub __pc: __uint64_t,
    pub __cpsr: __uint32_t,
    pub __pad: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_thread_state64"]
        [::std::mem::size_of::<__darwin_arm_thread_state64>() - 272usize];
    ["Alignment of __darwin_arm_thread_state64"]
        [::std::mem::align_of::<__darwin_arm_thread_state64>() - 8usize];
    ["Offset of field: __darwin_arm_thread_state64::__x"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __x) - 0usize];
    ["Offset of field: __darwin_arm_thread_state64::__fp"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __fp) - 232usize];
    ["Offset of field: __darwin_arm_thread_state64::__lr"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __lr) - 240usize];
    ["Offset of field: __darwin_arm_thread_state64::__sp"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __sp) - 248usize];
    ["Offset of field: __darwin_arm_thread_state64::__pc"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __pc) - 256usize];
    ["Offset of field: __darwin_arm_thread_state64::__cpsr"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __cpsr) - 264usize];
    ["Offset of field: __darwin_arm_thread_state64::__pad"]
        [::std::mem::offset_of!(__darwin_arm_thread_state64, __pad) - 268usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_vfp_state {
    pub __r: [__uint32_t; 64usize],
    pub __fpscr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_vfp_state"][::std::mem::size_of::<__darwin_arm_vfp_state>() - 260usize];
    ["Alignment of __darwin_arm_vfp_state"]
        [::std::mem::align_of::<__darwin_arm_vfp_state>() - 4usize];
    ["Offset of field: __darwin_arm_vfp_state::__r"]
        [::std::mem::offset_of!(__darwin_arm_vfp_state, __r) - 0usize];
    ["Offset of field: __darwin_arm_vfp_state::__fpscr"]
        [::std::mem::offset_of!(__darwin_arm_vfp_state, __fpscr) - 256usize];
};
impl Default for __darwin_arm_vfp_state {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_neon_state64 {
    pub __v: [__uint128_t; 32usize],
    pub __fpsr: __uint32_t,
    pub __fpcr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_neon_state64"]
        [::std::mem::size_of::<__darwin_arm_neon_state64>() - 528usize];
    ["Alignment of __darwin_arm_neon_state64"]
        [::std::mem::align_of::<__darwin_arm_neon_state64>() - 16usize];
    ["Offset of field: __darwin_arm_neon_state64::__v"]
        [::std::mem::offset_of!(__darwin_arm_neon_state64, __v) - 0usize];
    ["Offset of field: __darwin_arm_neon_state64::__fpsr"]
        [::std::mem::offset_of!(__darwin_arm_neon_state64, __fpsr) - 512usize];
    ["Offset of field: __darwin_arm_neon_state64::__fpcr"]
        [::std::mem::offset_of!(__darwin_arm_neon_state64, __fpcr) - 516usize];
};
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_neon_state {
    pub __v: [__uint128_t; 16usize],
    pub __fpsr: __uint32_t,
    pub __fpcr: __uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_neon_state"]
        [::std::mem::size_of::<__darwin_arm_neon_state>() - 272usize];
    ["Alignment of __darwin_arm_neon_state"]
        [::std::mem::align_of::<__darwin_arm_neon_state>() - 16usize];
    ["Offset of field: __darwin_arm_neon_state::__v"]
        [::std::mem::offset_of!(__darwin_arm_neon_state, __v) - 0usize];
    ["Offset of field: __darwin_arm_neon_state::__fpsr"]
        [::std::mem::offset_of!(__darwin_arm_neon_state, __fpsr) - 256usize];
    ["Offset of field: __darwin_arm_neon_state::__fpcr"]
        [::std::mem::offset_of!(__darwin_arm_neon_state, __fpcr) - 260usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __arm_pagein_state {
    pub __pagein_error: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __arm_pagein_state"][::std::mem::size_of::<__arm_pagein_state>() - 4usize];
    ["Alignment of __arm_pagein_state"][::std::mem::align_of::<__arm_pagein_state>() - 4usize];
    ["Offset of field: __arm_pagein_state::__pagein_error"]
        [::std::mem::offset_of!(__arm_pagein_state, __pagein_error) - 0usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_sme_state {
    pub __svcr: __uint64_t,
    pub __tpidr2_el0: __uint64_t,
    pub __svl_b: __uint16_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_sme_state"][::std::mem::size_of::<__darwin_arm_sme_state>() - 24usize];
    ["Alignment of __darwin_arm_sme_state"]
        [::std::mem::align_of::<__darwin_arm_sme_state>() - 8usize];
    ["Offset of field: __darwin_arm_sme_state::__svcr"]
        [::std::mem::offset_of!(__darwin_arm_sme_state, __svcr) - 0usize];
    ["Offset of field: __darwin_arm_sme_state::__tpidr2_el0"]
        [::std::mem::offset_of!(__darwin_arm_sme_state, __tpidr2_el0) - 8usize];
    ["Offset of field: __darwin_arm_sme_state::__svl_b"]
        [::std::mem::offset_of!(__darwin_arm_sme_state, __svl_b) - 16usize];
};
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sve_z_state {
    pub __z: [[::std::ffi::c_char; 256usize]; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_sve_z_state"]
        [::std::mem::size_of::<__darwin_arm_sve_z_state>() - 4096usize];
    ["Alignment of __darwin_arm_sve_z_state"]
        [::std::mem::align_of::<__darwin_arm_sve_z_state>() - 4usize];
    ["Offset of field: __darwin_arm_sve_z_state::__z"]
        [::std::mem::offset_of!(__darwin_arm_sve_z_state, __z) - 0usize];
};
impl Default for __darwin_arm_sve_z_state {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_sve_p_state {
    pub __p: [[::std::ffi::c_char; 32usize]; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_sve_p_state"]
        [::std::mem::size_of::<__darwin_arm_sve_p_state>() - 512usize];
    ["Alignment of __darwin_arm_sve_p_state"]
        [::std::mem::align_of::<__darwin_arm_sve_p_state>() - 4usize];
    ["Offset of field: __darwin_arm_sve_p_state::__p"]
        [::std::mem::offset_of!(__darwin_arm_sve_p_state, __p) - 0usize];
};
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme_za_state {
    pub __za: [::std::ffi::c_char; 4096usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_sme_za_state"]
        [::std::mem::size_of::<__darwin_arm_sme_za_state>() - 4096usize];
    ["Alignment of __darwin_arm_sme_za_state"]
        [::std::mem::align_of::<__darwin_arm_sme_za_state>() - 4usize];
    ["Offset of field: __darwin_arm_sme_za_state::__za"]
        [::std::mem::offset_of!(__darwin_arm_sme_za_state, __za) - 0usize];
};
impl Default for __darwin_arm_sme_za_state {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_arm_sme2_state {
    pub __zt0: [::std::ffi::c_char; 64usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_sme2_state"][::std::mem::size_of::<__darwin_arm_sme2_state>() - 64usize];
    ["Alignment of __darwin_arm_sme2_state"]
        [::std::mem::align_of::<__darwin_arm_sme2_state>() - 4usize];
    ["Offset of field: __darwin_arm_sme2_state::__zt0"]
        [::std::mem::offset_of!(__darwin_arm_sme2_state, __zt0) - 0usize];
};
impl Default for __darwin_arm_sme2_state {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __arm_legacy_debug_state {
    pub __bvr: [__uint32_t; 16usize],
    pub __bcr: [__uint32_t; 16usize],
    pub __wvr: [__uint32_t; 16usize],
    pub __wcr: [__uint32_t; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __arm_legacy_debug_state"]
        [::std::mem::size_of::<__arm_legacy_debug_state>() - 256usize];
    ["Alignment of __arm_legacy_debug_state"]
        [::std::mem::align_of::<__arm_legacy_debug_state>() - 4usize];
    ["Offset of field: __arm_legacy_debug_state::__bvr"]
        [::std::mem::offset_of!(__arm_legacy_debug_state, __bvr) - 0usize];
    ["Offset of field: __arm_legacy_debug_state::__bcr"]
        [::std::mem::offset_of!(__arm_legacy_debug_state, __bcr) - 64usize];
    ["Offset of field: __arm_legacy_debug_state::__wvr"]
        [::std::mem::offset_of!(__arm_legacy_debug_state, __wvr) - 128usize];
    ["Offset of field: __arm_legacy_debug_state::__wcr"]
        [::std::mem::offset_of!(__arm_legacy_debug_state, __wcr) - 192usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_debug_state32 {
    pub __bvr: [__uint32_t; 16usize],
    pub __bcr: [__uint32_t; 16usize],
    pub __wvr: [__uint32_t; 16usize],
    pub __wcr: [__uint32_t; 16usize],
    pub __mdscr_el1: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_debug_state32"]
        [::std::mem::size_of::<__darwin_arm_debug_state32>() - 264usize];
    ["Alignment of __darwin_arm_debug_state32"]
        [::std::mem::align_of::<__darwin_arm_debug_state32>() - 8usize];
    ["Offset of field: __darwin_arm_debug_state32::__bvr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state32, __bvr) - 0usize];
    ["Offset of field: __darwin_arm_debug_state32::__bcr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state32, __bcr) - 64usize];
    ["Offset of field: __darwin_arm_debug_state32::__wvr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state32, __wvr) - 128usize];
    ["Offset of field: __darwin_arm_debug_state32::__wcr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state32, __wcr) - 192usize];
    ["Offset of field: __darwin_arm_debug_state32::__mdscr_el1"]
        [::std::mem::offset_of!(__darwin_arm_debug_state32, __mdscr_el1) - 256usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_debug_state64 {
    pub __bvr: [__uint64_t; 16usize],
    pub __bcr: [__uint64_t; 16usize],
    pub __wvr: [__uint64_t; 16usize],
    pub __wcr: [__uint64_t; 16usize],
    pub __mdscr_el1: __uint64_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_debug_state64"]
        [::std::mem::size_of::<__darwin_arm_debug_state64>() - 520usize];
    ["Alignment of __darwin_arm_debug_state64"]
        [::std::mem::align_of::<__darwin_arm_debug_state64>() - 8usize];
    ["Offset of field: __darwin_arm_debug_state64::__bvr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state64, __bvr) - 0usize];
    ["Offset of field: __darwin_arm_debug_state64::__bcr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state64, __bcr) - 128usize];
    ["Offset of field: __darwin_arm_debug_state64::__wvr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state64, __wvr) - 256usize];
    ["Offset of field: __darwin_arm_debug_state64::__wcr"]
        [::std::mem::offset_of!(__darwin_arm_debug_state64, __wcr) - 384usize];
    ["Offset of field: __darwin_arm_debug_state64::__mdscr_el1"]
        [::std::mem::offset_of!(__darwin_arm_debug_state64, __mdscr_el1) - 512usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_arm_cpmu_state64 {
    pub __ctrs: [__uint64_t; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_arm_cpmu_state64"]
        [::std::mem::size_of::<__darwin_arm_cpmu_state64>() - 128usize];
    ["Alignment of __darwin_arm_cpmu_state64"]
        [::std::mem::align_of::<__darwin_arm_cpmu_state64>() - 8usize];
    ["Offset of field: __darwin_arm_cpmu_state64::__ctrs"]
        [::std::mem::offset_of!(__darwin_arm_cpmu_state64, __ctrs) - 0usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_mcontext32 {
    pub __es: __darwin_arm_exception_state,
    pub __ss: __darwin_arm_thread_state,
    pub __fs: __darwin_arm_vfp_state,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_mcontext32"][::std::mem::size_of::<__darwin_mcontext32>() - 340usize];
    ["Alignment of __darwin_mcontext32"][::std::mem::align_of::<__darwin_mcontext32>() - 4usize];
    ["Offset of field: __darwin_mcontext32::__es"]
        [::std::mem::offset_of!(__darwin_mcontext32, __es) - 0usize];
    ["Offset of field: __darwin_mcontext32::__ss"]
        [::std::mem::offset_of!(__darwin_mcontext32, __ss) - 12usize];
    ["Offset of field: __darwin_mcontext32::__fs"]
        [::std::mem::offset_of!(__darwin_mcontext32, __fs) - 80usize];
};
impl Default for __darwin_mcontext32 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Default, Copy, Clone)]
pub struct __darwin_mcontext64 {
    pub __es: __darwin_arm_exception_state64,
    pub __ss: __darwin_arm_thread_state64,
    pub __ns: __darwin_arm_neon_state64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_mcontext64"][::std::mem::size_of::<__darwin_mcontext64>() - 816usize];
    ["Alignment of __darwin_mcontext64"][::std::mem::align_of::<__darwin_mcontext64>() - 16usize];
    ["Offset of field: __darwin_mcontext64::__es"]
        [::std::mem::offset_of!(__darwin_mcontext64, __es) - 0usize];
    ["Offset of field: __darwin_mcontext64::__ss"]
        [::std::mem::offset_of!(__darwin_mcontext64, __ss) - 16usize];
    ["Offset of field: __darwin_mcontext64::__ns"]
        [::std::mem::offset_of!(__darwin_mcontext64, __ns) - 288usize];
};
pub type mcontext_t = *mut __darwin_mcontext64;
pub type pthread_attr_t = __darwin_pthread_attr_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_sigaltstack {
    pub ss_sp: *mut ::std::ffi::c_void,
    pub ss_size: __darwin_size_t,
    pub ss_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_sigaltstack"][::std::mem::size_of::<__darwin_sigaltstack>() - 24usize];
    ["Alignment of __darwin_sigaltstack"][::std::mem::align_of::<__darwin_sigaltstack>() - 8usize];
    ["Offset of field: __darwin_sigaltstack::ss_sp"]
        [::std::mem::offset_of!(__darwin_sigaltstack, ss_sp) - 0usize];
    ["Offset of field: __darwin_sigaltstack::ss_size"]
        [::std::mem::offset_of!(__darwin_sigaltstack, ss_size) - 8usize];
    ["Offset of field: __darwin_sigaltstack::ss_flags"]
        [::std::mem::offset_of!(__darwin_sigaltstack, ss_flags) - 16usize];
};
impl Default for __darwin_sigaltstack {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type stack_t = __darwin_sigaltstack;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct __darwin_ucontext {
    pub uc_onstack: ::std::ffi::c_int,
    pub uc_sigmask: __darwin_sigset_t,
    pub uc_stack: __darwin_sigaltstack,
    pub uc_link: *mut __darwin_ucontext,
    pub uc_mcsize: __darwin_size_t,
    pub uc_mcontext: *mut __darwin_mcontext64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __darwin_ucontext"][::std::mem::size_of::<__darwin_ucontext>() - 56usize];
    ["Alignment of __darwin_ucontext"][::std::mem::align_of::<__darwin_ucontext>() - 8usize];
    ["Offset of field: __darwin_ucontext::uc_onstack"]
        [::std::mem::offset_of!(__darwin_ucontext, uc_onstack) - 0usize];
    ["Offset of field: __darwin_ucontext::uc_sigmask"]
        [::std::mem::offset_of!(__darwin_ucontext, uc_sigmask) - 4usize];
    ["Offset of field: __darwin_ucontext::uc_stack"]
        [::std::mem::offset_of!(__darwin_ucontext, uc_stack) - 8usize];
    ["Offset of field: __darwin_ucontext::uc_link"]
        [::std::mem::offset_of!(__darwin_ucontext, uc_link) - 32usize];
    ["Offset of field: __darwin_ucontext::uc_mcsize"]
        [::std::mem::offset_of!(__darwin_ucontext, uc_mcsize) - 40usize];
    ["Offset of field: __darwin_ucontext::uc_mcontext"]
        [::std::mem::offset_of!(__darwin_ucontext, uc_mcontext) - 48usize];
};
impl Default for __darwin_ucontext {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type ucontext_t = __darwin_ucontext;
pub type sigset_t = __darwin_sigset_t;
pub type uid_t = __darwin_uid_t;
#[repr(C)]
#[derive(Copy, Clone)]
pub union sigval {
    pub sival_int: ::std::ffi::c_int,
    pub sival_ptr: *mut ::std::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of sigval"][::std::mem::size_of::<sigval>() - 8usize];
    ["Alignment of sigval"][::std::mem::align_of::<sigval>() - 8usize];
    ["Offset of field: sigval::sival_int"][::std::mem::offset_of!(sigval, sival_int) - 0usize];
    ["Offset of field: sigval::sival_ptr"][::std::mem::offset_of!(sigval, sival_ptr) - 0usize];
};
impl Default for sigval {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigevent {
    pub sigev_notify: ::std::ffi::c_int,
    pub sigev_signo: ::std::ffi::c_int,
    pub sigev_value: sigval,
    pub sigev_notify_function: ::std::option::Option<unsafe extern "C" fn(arg1: sigval)>,
    pub sigev_notify_attributes: *mut pthread_attr_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of sigevent"][::std::mem::size_of::<sigevent>() - 32usize];
    ["Alignment of sigevent"][::std::mem::align_of::<sigevent>() - 8usize];
    ["Offset of field: sigevent::sigev_notify"]
        [::std::mem::offset_of!(sigevent, sigev_notify) - 0usize];
    ["Offset of field: sigevent::sigev_signo"]
        [::std::mem::offset_of!(sigevent, sigev_signo) - 4usize];
    ["Offset of field: sigevent::sigev_value"]
        [::std::mem::offset_of!(sigevent, sigev_value) - 8usize];
    ["Offset of field: sigevent::sigev_notify_function"]
        [::std::mem::offset_of!(sigevent, sigev_notify_function) - 16usize];
    ["Offset of field: sigevent::sigev_notify_attributes"]
        [::std::mem::offset_of!(sigevent, sigev_notify_attributes) - 24usize];
};
impl Default for sigevent {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __siginfo {
    pub si_signo: ::std::ffi::c_int,
    pub si_errno: ::std::ffi::c_int,
    pub si_code: ::std::ffi::c_int,
    pub si_pid: pid_t,
    pub si_uid: uid_t,
    pub si_status: ::std::ffi::c_int,
    pub si_addr: *mut ::std::ffi::c_void,
    pub si_value: sigval,
    pub si_band: ::std::ffi::c_long,
    pub __pad: [::std::ffi::c_ulong; 7usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __siginfo"][::std::mem::size_of::<__siginfo>() - 104usize];
    ["Alignment of __siginfo"][::std::mem::align_of::<__siginfo>() - 8usize];
    ["Offset of field: __siginfo::si_signo"][::std::mem::offset_of!(__siginfo, si_signo) - 0usize];
    ["Offset of field: __siginfo::si_errno"][::std::mem::offset_of!(__siginfo, si_errno) - 4usize];
    ["Offset of field: __siginfo::si_code"][::std::mem::offset_of!(__siginfo, si_code) - 8usize];
    ["Offset of field: __siginfo::si_pid"][::std::mem::offset_of!(__siginfo, si_pid) - 12usize];
    ["Offset of field: __siginfo::si_uid"][::std::mem::offset_of!(__siginfo, si_uid) - 16usize];
    ["Offset of field: __siginfo::si_status"]
        [::std::mem::offset_of!(__siginfo, si_status) - 20usize];
    ["Offset of field: __siginfo::si_addr"][::std::mem::offset_of!(__siginfo, si_addr) - 24usize];
    ["Offset of field: __siginfo::si_value"][::std::mem::offset_of!(__siginfo, si_value) - 32usize];
    ["Offset of field: __siginfo::si_band"][::std::mem::offset_of!(__siginfo, si_band) - 40usize];
    ["Offset of field: __siginfo::__pad"][::std::mem::offset_of!(__siginfo, __pad) - 48usize];
};
impl Default for __siginfo {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type siginfo_t = __siginfo;
#[repr(C)]
#[derive(Copy, Clone)]
pub union __sigaction_u {
    pub __sa_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
    pub __sa_sigaction: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: ::std::ffi::c_int,
            arg2: *mut __siginfo,
            arg3: *mut ::std::ffi::c_void,
        ),
    >,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __sigaction_u"][::std::mem::size_of::<__sigaction_u>() - 8usize];
    ["Alignment of __sigaction_u"][::std::mem::align_of::<__sigaction_u>() - 8usize];
    ["Offset of field: __sigaction_u::__sa_handler"]
        [::std::mem::offset_of!(__sigaction_u, __sa_handler) - 0usize];
    ["Offset of field: __sigaction_u::__sa_sigaction"]
        [::std::mem::offset_of!(__sigaction_u, __sa_sigaction) - 0usize];
};
impl Default for __sigaction_u {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct __sigaction {
    pub __sigaction_u: __sigaction_u,
    pub sa_tramp: ::std::option::Option<
        unsafe extern "C" fn(
            arg1: *mut ::std::ffi::c_void,
            arg2: ::std::ffi::c_int,
            arg3: ::std::ffi::c_int,
            arg4: *mut siginfo_t,
            arg5: *mut ::std::ffi::c_void,
        ),
    >,
    pub sa_mask: sigset_t,
    pub sa_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of __sigaction"][::std::mem::size_of::<__sigaction>() - 24usize];
    ["Alignment of __sigaction"][::std::mem::align_of::<__sigaction>() - 8usize];
    ["Offset of field: __sigaction::__sigaction_u"]
        [::std::mem::offset_of!(__sigaction, __sigaction_u) - 0usize];
    ["Offset of field: __sigaction::sa_tramp"]
        [::std::mem::offset_of!(__sigaction, sa_tramp) - 8usize];
    ["Offset of field: __sigaction::sa_mask"]
        [::std::mem::offset_of!(__sigaction, sa_mask) - 16usize];
    ["Offset of field: __sigaction::sa_flags"]
        [::std::mem::offset_of!(__sigaction, sa_flags) - 20usize];
};
impl Default for __sigaction {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Copy, Clone)]
pub struct sigaction {
    pub __sigaction_u: __sigaction_u,
    pub sa_mask: sigset_t,
    pub sa_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of sigaction"][::std::mem::size_of::<sigaction>() - 16usize];
    ["Alignment of sigaction"][::std::mem::align_of::<sigaction>() - 8usize];
    ["Offset of field: sigaction::__sigaction_u"]
        [::std::mem::offset_of!(sigaction, __sigaction_u) - 0usize];
    ["Offset of field: sigaction::sa_mask"][::std::mem::offset_of!(sigaction, sa_mask) - 8usize];
    ["Offset of field: sigaction::sa_flags"][::std::mem::offset_of!(sigaction, sa_flags) - 12usize];
};
impl Default for sigaction {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type sig_t = ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct sigvec {
    pub sv_handler: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
    pub sv_mask: ::std::ffi::c_int,
    pub sv_flags: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of sigvec"][::std::mem::size_of::<sigvec>() - 16usize];
    ["Alignment of sigvec"][::std::mem::align_of::<sigvec>() - 8usize];
    ["Offset of field: sigvec::sv_handler"][::std::mem::offset_of!(sigvec, sv_handler) - 0usize];
    ["Offset of field: sigvec::sv_mask"][::std::mem::offset_of!(sigvec, sv_mask) - 8usize];
    ["Offset of field: sigvec::sv_flags"][::std::mem::offset_of!(sigvec, sv_flags) - 12usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct sigstack {
    pub ss_sp: *mut ::std::ffi::c_char,
    pub ss_onstack: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of sigstack"][::std::mem::size_of::<sigstack>() - 16usize];
    ["Alignment of sigstack"][::std::mem::align_of::<sigstack>() - 8usize];
    ["Offset of field: sigstack::ss_sp"][::std::mem::offset_of!(sigstack, ss_sp) - 0usize];
    ["Offset of field: sigstack::ss_onstack"]
        [::std::mem::offset_of!(sigstack, ss_onstack) - 8usize];
};
impl Default for sigstack {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn signal(
        arg1: ::std::ffi::c_int,
        arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
    ) -> ::std::option::Option<
        unsafe extern "C" fn(
            arg1: ::std::ffi::c_int,
            arg2: ::std::option::Option<unsafe extern "C" fn(arg1: ::std::ffi::c_int)>,
        ),
    >;
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct timeval {
    pub tv_sec: __darwin_time_t,
    pub tv_usec: __darwin_suseconds_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of timeval"][::std::mem::size_of::<timeval>() - 16usize];
    ["Alignment of timeval"][::std::mem::align_of::<timeval>() - 8usize];
    ["Offset of field: timeval::tv_sec"][::std::mem::offset_of!(timeval, tv_sec) - 0usize];
    ["Offset of field: timeval::tv_usec"][::std::mem::offset_of!(timeval, tv_usec) - 8usize];
};
pub type rlim_t = __uint64_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage {
    pub ru_utime: timeval,
    pub ru_stime: timeval,
    pub ru_maxrss: ::std::ffi::c_long,
    pub ru_ixrss: ::std::ffi::c_long,
    pub ru_idrss: ::std::ffi::c_long,
    pub ru_isrss: ::std::ffi::c_long,
    pub ru_minflt: ::std::ffi::c_long,
    pub ru_majflt: ::std::ffi::c_long,
    pub ru_nswap: ::std::ffi::c_long,
    pub ru_inblock: ::std::ffi::c_long,
    pub ru_oublock: ::std::ffi::c_long,
    pub ru_msgsnd: ::std::ffi::c_long,
    pub ru_msgrcv: ::std::ffi::c_long,
    pub ru_nsignals: ::std::ffi::c_long,
    pub ru_nvcsw: ::std::ffi::c_long,
    pub ru_nivcsw: ::std::ffi::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage"][::std::mem::size_of::<rusage>() - 144usize];
    ["Alignment of rusage"][::std::mem::align_of::<rusage>() - 8usize];
    ["Offset of field: rusage::ru_utime"][::std::mem::offset_of!(rusage, ru_utime) - 0usize];
    ["Offset of field: rusage::ru_stime"][::std::mem::offset_of!(rusage, ru_stime) - 16usize];
    ["Offset of field: rusage::ru_maxrss"][::std::mem::offset_of!(rusage, ru_maxrss) - 32usize];
    ["Offset of field: rusage::ru_ixrss"][::std::mem::offset_of!(rusage, ru_ixrss) - 40usize];
    ["Offset of field: rusage::ru_idrss"][::std::mem::offset_of!(rusage, ru_idrss) - 48usize];
    ["Offset of field: rusage::ru_isrss"][::std::mem::offset_of!(rusage, ru_isrss) - 56usize];
    ["Offset of field: rusage::ru_minflt"][::std::mem::offset_of!(rusage, ru_minflt) - 64usize];
    ["Offset of field: rusage::ru_majflt"][::std::mem::offset_of!(rusage, ru_majflt) - 72usize];
    ["Offset of field: rusage::ru_nswap"][::std::mem::offset_of!(rusage, ru_nswap) - 80usize];
    ["Offset of field: rusage::ru_inblock"][::std::mem::offset_of!(rusage, ru_inblock) - 88usize];
    ["Offset of field: rusage::ru_oublock"][::std::mem::offset_of!(rusage, ru_oublock) - 96usize];
    ["Offset of field: rusage::ru_msgsnd"][::std::mem::offset_of!(rusage, ru_msgsnd) - 104usize];
    ["Offset of field: rusage::ru_msgrcv"][::std::mem::offset_of!(rusage, ru_msgrcv) - 112usize];
    ["Offset of field: rusage::ru_nsignals"]
        [::std::mem::offset_of!(rusage, ru_nsignals) - 120usize];
    ["Offset of field: rusage::ru_nvcsw"][::std::mem::offset_of!(rusage, ru_nvcsw) - 128usize];
    ["Offset of field: rusage::ru_nivcsw"][::std::mem::offset_of!(rusage, ru_nivcsw) - 136usize];
};
pub type rusage_info_t = *mut ::std::ffi::c_void;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v0 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v0"][::std::mem::size_of::<rusage_info_v0>() - 96usize];
    ["Alignment of rusage_info_v0"][::std::mem::align_of::<rusage_info_v0>() - 8usize];
    ["Offset of field: rusage_info_v0::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v0, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v0::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v0, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v0::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v0, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v0::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v0, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v0::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v0, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v0::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v0, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v0::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v0, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v0::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v0, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v0::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v0, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v0::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v0, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v0::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v0, ri_proc_exit_abstime) - 88usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v1 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
    pub ri_child_user_time: u64,
    pub ri_child_system_time: u64,
    pub ri_child_pkg_idle_wkups: u64,
    pub ri_child_interrupt_wkups: u64,
    pub ri_child_pageins: u64,
    pub ri_child_elapsed_abstime: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v1"][::std::mem::size_of::<rusage_info_v1>() - 144usize];
    ["Alignment of rusage_info_v1"][::std::mem::align_of::<rusage_info_v1>() - 8usize];
    ["Offset of field: rusage_info_v1::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v1, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v1::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v1, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v1::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v1, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v1::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v1, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v1::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v1, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v1::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v1, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v1::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v1, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v1::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v1, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v1::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v1, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v1::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v1, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v1::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v1, ri_proc_exit_abstime) - 88usize];
    ["Offset of field: rusage_info_v1::ri_child_user_time"]
        [::std::mem::offset_of!(rusage_info_v1, ri_child_user_time) - 96usize];
    ["Offset of field: rusage_info_v1::ri_child_system_time"]
        [::std::mem::offset_of!(rusage_info_v1, ri_child_system_time) - 104usize];
    ["Offset of field: rusage_info_v1::ri_child_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v1, ri_child_pkg_idle_wkups) - 112usize];
    ["Offset of field: rusage_info_v1::ri_child_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v1, ri_child_interrupt_wkups) - 120usize];
    ["Offset of field: rusage_info_v1::ri_child_pageins"]
        [::std::mem::offset_of!(rusage_info_v1, ri_child_pageins) - 128usize];
    ["Offset of field: rusage_info_v1::ri_child_elapsed_abstime"]
        [::std::mem::offset_of!(rusage_info_v1, ri_child_elapsed_abstime) - 136usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v2 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
    pub ri_child_user_time: u64,
    pub ri_child_system_time: u64,
    pub ri_child_pkg_idle_wkups: u64,
    pub ri_child_interrupt_wkups: u64,
    pub ri_child_pageins: u64,
    pub ri_child_elapsed_abstime: u64,
    pub ri_diskio_bytesread: u64,
    pub ri_diskio_byteswritten: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v2"][::std::mem::size_of::<rusage_info_v2>() - 160usize];
    ["Alignment of rusage_info_v2"][::std::mem::align_of::<rusage_info_v2>() - 8usize];
    ["Offset of field: rusage_info_v2::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v2, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v2::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v2, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v2::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v2, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v2::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v2, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v2::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v2, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v2::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v2, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v2::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v2, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v2::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v2, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v2::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v2, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v2::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v2, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v2::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v2, ri_proc_exit_abstime) - 88usize];
    ["Offset of field: rusage_info_v2::ri_child_user_time"]
        [::std::mem::offset_of!(rusage_info_v2, ri_child_user_time) - 96usize];
    ["Offset of field: rusage_info_v2::ri_child_system_time"]
        [::std::mem::offset_of!(rusage_info_v2, ri_child_system_time) - 104usize];
    ["Offset of field: rusage_info_v2::ri_child_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v2, ri_child_pkg_idle_wkups) - 112usize];
    ["Offset of field: rusage_info_v2::ri_child_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v2, ri_child_interrupt_wkups) - 120usize];
    ["Offset of field: rusage_info_v2::ri_child_pageins"]
        [::std::mem::offset_of!(rusage_info_v2, ri_child_pageins) - 128usize];
    ["Offset of field: rusage_info_v2::ri_child_elapsed_abstime"]
        [::std::mem::offset_of!(rusage_info_v2, ri_child_elapsed_abstime) - 136usize];
    ["Offset of field: rusage_info_v2::ri_diskio_bytesread"]
        [::std::mem::offset_of!(rusage_info_v2, ri_diskio_bytesread) - 144usize];
    ["Offset of field: rusage_info_v2::ri_diskio_byteswritten"]
        [::std::mem::offset_of!(rusage_info_v2, ri_diskio_byteswritten) - 152usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v3 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
    pub ri_child_user_time: u64,
    pub ri_child_system_time: u64,
    pub ri_child_pkg_idle_wkups: u64,
    pub ri_child_interrupt_wkups: u64,
    pub ri_child_pageins: u64,
    pub ri_child_elapsed_abstime: u64,
    pub ri_diskio_bytesread: u64,
    pub ri_diskio_byteswritten: u64,
    pub ri_cpu_time_qos_default: u64,
    pub ri_cpu_time_qos_maintenance: u64,
    pub ri_cpu_time_qos_background: u64,
    pub ri_cpu_time_qos_utility: u64,
    pub ri_cpu_time_qos_legacy: u64,
    pub ri_cpu_time_qos_user_initiated: u64,
    pub ri_cpu_time_qos_user_interactive: u64,
    pub ri_billed_system_time: u64,
    pub ri_serviced_system_time: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v3"][::std::mem::size_of::<rusage_info_v3>() - 232usize];
    ["Alignment of rusage_info_v3"][::std::mem::align_of::<rusage_info_v3>() - 8usize];
    ["Offset of field: rusage_info_v3::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v3, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v3::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v3, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v3::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v3, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v3::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v3, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v3::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v3, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v3::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v3, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v3::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v3, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v3::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v3, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v3::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v3, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v3::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v3, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v3::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v3, ri_proc_exit_abstime) - 88usize];
    ["Offset of field: rusage_info_v3::ri_child_user_time"]
        [::std::mem::offset_of!(rusage_info_v3, ri_child_user_time) - 96usize];
    ["Offset of field: rusage_info_v3::ri_child_system_time"]
        [::std::mem::offset_of!(rusage_info_v3, ri_child_system_time) - 104usize];
    ["Offset of field: rusage_info_v3::ri_child_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v3, ri_child_pkg_idle_wkups) - 112usize];
    ["Offset of field: rusage_info_v3::ri_child_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v3, ri_child_interrupt_wkups) - 120usize];
    ["Offset of field: rusage_info_v3::ri_child_pageins"]
        [::std::mem::offset_of!(rusage_info_v3, ri_child_pageins) - 128usize];
    ["Offset of field: rusage_info_v3::ri_child_elapsed_abstime"]
        [::std::mem::offset_of!(rusage_info_v3, ri_child_elapsed_abstime) - 136usize];
    ["Offset of field: rusage_info_v3::ri_diskio_bytesread"]
        [::std::mem::offset_of!(rusage_info_v3, ri_diskio_bytesread) - 144usize];
    ["Offset of field: rusage_info_v3::ri_diskio_byteswritten"]
        [::std::mem::offset_of!(rusage_info_v3, ri_diskio_byteswritten) - 152usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_default"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_default) - 160usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_maintenance"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_maintenance) - 168usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_background"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_background) - 176usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_utility"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_utility) - 184usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_legacy"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_legacy) - 192usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_initiated"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_initiated) - 200usize];
    ["Offset of field: rusage_info_v3::ri_cpu_time_qos_user_interactive"]
        [::std::mem::offset_of!(rusage_info_v3, ri_cpu_time_qos_user_interactive) - 208usize];
    ["Offset of field: rusage_info_v3::ri_billed_system_time"]
        [::std::mem::offset_of!(rusage_info_v3, ri_billed_system_time) - 216usize];
    ["Offset of field: rusage_info_v3::ri_serviced_system_time"]
        [::std::mem::offset_of!(rusage_info_v3, ri_serviced_system_time) - 224usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v4 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
    pub ri_child_user_time: u64,
    pub ri_child_system_time: u64,
    pub ri_child_pkg_idle_wkups: u64,
    pub ri_child_interrupt_wkups: u64,
    pub ri_child_pageins: u64,
    pub ri_child_elapsed_abstime: u64,
    pub ri_diskio_bytesread: u64,
    pub ri_diskio_byteswritten: u64,
    pub ri_cpu_time_qos_default: u64,
    pub ri_cpu_time_qos_maintenance: u64,
    pub ri_cpu_time_qos_background: u64,
    pub ri_cpu_time_qos_utility: u64,
    pub ri_cpu_time_qos_legacy: u64,
    pub ri_cpu_time_qos_user_initiated: u64,
    pub ri_cpu_time_qos_user_interactive: u64,
    pub ri_billed_system_time: u64,
    pub ri_serviced_system_time: u64,
    pub ri_logical_writes: u64,
    pub ri_lifetime_max_phys_footprint: u64,
    pub ri_instructions: u64,
    pub ri_cycles: u64,
    pub ri_billed_energy: u64,
    pub ri_serviced_energy: u64,
    pub ri_interval_max_phys_footprint: u64,
    pub ri_runnable_time: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v4"][::std::mem::size_of::<rusage_info_v4>() - 296usize];
    ["Alignment of rusage_info_v4"][::std::mem::align_of::<rusage_info_v4>() - 8usize];
    ["Offset of field: rusage_info_v4::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v4, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v4::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v4::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v4::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v4, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v4::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v4, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v4::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v4, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v4::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v4, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v4::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v4, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v4::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v4, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v4::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v4, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v4::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v4, ri_proc_exit_abstime) - 88usize];
    ["Offset of field: rusage_info_v4::ri_child_user_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_child_user_time) - 96usize];
    ["Offset of field: rusage_info_v4::ri_child_system_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_child_system_time) - 104usize];
    ["Offset of field: rusage_info_v4::ri_child_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v4, ri_child_pkg_idle_wkups) - 112usize];
    ["Offset of field: rusage_info_v4::ri_child_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v4, ri_child_interrupt_wkups) - 120usize];
    ["Offset of field: rusage_info_v4::ri_child_pageins"]
        [::std::mem::offset_of!(rusage_info_v4, ri_child_pageins) - 128usize];
    ["Offset of field: rusage_info_v4::ri_child_elapsed_abstime"]
        [::std::mem::offset_of!(rusage_info_v4, ri_child_elapsed_abstime) - 136usize];
    ["Offset of field: rusage_info_v4::ri_diskio_bytesread"]
        [::std::mem::offset_of!(rusage_info_v4, ri_diskio_bytesread) - 144usize];
    ["Offset of field: rusage_info_v4::ri_diskio_byteswritten"]
        [::std::mem::offset_of!(rusage_info_v4, ri_diskio_byteswritten) - 152usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_default"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_default) - 160usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_maintenance"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_maintenance) - 168usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_background"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_background) - 176usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_utility"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_utility) - 184usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_legacy"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_legacy) - 192usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_initiated"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_initiated) - 200usize];
    ["Offset of field: rusage_info_v4::ri_cpu_time_qos_user_interactive"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cpu_time_qos_user_interactive) - 208usize];
    ["Offset of field: rusage_info_v4::ri_billed_system_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_billed_system_time) - 216usize];
    ["Offset of field: rusage_info_v4::ri_serviced_system_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_serviced_system_time) - 224usize];
    ["Offset of field: rusage_info_v4::ri_logical_writes"]
        [::std::mem::offset_of!(rusage_info_v4, ri_logical_writes) - 232usize];
    ["Offset of field: rusage_info_v4::ri_lifetime_max_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v4, ri_lifetime_max_phys_footprint) - 240usize];
    ["Offset of field: rusage_info_v4::ri_instructions"]
        [::std::mem::offset_of!(rusage_info_v4, ri_instructions) - 248usize];
    ["Offset of field: rusage_info_v4::ri_cycles"]
        [::std::mem::offset_of!(rusage_info_v4, ri_cycles) - 256usize];
    ["Offset of field: rusage_info_v4::ri_billed_energy"]
        [::std::mem::offset_of!(rusage_info_v4, ri_billed_energy) - 264usize];
    ["Offset of field: rusage_info_v4::ri_serviced_energy"]
        [::std::mem::offset_of!(rusage_info_v4, ri_serviced_energy) - 272usize];
    ["Offset of field: rusage_info_v4::ri_interval_max_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v4, ri_interval_max_phys_footprint) - 280usize];
    ["Offset of field: rusage_info_v4::ri_runnable_time"]
        [::std::mem::offset_of!(rusage_info_v4, ri_runnable_time) - 288usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v5 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
    pub ri_child_user_time: u64,
    pub ri_child_system_time: u64,
    pub ri_child_pkg_idle_wkups: u64,
    pub ri_child_interrupt_wkups: u64,
    pub ri_child_pageins: u64,
    pub ri_child_elapsed_abstime: u64,
    pub ri_diskio_bytesread: u64,
    pub ri_diskio_byteswritten: u64,
    pub ri_cpu_time_qos_default: u64,
    pub ri_cpu_time_qos_maintenance: u64,
    pub ri_cpu_time_qos_background: u64,
    pub ri_cpu_time_qos_utility: u64,
    pub ri_cpu_time_qos_legacy: u64,
    pub ri_cpu_time_qos_user_initiated: u64,
    pub ri_cpu_time_qos_user_interactive: u64,
    pub ri_billed_system_time: u64,
    pub ri_serviced_system_time: u64,
    pub ri_logical_writes: u64,
    pub ri_lifetime_max_phys_footprint: u64,
    pub ri_instructions: u64,
    pub ri_cycles: u64,
    pub ri_billed_energy: u64,
    pub ri_serviced_energy: u64,
    pub ri_interval_max_phys_footprint: u64,
    pub ri_runnable_time: u64,
    pub ri_flags: u64,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v5"][::std::mem::size_of::<rusage_info_v5>() - 304usize];
    ["Alignment of rusage_info_v5"][::std::mem::align_of::<rusage_info_v5>() - 8usize];
    ["Offset of field: rusage_info_v5::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v5, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v5::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v5::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v5::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v5, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v5::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v5, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v5::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v5, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v5::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v5, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v5::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v5, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v5::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v5, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v5::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v5, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v5::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v5, ri_proc_exit_abstime) - 88usize];
    ["Offset of field: rusage_info_v5::ri_child_user_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_child_user_time) - 96usize];
    ["Offset of field: rusage_info_v5::ri_child_system_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_child_system_time) - 104usize];
    ["Offset of field: rusage_info_v5::ri_child_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v5, ri_child_pkg_idle_wkups) - 112usize];
    ["Offset of field: rusage_info_v5::ri_child_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v5, ri_child_interrupt_wkups) - 120usize];
    ["Offset of field: rusage_info_v5::ri_child_pageins"]
        [::std::mem::offset_of!(rusage_info_v5, ri_child_pageins) - 128usize];
    ["Offset of field: rusage_info_v5::ri_child_elapsed_abstime"]
        [::std::mem::offset_of!(rusage_info_v5, ri_child_elapsed_abstime) - 136usize];
    ["Offset of field: rusage_info_v5::ri_diskio_bytesread"]
        [::std::mem::offset_of!(rusage_info_v5, ri_diskio_bytesread) - 144usize];
    ["Offset of field: rusage_info_v5::ri_diskio_byteswritten"]
        [::std::mem::offset_of!(rusage_info_v5, ri_diskio_byteswritten) - 152usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_default"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_default) - 160usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_maintenance"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_maintenance) - 168usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_background"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_background) - 176usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_utility"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_utility) - 184usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_legacy"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_legacy) - 192usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_initiated"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_initiated) - 200usize];
    ["Offset of field: rusage_info_v5::ri_cpu_time_qos_user_interactive"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cpu_time_qos_user_interactive) - 208usize];
    ["Offset of field: rusage_info_v5::ri_billed_system_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_billed_system_time) - 216usize];
    ["Offset of field: rusage_info_v5::ri_serviced_system_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_serviced_system_time) - 224usize];
    ["Offset of field: rusage_info_v5::ri_logical_writes"]
        [::std::mem::offset_of!(rusage_info_v5, ri_logical_writes) - 232usize];
    ["Offset of field: rusage_info_v5::ri_lifetime_max_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v5, ri_lifetime_max_phys_footprint) - 240usize];
    ["Offset of field: rusage_info_v5::ri_instructions"]
        [::std::mem::offset_of!(rusage_info_v5, ri_instructions) - 248usize];
    ["Offset of field: rusage_info_v5::ri_cycles"]
        [::std::mem::offset_of!(rusage_info_v5, ri_cycles) - 256usize];
    ["Offset of field: rusage_info_v5::ri_billed_energy"]
        [::std::mem::offset_of!(rusage_info_v5, ri_billed_energy) - 264usize];
    ["Offset of field: rusage_info_v5::ri_serviced_energy"]
        [::std::mem::offset_of!(rusage_info_v5, ri_serviced_energy) - 272usize];
    ["Offset of field: rusage_info_v5::ri_interval_max_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v5, ri_interval_max_phys_footprint) - 280usize];
    ["Offset of field: rusage_info_v5::ri_runnable_time"]
        [::std::mem::offset_of!(rusage_info_v5, ri_runnable_time) - 288usize];
    ["Offset of field: rusage_info_v5::ri_flags"]
        [::std::mem::offset_of!(rusage_info_v5, ri_flags) - 296usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rusage_info_v6 {
    pub ri_uuid: [u8; 16usize],
    pub ri_user_time: u64,
    pub ri_system_time: u64,
    pub ri_pkg_idle_wkups: u64,
    pub ri_interrupt_wkups: u64,
    pub ri_pageins: u64,
    pub ri_wired_size: u64,
    pub ri_resident_size: u64,
    pub ri_phys_footprint: u64,
    pub ri_proc_start_abstime: u64,
    pub ri_proc_exit_abstime: u64,
    pub ri_child_user_time: u64,
    pub ri_child_system_time: u64,
    pub ri_child_pkg_idle_wkups: u64,
    pub ri_child_interrupt_wkups: u64,
    pub ri_child_pageins: u64,
    pub ri_child_elapsed_abstime: u64,
    pub ri_diskio_bytesread: u64,
    pub ri_diskio_byteswritten: u64,
    pub ri_cpu_time_qos_default: u64,
    pub ri_cpu_time_qos_maintenance: u64,
    pub ri_cpu_time_qos_background: u64,
    pub ri_cpu_time_qos_utility: u64,
    pub ri_cpu_time_qos_legacy: u64,
    pub ri_cpu_time_qos_user_initiated: u64,
    pub ri_cpu_time_qos_user_interactive: u64,
    pub ri_billed_system_time: u64,
    pub ri_serviced_system_time: u64,
    pub ri_logical_writes: u64,
    pub ri_lifetime_max_phys_footprint: u64,
    pub ri_instructions: u64,
    pub ri_cycles: u64,
    pub ri_billed_energy: u64,
    pub ri_serviced_energy: u64,
    pub ri_interval_max_phys_footprint: u64,
    pub ri_runnable_time: u64,
    pub ri_flags: u64,
    pub ri_user_ptime: u64,
    pub ri_system_ptime: u64,
    pub ri_pinstructions: u64,
    pub ri_pcycles: u64,
    pub ri_energy_nj: u64,
    pub ri_penergy_nj: u64,
    pub ri_secure_time_in_system: u64,
    pub ri_secure_ptime_in_system: u64,
    pub ri_neural_footprint: u64,
    pub ri_lifetime_max_neural_footprint: u64,
    pub ri_interval_max_neural_footprint: u64,
    pub ri_reserved: [u64; 9usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rusage_info_v6"][::std::mem::size_of::<rusage_info_v6>() - 464usize];
    ["Alignment of rusage_info_v6"][::std::mem::align_of::<rusage_info_v6>() - 8usize];
    ["Offset of field: rusage_info_v6::ri_uuid"]
        [::std::mem::offset_of!(rusage_info_v6, ri_uuid) - 0usize];
    ["Offset of field: rusage_info_v6::ri_user_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_user_time) - 16usize];
    ["Offset of field: rusage_info_v6::ri_system_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_system_time) - 24usize];
    ["Offset of field: rusage_info_v6::ri_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v6, ri_pkg_idle_wkups) - 32usize];
    ["Offset of field: rusage_info_v6::ri_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v6, ri_interrupt_wkups) - 40usize];
    ["Offset of field: rusage_info_v6::ri_pageins"]
        [::std::mem::offset_of!(rusage_info_v6, ri_pageins) - 48usize];
    ["Offset of field: rusage_info_v6::ri_wired_size"]
        [::std::mem::offset_of!(rusage_info_v6, ri_wired_size) - 56usize];
    ["Offset of field: rusage_info_v6::ri_resident_size"]
        [::std::mem::offset_of!(rusage_info_v6, ri_resident_size) - 64usize];
    ["Offset of field: rusage_info_v6::ri_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v6, ri_phys_footprint) - 72usize];
    ["Offset of field: rusage_info_v6::ri_proc_start_abstime"]
        [::std::mem::offset_of!(rusage_info_v6, ri_proc_start_abstime) - 80usize];
    ["Offset of field: rusage_info_v6::ri_proc_exit_abstime"]
        [::std::mem::offset_of!(rusage_info_v6, ri_proc_exit_abstime) - 88usize];
    ["Offset of field: rusage_info_v6::ri_child_user_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_child_user_time) - 96usize];
    ["Offset of field: rusage_info_v6::ri_child_system_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_child_system_time) - 104usize];
    ["Offset of field: rusage_info_v6::ri_child_pkg_idle_wkups"]
        [::std::mem::offset_of!(rusage_info_v6, ri_child_pkg_idle_wkups) - 112usize];
    ["Offset of field: rusage_info_v6::ri_child_interrupt_wkups"]
        [::std::mem::offset_of!(rusage_info_v6, ri_child_interrupt_wkups) - 120usize];
    ["Offset of field: rusage_info_v6::ri_child_pageins"]
        [::std::mem::offset_of!(rusage_info_v6, ri_child_pageins) - 128usize];
    ["Offset of field: rusage_info_v6::ri_child_elapsed_abstime"]
        [::std::mem::offset_of!(rusage_info_v6, ri_child_elapsed_abstime) - 136usize];
    ["Offset of field: rusage_info_v6::ri_diskio_bytesread"]
        [::std::mem::offset_of!(rusage_info_v6, ri_diskio_bytesread) - 144usize];
    ["Offset of field: rusage_info_v6::ri_diskio_byteswritten"]
        [::std::mem::offset_of!(rusage_info_v6, ri_diskio_byteswritten) - 152usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_default"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_default) - 160usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_maintenance"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_maintenance) - 168usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_background"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_background) - 176usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_utility"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_utility) - 184usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_legacy"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_legacy) - 192usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_user_initiated"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_user_initiated) - 200usize];
    ["Offset of field: rusage_info_v6::ri_cpu_time_qos_user_interactive"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cpu_time_qos_user_interactive) - 208usize];
    ["Offset of field: rusage_info_v6::ri_billed_system_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_billed_system_time) - 216usize];
    ["Offset of field: rusage_info_v6::ri_serviced_system_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_serviced_system_time) - 224usize];
    ["Offset of field: rusage_info_v6::ri_logical_writes"]
        [::std::mem::offset_of!(rusage_info_v6, ri_logical_writes) - 232usize];
    ["Offset of field: rusage_info_v6::ri_lifetime_max_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v6, ri_lifetime_max_phys_footprint) - 240usize];
    ["Offset of field: rusage_info_v6::ri_instructions"]
        [::std::mem::offset_of!(rusage_info_v6, ri_instructions) - 248usize];
    ["Offset of field: rusage_info_v6::ri_cycles"]
        [::std::mem::offset_of!(rusage_info_v6, ri_cycles) - 256usize];
    ["Offset of field: rusage_info_v6::ri_billed_energy"]
        [::std::mem::offset_of!(rusage_info_v6, ri_billed_energy) - 264usize];
    ["Offset of field: rusage_info_v6::ri_serviced_energy"]
        [::std::mem::offset_of!(rusage_info_v6, ri_serviced_energy) - 272usize];
    ["Offset of field: rusage_info_v6::ri_interval_max_phys_footprint"]
        [::std::mem::offset_of!(rusage_info_v6, ri_interval_max_phys_footprint) - 280usize];
    ["Offset of field: rusage_info_v6::ri_runnable_time"]
        [::std::mem::offset_of!(rusage_info_v6, ri_runnable_time) - 288usize];
    ["Offset of field: rusage_info_v6::ri_flags"]
        [::std::mem::offset_of!(rusage_info_v6, ri_flags) - 296usize];
    ["Offset of field: rusage_info_v6::ri_user_ptime"]
        [::std::mem::offset_of!(rusage_info_v6, ri_user_ptime) - 304usize];
    ["Offset of field: rusage_info_v6::ri_system_ptime"]
        [::std::mem::offset_of!(rusage_info_v6, ri_system_ptime) - 312usize];
    ["Offset of field: rusage_info_v6::ri_pinstructions"]
        [::std::mem::offset_of!(rusage_info_v6, ri_pinstructions) - 320usize];
    ["Offset of field: rusage_info_v6::ri_pcycles"]
        [::std::mem::offset_of!(rusage_info_v6, ri_pcycles) - 328usize];
    ["Offset of field: rusage_info_v6::ri_energy_nj"]
        [::std::mem::offset_of!(rusage_info_v6, ri_energy_nj) - 336usize];
    ["Offset of field: rusage_info_v6::ri_penergy_nj"]
        [::std::mem::offset_of!(rusage_info_v6, ri_penergy_nj) - 344usize];
    ["Offset of field: rusage_info_v6::ri_secure_time_in_system"]
        [::std::mem::offset_of!(rusage_info_v6, ri_secure_time_in_system) - 352usize];
    ["Offset of field: rusage_info_v6::ri_secure_ptime_in_system"]
        [::std::mem::offset_of!(rusage_info_v6, ri_secure_ptime_in_system) - 360usize];
    ["Offset of field: rusage_info_v6::ri_neural_footprint"]
        [::std::mem::offset_of!(rusage_info_v6, ri_neural_footprint) - 368usize];
    ["Offset of field: rusage_info_v6::ri_lifetime_max_neural_footprint"]
        [::std::mem::offset_of!(rusage_info_v6, ri_lifetime_max_neural_footprint) - 376usize];
    ["Offset of field: rusage_info_v6::ri_interval_max_neural_footprint"]
        [::std::mem::offset_of!(rusage_info_v6, ri_interval_max_neural_footprint) - 384usize];
    ["Offset of field: rusage_info_v6::ri_reserved"]
        [::std::mem::offset_of!(rusage_info_v6, ri_reserved) - 392usize];
};
pub type rusage_info_current = rusage_info_v6;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct rlimit {
    pub rlim_cur: rlim_t,
    pub rlim_max: rlim_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of rlimit"][::std::mem::size_of::<rlimit>() - 16usize];
    ["Alignment of rlimit"][::std::mem::align_of::<rlimit>() - 8usize];
    ["Offset of field: rlimit::rlim_cur"][::std::mem::offset_of!(rlimit, rlim_cur) - 0usize];
    ["Offset of field: rlimit::rlim_max"][::std::mem::offset_of!(rlimit, rlim_max) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct proc_rlimit_control_wakeupmon {
    pub wm_flags: u32,
    pub wm_rate: i32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of proc_rlimit_control_wakeupmon"]
        [::std::mem::size_of::<proc_rlimit_control_wakeupmon>() - 8usize];
    ["Alignment of proc_rlimit_control_wakeupmon"]
        [::std::mem::align_of::<proc_rlimit_control_wakeupmon>() - 4usize];
    ["Offset of field: proc_rlimit_control_wakeupmon::wm_flags"]
        [::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_flags) - 0usize];
    ["Offset of field: proc_rlimit_control_wakeupmon::wm_rate"]
        [::std::mem::offset_of!(proc_rlimit_control_wakeupmon, wm_rate) - 4usize];
};
unsafe extern "C" {
    pub fn getpriority(arg1: ::std::ffi::c_int, arg2: id_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getiopolicy_np(arg1: ::std::ffi::c_int, arg2: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getrlimit(arg1: ::std::ffi::c_int, arg2: *mut rlimit) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getrusage(arg1: ::std::ffi::c_int, arg2: *mut rusage) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn setpriority(
        arg1: ::std::ffi::c_int,
        arg2: id_t,
        arg3: ::std::ffi::c_int,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn setiopolicy_np(
        arg1: ::std::ffi::c_int,
        arg2: ::std::ffi::c_int,
        arg3: ::std::ffi::c_int,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn setrlimit(arg1: ::std::ffi::c_int, arg2: *const rlimit) -> ::std::ffi::c_int;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union wait {
    pub w_status: ::std::ffi::c_int,
    pub w_T: wait__bindgen_ty_1,
    pub w_S: wait__bindgen_ty_2,
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wait__bindgen_ty_1 {
    pub _bitfield_align_1: [u16; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of wait__bindgen_ty_1"][::std::mem::size_of::<wait__bindgen_ty_1>() - 4usize];
    ["Alignment of wait__bindgen_ty_1"][::std::mem::align_of::<wait__bindgen_ty_1>() - 4usize];
};
impl wait__bindgen_ty_1 {
    #[inline]
    pub fn w_Termsig(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 7u8) as u32) }
    }
    #[inline]
    pub fn set_w_Termsig(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 7u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Termsig_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                7u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Termsig_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                7u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn w_Coredump(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(7usize, 1u8) as u32) }
    }
    #[inline]
    pub fn set_w_Coredump(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(7usize, 1u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Coredump_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                7usize,
                1u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Coredump_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                7usize,
                1u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn w_Retcode(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
    }
    #[inline]
    pub fn set_w_Retcode(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(8usize, 8u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Retcode_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                8usize,
                8u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Retcode_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                8usize,
                8u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn w_Filler(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
    }
    #[inline]
    pub fn set_w_Filler(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(16usize, 16u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                16usize,
                16u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                16usize,
                16u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        w_Termsig: ::std::ffi::c_uint,
        w_Coredump: ::std::ffi::c_uint,
        w_Retcode: ::std::ffi::c_uint,
        w_Filler: ::std::ffi::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 7u8, {
            let w_Termsig: u32 = unsafe { ::std::mem::transmute(w_Termsig) };
            w_Termsig as u64
        });
        __bindgen_bitfield_unit.set(7usize, 1u8, {
            let w_Coredump: u32 = unsafe { ::std::mem::transmute(w_Coredump) };
            w_Coredump as u64
        });
        __bindgen_bitfield_unit.set(8usize, 8u8, {
            let w_Retcode: u32 = unsafe { ::std::mem::transmute(w_Retcode) };
            w_Retcode as u64
        });
        __bindgen_bitfield_unit.set(16usize, 16u8, {
            let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
            w_Filler as u64
        });
        __bindgen_bitfield_unit
    }
}
#[repr(C)]
#[repr(align(4))]
#[derive(Debug, Default, Copy, Clone)]
pub struct wait__bindgen_ty_2 {
    pub _bitfield_align_1: [u16; 0],
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of wait__bindgen_ty_2"][::std::mem::size_of::<wait__bindgen_ty_2>() - 4usize];
    ["Alignment of wait__bindgen_ty_2"][::std::mem::align_of::<wait__bindgen_ty_2>() - 4usize];
};
impl wait__bindgen_ty_2 {
    #[inline]
    pub fn w_Stopval(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(0usize, 8u8) as u32) }
    }
    #[inline]
    pub fn set_w_Stopval(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(0usize, 8u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Stopval_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                0usize,
                8u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Stopval_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                0usize,
                8u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn w_Stopsig(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(8usize, 8u8) as u32) }
    }
    #[inline]
    pub fn set_w_Stopsig(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(8usize, 8u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Stopsig_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                8usize,
                8u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Stopsig_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                8usize,
                8u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn w_Filler(&self) -> ::std::ffi::c_uint {
        unsafe { ::std::mem::transmute(self._bitfield_1.get(16usize, 16u8) as u32) }
    }
    #[inline]
    pub fn set_w_Filler(&mut self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            self._bitfield_1.set(16usize, 16u8, val as u64)
        }
    }
    #[inline]
    pub unsafe fn w_Filler_raw(this: *const Self) -> ::std::ffi::c_uint {
        unsafe {
            ::std::mem::transmute(<__BindgenBitfieldUnit<[u8; 4usize]>>::raw_get(
                ::std::ptr::addr_of!((*this)._bitfield_1),
                16usize,
                16u8,
            ) as u32)
        }
    }
    #[inline]
    pub unsafe fn set_w_Filler_raw(this: *mut Self, val: ::std::ffi::c_uint) {
        unsafe {
            let val: u32 = ::std::mem::transmute(val);
            <__BindgenBitfieldUnit<[u8; 4usize]>>::raw_set(
                ::std::ptr::addr_of_mut!((*this)._bitfield_1),
                16usize,
                16u8,
                val as u64,
            )
        }
    }
    #[inline]
    pub fn new_bitfield_1(
        w_Stopval: ::std::ffi::c_uint,
        w_Stopsig: ::std::ffi::c_uint,
        w_Filler: ::std::ffi::c_uint,
    ) -> __BindgenBitfieldUnit<[u8; 4usize]> {
        let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
        __bindgen_bitfield_unit.set(0usize, 8u8, {
            let w_Stopval: u32 = unsafe { ::std::mem::transmute(w_Stopval) };
            w_Stopval as u64
        });
        __bindgen_bitfield_unit.set(8usize, 8u8, {
            let w_Stopsig: u32 = unsafe { ::std::mem::transmute(w_Stopsig) };
            w_Stopsig as u64
        });
        __bindgen_bitfield_unit.set(16usize, 16u8, {
            let w_Filler: u32 = unsafe { ::std::mem::transmute(w_Filler) };
            w_Filler as u64
        });
        __bindgen_bitfield_unit
    }
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of wait"][::std::mem::size_of::<wait>() - 4usize];
    ["Alignment of wait"][::std::mem::align_of::<wait>() - 4usize];
    ["Offset of field: wait::w_status"][::std::mem::offset_of!(wait, w_status) - 0usize];
    ["Offset of field: wait::w_T"][::std::mem::offset_of!(wait, w_T) - 0usize];
    ["Offset of field: wait::w_S"][::std::mem::offset_of!(wait, w_S) - 0usize];
};
impl Default for wait {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
unsafe extern "C" {
    pub fn wait(arg1: *mut ::std::ffi::c_int) -> pid_t;
}
unsafe extern "C" {
    pub fn waitpid(arg1: pid_t, arg2: *mut ::std::ffi::c_int, arg3: ::std::ffi::c_int) -> pid_t;
}
unsafe extern "C" {
    pub fn waitid(
        arg1: idtype_t,
        arg2: id_t,
        arg3: *mut siginfo_t,
        arg4: ::std::ffi::c_int,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn wait3(arg1: *mut ::std::ffi::c_int, arg2: ::std::ffi::c_int, arg3: *mut rusage)
        -> pid_t;
}
unsafe extern "C" {
    pub fn wait4(
        arg1: pid_t,
        arg2: *mut ::std::ffi::c_int,
        arg3: ::std::ffi::c_int,
        arg4: *mut rusage,
    ) -> pid_t;
}
unsafe extern "C" {
    pub fn alloca(__size: ::std::ffi::c_ulong) -> *mut ::std::ffi::c_void;
}
pub type ct_rune_t = __darwin_ct_rune_t;
pub type rune_t = __darwin_rune_t;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct div_t {
    pub quot: ::std::ffi::c_int,
    pub rem: ::std::ffi::c_int,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of div_t"][::std::mem::size_of::<div_t>() - 8usize];
    ["Alignment of div_t"][::std::mem::align_of::<div_t>() - 4usize];
    ["Offset of field: div_t::quot"][::std::mem::offset_of!(div_t, quot) - 0usize];
    ["Offset of field: div_t::rem"][::std::mem::offset_of!(div_t, rem) - 4usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ldiv_t {
    pub quot: ::std::ffi::c_long,
    pub rem: ::std::ffi::c_long,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ldiv_t"][::std::mem::size_of::<ldiv_t>() - 16usize];
    ["Alignment of ldiv_t"][::std::mem::align_of::<ldiv_t>() - 8usize];
    ["Offset of field: ldiv_t::quot"][::std::mem::offset_of!(ldiv_t, quot) - 0usize];
    ["Offset of field: ldiv_t::rem"][::std::mem::offset_of!(ldiv_t, rem) - 8usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct lldiv_t {
    pub quot: ::std::ffi::c_longlong,
    pub rem: ::std::ffi::c_longlong,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of lldiv_t"][::std::mem::size_of::<lldiv_t>() - 16usize];
    ["Alignment of lldiv_t"][::std::mem::align_of::<lldiv_t>() - 8usize];
    ["Offset of field: lldiv_t::quot"][::std::mem::offset_of!(lldiv_t, quot) - 0usize];
    ["Offset of field: lldiv_t::rem"][::std::mem::offset_of!(lldiv_t, rem) - 8usize];
};
unsafe extern "C" {
    pub static mut __mb_cur_max: ::std::ffi::c_int;
}
pub type malloc_type_id_t = ::std::ffi::c_ulonglong;
unsafe extern "C" {
    pub fn malloc_type_malloc(size: usize, type_id: malloc_type_id_t) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_calloc(
        count: usize,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_free(ptr: *mut ::std::ffi::c_void, type_id: malloc_type_id_t);
}
unsafe extern "C" {
    pub fn malloc_type_realloc(
        ptr: *mut ::std::ffi::c_void,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_valloc(size: usize, type_id: malloc_type_id_t) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_aligned_alloc(
        alignment: usize,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_posix_memalign(
        memptr: *mut *mut ::std::ffi::c_void,
        alignment: usize,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> ::std::ffi::c_int;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct _malloc_zone_t {
    _unused: [u8; 0],
}
pub type malloc_zone_t = _malloc_zone_t;
unsafe extern "C" {
    pub fn malloc_type_zone_malloc(
        zone: *mut malloc_zone_t,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_zone_calloc(
        zone: *mut malloc_zone_t,
        count: usize,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_zone_free(
        zone: *mut malloc_zone_t,
        ptr: *mut ::std::ffi::c_void,
        type_id: malloc_type_id_t,
    );
}
unsafe extern "C" {
    pub fn malloc_type_zone_realloc(
        zone: *mut malloc_zone_t,
        ptr: *mut ::std::ffi::c_void,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_zone_valloc(
        zone: *mut malloc_zone_t,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc_type_zone_memalign(
        zone: *mut malloc_zone_t,
        alignment: usize,
        size: usize,
        type_id: malloc_type_id_t,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn malloc(__size: ::std::ffi::c_ulong) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn calloc(
        __count: ::std::ffi::c_ulong,
        __size: ::std::ffi::c_ulong,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn free(arg1: *mut ::std::ffi::c_void);
}
unsafe extern "C" {
    pub fn realloc(
        __ptr: *mut ::std::ffi::c_void,
        __size: ::std::ffi::c_ulong,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn reallocf(__ptr: *mut ::std::ffi::c_void, __size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn valloc(__size: usize) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn aligned_alloc(
        __alignment: ::std::ffi::c_ulong,
        __size: ::std::ffi::c_ulong,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn posix_memalign(
        __memptr: *mut *mut ::std::ffi::c_void,
        __alignment: usize,
        __size: usize,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn abort() -> !;
}
unsafe extern "C" {
    pub fn abs(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn atexit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn at_quick_exit(arg1: ::std::option::Option<unsafe extern "C" fn()>) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn atof(arg1: *const ::std::ffi::c_char) -> f64;
}
unsafe extern "C" {
    pub fn atoi(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn atol(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn atoll(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
    pub fn bsearch(
        __key: *const ::std::ffi::c_void,
        __base: *const ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn div(arg1: ::std::ffi::c_int, arg2: ::std::ffi::c_int) -> div_t;
}
unsafe extern "C" {
    pub fn exit(arg1: ::std::ffi::c_int) -> !;
}
unsafe extern "C" {
    pub fn getenv(arg1: *const ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn labs(arg1: ::std::ffi::c_long) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn ldiv(arg1: ::std::ffi::c_long, arg2: ::std::ffi::c_long) -> ldiv_t;
}
unsafe extern "C" {
    pub fn llabs(arg1: ::std::ffi::c_longlong) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
    pub fn lldiv(arg1: ::std::ffi::c_longlong, arg2: ::std::ffi::c_longlong) -> lldiv_t;
}
unsafe extern "C" {
    pub fn mblen(__s: *const ::std::ffi::c_char, __n: usize) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn mbstowcs(arg1: *mut wchar_t, arg2: *const ::std::ffi::c_char, __n: usize) -> usize;
}
unsafe extern "C" {
    pub fn mbtowc(
        arg1: *mut wchar_t,
        arg2: *const ::std::ffi::c_char,
        __n: usize,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn qsort(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    );
}
unsafe extern "C" {
    pub fn quick_exit(arg1: ::std::ffi::c_int) -> !;
}
unsafe extern "C" {
    pub fn rand() -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn srand(arg1: ::std::ffi::c_uint);
}
unsafe extern "C" {
    pub fn strtod(arg1: *const ::std::ffi::c_char, arg2: *mut *mut ::std::ffi::c_char) -> f64;
}
unsafe extern "C" {
    pub fn strtof(arg1: *const ::std::ffi::c_char, arg2: *mut *mut ::std::ffi::c_char) -> f32;
}
unsafe extern "C" {
    pub fn strtol(
        __str: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn strtold(arg1: *const ::std::ffi::c_char, arg2: *mut *mut ::std::ffi::c_char) -> f64;
}
unsafe extern "C" {
    pub fn strtoll(
        __str: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
    pub fn strtoul(
        __str: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> ::std::ffi::c_ulong;
}
unsafe extern "C" {
    pub fn strtoull(
        __str: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> ::std::ffi::c_ulonglong;
}
unsafe extern "C" {
    pub fn system(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn wcstombs(arg1: *mut ::std::ffi::c_char, arg2: *const wchar_t, __n: usize) -> usize;
}
unsafe extern "C" {
    pub fn wctomb(arg1: *mut ::std::ffi::c_char, arg2: wchar_t) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn _Exit(arg1: ::std::ffi::c_int) -> !;
}
unsafe extern "C" {
    pub fn a64l(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn drand48() -> f64;
}
unsafe extern "C" {
    pub fn ecvt(
        arg1: f64,
        arg2: ::std::ffi::c_int,
        arg3: *mut ::std::ffi::c_int,
        arg4: *mut ::std::ffi::c_int,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn erand48(arg1: *mut ::std::ffi::c_ushort) -> f64;
}
unsafe extern "C" {
    pub fn fcvt(
        arg1: f64,
        arg2: ::std::ffi::c_int,
        arg3: *mut ::std::ffi::c_int,
        arg4: *mut ::std::ffi::c_int,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn gcvt(
        arg1: f64,
        arg2: ::std::ffi::c_int,
        arg3: *mut ::std::ffi::c_char,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn getsubopt(
        arg1: *mut *mut ::std::ffi::c_char,
        arg2: *const *mut ::std::ffi::c_char,
        arg3: *mut *mut ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn grantpt(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn initstate(
        arg1: ::std::ffi::c_uint,
        arg2: *mut ::std::ffi::c_char,
        __size: usize,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn jrand48(arg1: *mut ::std::ffi::c_ushort) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn l64a(arg1: ::std::ffi::c_long) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn lcong48(arg1: *mut ::std::ffi::c_ushort);
}
unsafe extern "C" {
    pub fn lrand48() -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn mktemp(arg1: *mut ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn mkstemp(arg1: *mut ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn mrand48() -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn nrand48(arg1: *mut ::std::ffi::c_ushort) -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn posix_openpt(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn ptsname(arg1: ::std::ffi::c_int) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn ptsname_r(
        fildes: ::std::ffi::c_int,
        buffer: *mut ::std::ffi::c_char,
        buflen: usize,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn putenv(arg1: *mut ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn random() -> ::std::ffi::c_long;
}
unsafe extern "C" {
    pub fn rand_r(arg1: *mut ::std::ffi::c_uint) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    #[link_name = "\u{1}_realpath$DARWIN_EXTSN"]
    pub fn realpath(
        arg1: *const ::std::ffi::c_char,
        arg2: *mut ::std::ffi::c_char,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn seed48(arg1: *mut ::std::ffi::c_ushort) -> *mut ::std::ffi::c_ushort;
}
unsafe extern "C" {
    pub fn setenv(
        __name: *const ::std::ffi::c_char,
        __value: *const ::std::ffi::c_char,
        __overwrite: ::std::ffi::c_int,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn setkey(arg1: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    pub fn setstate(arg1: *const ::std::ffi::c_char) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn srand48(arg1: ::std::ffi::c_long);
}
unsafe extern "C" {
    pub fn srandom(arg1: ::std::ffi::c_uint);
}
unsafe extern "C" {
    pub fn unlockpt(arg1: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn unsetenv(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
pub type dev_t = __darwin_dev_t;
pub type mode_t = __darwin_mode_t;
unsafe extern "C" {
    pub fn arc4random() -> u32;
}
unsafe extern "C" {
    pub fn arc4random_addrandom(arg1: *mut ::std::ffi::c_uchar, __datlen: ::std::ffi::c_int);
}
unsafe extern "C" {
    pub fn arc4random_buf(__buf: *mut ::std::ffi::c_void, __nbytes: usize);
}
unsafe extern "C" {
    pub fn arc4random_stir();
}
unsafe extern "C" {
    pub fn arc4random_uniform(__upper_bound: u32) -> u32;
}
unsafe extern "C" {
    pub fn atexit_b(arg1: *mut ::std::ffi::c_void) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn bsearch_b(
        __key: *const ::std::ffi::c_void,
        __base: *const ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: *mut ::std::ffi::c_void,
    ) -> *mut ::std::ffi::c_void;
}
unsafe extern "C" {
    pub fn cgetcap(
        arg1: *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: ::std::ffi::c_int,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn cgetclose() -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetent(
        arg1: *mut *mut ::std::ffi::c_char,
        arg2: *mut *mut ::std::ffi::c_char,
        arg3: *const ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetfirst(
        arg1: *mut *mut ::std::ffi::c_char,
        arg2: *mut *mut ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetmatch(
        arg1: *const ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetnext(
        arg1: *mut *mut ::std::ffi::c_char,
        arg2: *mut *mut ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetnum(
        arg1: *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: *mut ::std::ffi::c_long,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetset(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetstr(
        arg1: *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: *mut *mut ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn cgetustr(
        arg1: *mut ::std::ffi::c_char,
        arg2: *const ::std::ffi::c_char,
        arg3: *mut *mut ::std::ffi::c_char,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn daemon(arg1: ::std::ffi::c_int, arg2: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn devname(arg1: dev_t, arg2: mode_t) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn devname_r(
        arg1: dev_t,
        arg2: mode_t,
        buf: *mut ::std::ffi::c_char,
        len: ::std::ffi::c_int,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn getbsize(
        arg1: *mut ::std::ffi::c_int,
        arg2: *mut ::std::ffi::c_long,
    ) -> *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn getloadavg(arg1: *mut f64, __nelem: ::std::ffi::c_int) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn getprogname() -> *const ::std::ffi::c_char;
}
unsafe extern "C" {
    pub fn setprogname(arg1: *const ::std::ffi::c_char);
}
unsafe extern "C" {
    pub fn heapsort(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn heapsort_b(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: *mut ::std::ffi::c_void,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn mergesort(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn mergesort_b(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: *mut ::std::ffi::c_void,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn psort(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *const ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    );
}
unsafe extern "C" {
    pub fn psort_b(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: *mut ::std::ffi::c_void,
    );
}
unsafe extern "C" {
    pub fn psort_r(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        arg1: *mut ::std::ffi::c_void,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
                arg3: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    );
}
unsafe extern "C" {
    pub fn qsort_b(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        __compar: *mut ::std::ffi::c_void,
    );
}
unsafe extern "C" {
    pub fn qsort_r(
        __base: *mut ::std::ffi::c_void,
        __nel: usize,
        __width: usize,
        arg1: *mut ::std::ffi::c_void,
        __compar: ::std::option::Option<
            unsafe extern "C" fn(
                arg1: *mut ::std::ffi::c_void,
                arg2: *const ::std::ffi::c_void,
                arg3: *const ::std::ffi::c_void,
            ) -> ::std::ffi::c_int,
        >,
    );
}
unsafe extern "C" {
    pub fn radixsort(
        __base: *mut *const ::std::ffi::c_uchar,
        __nel: ::std::ffi::c_int,
        __table: *const ::std::ffi::c_uchar,
        __endbyte: ::std::ffi::c_uint,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn rpmatch(arg1: *const ::std::ffi::c_char) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn sradixsort(
        __base: *mut *const ::std::ffi::c_uchar,
        __nel: ::std::ffi::c_int,
        __table: *const ::std::ffi::c_uchar,
        __endbyte: ::std::ffi::c_uint,
    ) -> ::std::ffi::c_int;
}
unsafe extern "C" {
    pub fn sranddev();
}
unsafe extern "C" {
    pub fn srandomdev();
}
unsafe extern "C" {
    pub fn strtonum(
        __numstr: *const ::std::ffi::c_char,
        __minval: ::std::ffi::c_longlong,
        __maxval: ::std::ffi::c_longlong,
        __errstrp: *mut *const ::std::ffi::c_char,
    ) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
    pub fn strtoq(
        __str: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> ::std::ffi::c_longlong;
}
unsafe extern "C" {
    pub fn strtouq(
        __str: *const ::std::ffi::c_char,
        __endptr: *mut *mut ::std::ffi::c_char,
        __base: ::std::ffi::c_int,
    ) -> ::std::ffi::c_ulonglong;
}
unsafe extern "C" {
    pub static mut suboptarg: *mut ::std::ffi::c_char;
}
unsafe extern "C" {
    #[doc = " @brief Degenerate empty hash table that will return \"not present\" for any lookup"]
    pub static ddsrt_hh_empty: ddsrt_hh;
}
pub type dds_data_type_properties_t = u64;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdr_header {
    pub identifier: ::std::ffi::c_ushort,
    pub options: ::std::ffi::c_ushort,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdr_header"][::std::mem::size_of::<dds_cdr_header>() - 4usize];
    ["Alignment of dds_cdr_header"][::std::mem::align_of::<dds_cdr_header>() - 2usize];
    ["Offset of field: dds_cdr_header::identifier"]
        [::std::mem::offset_of!(dds_cdr_header, identifier) - 0usize];
    ["Offset of field: dds_cdr_header::options"]
        [::std::mem::offset_of!(dds_cdr_header, options) - 2usize];
};
pub const dds_cdr_type_extensibility_DDS_CDR_TYPE_EXT_FINAL: dds_cdr_type_extensibility = 0;
pub const dds_cdr_type_extensibility_DDS_CDR_TYPE_EXT_APPENDABLE: dds_cdr_type_extensibility = 1;
pub const dds_cdr_type_extensibility_DDS_CDR_TYPE_EXT_MUTABLE: dds_cdr_type_extensibility = 2;
pub type dds_cdr_type_extensibility = ::std::ffi::c_uint;
pub const dds_cdr_key_serialization_kind_DDS_CDR_KEY_SERIALIZATION_SAMPLE:
    dds_cdr_key_serialization_kind = 0;
pub const dds_cdr_key_serialization_kind_DDS_CDR_KEY_SERIALIZATION_KEYHASH:
    dds_cdr_key_serialization_kind = 1;
pub type dds_cdr_key_serialization_kind = ::std::ffi::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_istream {
    pub m_buffer: *const ::std::ffi::c_uchar,
    pub m_size: u32,
    pub m_index: u32,
    pub m_xcdr_version: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_istream"][::std::mem::size_of::<dds_istream>() - 24usize];
    ["Alignment of dds_istream"][::std::mem::align_of::<dds_istream>() - 8usize];
    ["Offset of field: dds_istream::m_buffer"]
        [::std::mem::offset_of!(dds_istream, m_buffer) - 0usize];
    ["Offset of field: dds_istream::m_size"][::std::mem::offset_of!(dds_istream, m_size) - 8usize];
    ["Offset of field: dds_istream::m_index"]
        [::std::mem::offset_of!(dds_istream, m_index) - 12usize];
    ["Offset of field: dds_istream::m_xcdr_version"]
        [::std::mem::offset_of!(dds_istream, m_xcdr_version) - 16usize];
};
impl Default for dds_istream {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_istream_t = dds_istream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_ostream {
    pub m_buffer: *mut ::std::ffi::c_uchar,
    pub m_size: u32,
    pub m_index: u32,
    pub m_xcdr_version: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_ostream"][::std::mem::size_of::<dds_ostream>() - 24usize];
    ["Alignment of dds_ostream"][::std::mem::align_of::<dds_ostream>() - 8usize];
    ["Offset of field: dds_ostream::m_buffer"]
        [::std::mem::offset_of!(dds_ostream, m_buffer) - 0usize];
    ["Offset of field: dds_ostream::m_size"][::std::mem::offset_of!(dds_ostream, m_size) - 8usize];
    ["Offset of field: dds_ostream::m_index"]
        [::std::mem::offset_of!(dds_ostream, m_index) - 12usize];
    ["Offset of field: dds_ostream::m_xcdr_version"]
        [::std::mem::offset_of!(dds_ostream, m_xcdr_version) - 16usize];
};
impl Default for dds_ostream {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_ostream_t = dds_ostream;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_ostreamBE {
    pub x: dds_ostream_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_ostreamBE"][::std::mem::size_of::<dds_ostreamBE>() - 24usize];
    ["Alignment of dds_ostreamBE"][::std::mem::align_of::<dds_ostreamBE>() - 8usize];
    ["Offset of field: dds_ostreamBE::x"][::std::mem::offset_of!(dds_ostreamBE, x) - 0usize];
};
impl Default for dds_ostreamBE {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_ostreamBE_t = dds_ostreamBE;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_ostreamLE {
    pub x: dds_ostream_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_ostreamLE"][::std::mem::size_of::<dds_ostreamLE>() - 24usize];
    ["Alignment of dds_ostreamLE"][::std::mem::align_of::<dds_ostreamLE>() - 8usize];
    ["Offset of field: dds_ostreamLE::x"][::std::mem::offset_of!(dds_ostreamLE, x) - 0usize];
};
impl Default for dds_ostreamLE {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_ostreamLE_t = dds_ostreamLE;
pub type dds_cdrstream_allocator_t = dds_cdrstream_allocator;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdrstream_desc_key {
    pub ops_offs: u32,
    pub idx: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_desc_key"][::std::mem::size_of::<dds_cdrstream_desc_key>() - 8usize];
    ["Alignment of dds_cdrstream_desc_key"]
        [::std::mem::align_of::<dds_cdrstream_desc_key>() - 4usize];
    ["Offset of field: dds_cdrstream_desc_key::ops_offs"]
        [::std::mem::offset_of!(dds_cdrstream_desc_key, ops_offs) - 0usize];
    ["Offset of field: dds_cdrstream_desc_key::idx"]
        [::std::mem::offset_of!(dds_cdrstream_desc_key, idx) - 4usize];
};
pub type dds_cdrstream_desc_key_t = dds_cdrstream_desc_key;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc_keys {
    pub nkeys: u32,
    pub keys: *mut dds_cdrstream_desc_key,
    pub keys_definition_order: *mut dds_cdrstream_desc_key,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_desc_keys"][::std::mem::size_of::<dds_cdrstream_desc_keys>() - 24usize];
    ["Alignment of dds_cdrstream_desc_keys"]
        [::std::mem::align_of::<dds_cdrstream_desc_keys>() - 8usize];
    ["Offset of field: dds_cdrstream_desc_keys::nkeys"]
        [::std::mem::offset_of!(dds_cdrstream_desc_keys, nkeys) - 0usize];
    ["Offset of field: dds_cdrstream_desc_keys::keys"]
        [::std::mem::offset_of!(dds_cdrstream_desc_keys, keys) - 8usize];
    ["Offset of field: dds_cdrstream_desc_keys::keys_definition_order"]
        [::std::mem::offset_of!(dds_cdrstream_desc_keys, keys_definition_order) - 16usize];
};
impl Default for dds_cdrstream_desc_keys {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_cdrstream_desc_keys_t = dds_cdrstream_desc_keys;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc_op_seq {
    pub nops: u32,
    pub ops: *mut u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_desc_op_seq"]
        [::std::mem::size_of::<dds_cdrstream_desc_op_seq>() - 16usize];
    ["Alignment of dds_cdrstream_desc_op_seq"]
        [::std::mem::align_of::<dds_cdrstream_desc_op_seq>() - 8usize];
    ["Offset of field: dds_cdrstream_desc_op_seq::nops"]
        [::std::mem::offset_of!(dds_cdrstream_desc_op_seq, nops) - 0usize];
    ["Offset of field: dds_cdrstream_desc_op_seq::ops"]
        [::std::mem::offset_of!(dds_cdrstream_desc_op_seq, ops) - 8usize];
};
impl Default for dds_cdrstream_desc_op_seq {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_cdrstream_desc_op_seq_t = dds_cdrstream_desc_op_seq;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc_mid_table {
    pub table: *mut ddsrt_hh,
    pub op0: *const u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_desc_mid_table"]
        [::std::mem::size_of::<dds_cdrstream_desc_mid_table>() - 16usize];
    ["Alignment of dds_cdrstream_desc_mid_table"]
        [::std::mem::align_of::<dds_cdrstream_desc_mid_table>() - 8usize];
    ["Offset of field: dds_cdrstream_desc_mid_table::table"]
        [::std::mem::offset_of!(dds_cdrstream_desc_mid_table, table) - 0usize];
    ["Offset of field: dds_cdrstream_desc_mid_table::op0"]
        [::std::mem::offset_of!(dds_cdrstream_desc_mid_table, op0) - 8usize];
};
impl Default for dds_cdrstream_desc_mid_table {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_cdrstream_desc_mid {
    pub adr_offs: u32,
    pub mid: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_desc_mid"][::std::mem::size_of::<dds_cdrstream_desc_mid>() - 8usize];
    ["Alignment of dds_cdrstream_desc_mid"]
        [::std::mem::align_of::<dds_cdrstream_desc_mid>() - 4usize];
    ["Offset of field: dds_cdrstream_desc_mid::adr_offs"]
        [::std::mem::offset_of!(dds_cdrstream_desc_mid, adr_offs) - 0usize];
    ["Offset of field: dds_cdrstream_desc_mid::mid"]
        [::std::mem::offset_of!(dds_cdrstream_desc_mid, mid) - 4usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_cdrstream_desc {
    pub size: u32,
    pub align: u32,
    pub flagset: u32,
    pub keys: dds_cdrstream_desc_keys,
    pub ops: dds_cdrstream_desc_op_seq_t,
    pub opt_size_xcdr1: usize,
    pub opt_size_xcdr2: usize,
    pub member_ids: dds_cdrstream_desc_mid_table,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_cdrstream_desc"][::std::mem::size_of::<dds_cdrstream_desc>() - 88usize];
    ["Alignment of dds_cdrstream_desc"][::std::mem::align_of::<dds_cdrstream_desc>() - 8usize];
    ["Offset of field: dds_cdrstream_desc::size"]
        [::std::mem::offset_of!(dds_cdrstream_desc, size) - 0usize];
    ["Offset of field: dds_cdrstream_desc::align"]
        [::std::mem::offset_of!(dds_cdrstream_desc, align) - 4usize];
    ["Offset of field: dds_cdrstream_desc::flagset"]
        [::std::mem::offset_of!(dds_cdrstream_desc, flagset) - 8usize];
    ["Offset of field: dds_cdrstream_desc::keys"]
        [::std::mem::offset_of!(dds_cdrstream_desc, keys) - 16usize];
    ["Offset of field: dds_cdrstream_desc::ops"]
        [::std::mem::offset_of!(dds_cdrstream_desc, ops) - 40usize];
    ["Offset of field: dds_cdrstream_desc::opt_size_xcdr1"]
        [::std::mem::offset_of!(dds_cdrstream_desc, opt_size_xcdr1) - 56usize];
    ["Offset of field: dds_cdrstream_desc::opt_size_xcdr2"]
        [::std::mem::offset_of!(dds_cdrstream_desc, opt_size_xcdr2) - 64usize];
    ["Offset of field: dds_cdrstream_desc::member_ids"]
        [::std::mem::offset_of!(dds_cdrstream_desc, member_ids) - 72usize];
};
impl Default for dds_cdrstream_desc {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct static_assert_157 {
    pub cond: [::std::ffi::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of static_assert_157"][::std::mem::size_of::<static_assert_157>() - 1usize];
    ["Alignment of static_assert_157"][::std::mem::align_of::<static_assert_157>() - 1usize];
    ["Offset of field: static_assert_157::cond"]
        [::std::mem::offset_of!(static_assert_157, cond) - 0usize];
};
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct static_assert_158 {
    pub cond: [::std::ffi::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of static_assert_158"][::std::mem::size_of::<static_assert_158>() - 1usize];
    ["Alignment of static_assert_158"][::std::mem::align_of::<static_assert_158>() - 1usize];
    ["Offset of field: static_assert_158::cond"]
        [::std::mem::offset_of!(static_assert_158, cond) - 0usize];
};
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_cdr_alignto4_clear_and_resize(
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        xcdr_version: u32,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_istream_init(
        is: *mut dds_istream_t,
        size: u32,
        input: *const ::std::ffi::c_void,
        xcdr_version: u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_istream_fini(is: *mut dds_istream_t);
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostream_init(
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        size: u32,
        xcdr_version: u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostream_fini(os: *mut dds_ostream_t, allocator: *const dds_cdrstream_allocator);
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostreamLE_init(
        os: *mut dds_ostreamLE_t,
        allocator: *const dds_cdrstream_allocator,
        size: u32,
        xcdr_version: u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostreamLE_fini(os: *mut dds_ostreamLE_t, allocator: *const dds_cdrstream_allocator);
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostreamBE_init(
        os: *mut dds_ostreamBE_t,
        allocator: *const dds_cdrstream_allocator,
        size: u32,
        xcdr_version: u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostreamBE_fini(os: *mut dds_ostreamBE_t, allocator: *const dds_cdrstream_allocator);
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_ostream_from_buffer(
        buffer: *mut ::std::ffi::c_void,
        size: usize,
        write_encoding_version: u16,
    ) -> dds_ostream_t;
}
unsafe extern "C" {
    #[doc = " @brief Normalized and validates CDR data\n @component cdr_serializer\n\n @param data          data sample\n @param size          size of the data\n @param bswap         byte-swapping required\n @param xcdr_version  XCDR version of the CDR data\n @param desc          type descriptor\n @param just_key      indicates if the data is a serialized key or a complete sample\n @param actual_size   is set to the actual size of the data (*actual_size <= size) on successful return\n @returns             True iff validation and normalization succeeded"]
    pub fn dds_stream_normalize(
        data: *mut ::std::ffi::c_void,
        size: u32,
        bswap: bool,
        xcdr_version: u32,
        desc: *const dds_cdrstream_desc,
        just_key: bool,
        actual_size: *mut u32,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_normalize_xcdr2_data(
        data: *mut ::std::ffi::c_char,
        off: *mut u32,
        size: u32,
        bswap: bool,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write(
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_writeLE(
        os: *mut dds_ostreamLE_t,
        allocator: *const dds_cdrstream_allocator,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_writeBE(
        os: *mut dds_ostreamBE_t,
        allocator: *const dds_cdrstream_allocator,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_with_mid(
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        mid_table: *const dds_cdrstream_desc_mid_table,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_with_midLE(
        os: *mut dds_ostreamLE_t,
        allocator: *const dds_cdrstream_allocator,
        mid_table: *const dds_cdrstream_desc_mid_table,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_with_midBE(
        os: *mut dds_ostreamBE_t,
        allocator: *const dds_cdrstream_allocator,
        mid_table: *const dds_cdrstream_desc_mid_table,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_with_byte_order(
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        mid_table: *const dds_cdrstream_desc_mid_table,
        data: *const ::std::ffi::c_char,
        ops: *const u32,
        bo: ddsrt_byte_order_selector,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_sample(
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        data: *const ::std::ffi::c_void,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_sampleLE(
        os: *mut dds_ostreamLE_t,
        allocator: *const dds_cdrstream_allocator,
        data: *const ::std::ffi::c_void,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_sampleBE(
        os: *mut dds_ostreamBE_t,
        allocator: *const dds_cdrstream_allocator,
        data: *const ::std::ffi::c_void,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_read_sample(
        is: *mut dds_istream_t,
        data: *mut ::std::ffi::c_void,
        allocator: *const dds_cdrstream_allocator,
        desc: *const dds_cdrstream_desc,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_free_sample(
        data: *mut ::std::ffi::c_void,
        allocator: *const dds_cdrstream_allocator,
        ops: *const u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_countops(
        ops: *const u32,
        nkeys: u32,
        keys: *const dds_key_descriptor_t,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_check_optimize(desc: *const dds_cdrstream_desc, xcdr_version: u32) -> usize;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_key(
        os: *mut dds_ostream_t,
        ser_kind: dds_cdr_key_serialization_kind,
        allocator: *const dds_cdrstream_allocator,
        sample: *const ::std::ffi::c_char,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_write_keyBE(
        os: *mut dds_ostreamBE_t,
        ser_kind: dds_cdr_key_serialization_kind,
        allocator: *const dds_cdrstream_allocator,
        sample: *const ::std::ffi::c_char,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_extract_key_from_data(
        is: *mut dds_istream_t,
        os: *mut dds_ostream_t,
        allocator: *const dds_cdrstream_allocator,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_extract_key_from_key(
        is: *mut dds_istream_t,
        os: *mut dds_ostream_t,
        ser_kind: dds_cdr_key_serialization_kind,
        allocator: *const dds_cdrstream_allocator,
        desc: *const dds_cdrstream_desc,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_extract_keyBE_from_data(
        is: *mut dds_istream_t,
        os: *mut dds_ostreamBE_t,
        allocator: *const dds_cdrstream_allocator,
        desc: *const dds_cdrstream_desc,
    ) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_extract_keyBE_from_key(
        is: *mut dds_istream_t,
        os: *mut dds_ostreamBE_t,
        ser_kind: dds_cdr_key_serialization_kind,
        allocator: *const dds_cdrstream_allocator,
        desc: *const dds_cdrstream_desc,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_read(
        is: *mut dds_istream_t,
        data: *mut ::std::ffi::c_char,
        allocator: *const dds_cdrstream_allocator,
        ops: *const u32,
    ) -> *const u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_read_key(
        is: *mut dds_istream_t,
        sample: *mut ::std::ffi::c_char,
        allocator: *const dds_cdrstream_allocator,
        desc: *const dds_cdrstream_desc,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_print_key(
        is: *mut dds_istream_t,
        desc: *const dds_cdrstream_desc,
        buf: *mut ::std::ffi::c_char,
        size: usize,
    ) -> usize;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_print_sample(
        is: *mut dds_istream_t,
        desc: *const dds_cdrstream_desc,
        buf: *mut ::std::ffi::c_char,
        size: usize,
    ) -> usize;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer; returns SIZE_MAX on error"]
    pub fn dds_stream_getsize_sample(
        data: *const ::std::ffi::c_char,
        desc: *const dds_cdrstream_desc,
        xcdr_version: u32,
    ) -> usize;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer; returns SIZE_MAX on error"]
    pub fn dds_stream_getsize_key(
        sample: *const ::std::ffi::c_char,
        desc: *const dds_cdrstream_desc,
        xcdr_version: u32,
    ) -> usize;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_minimum_xcdr_version(ops: *const u32) -> u16;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_type_nesting_depth(ops: *const u32) -> u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_key_flags(
        desc: *mut dds_cdrstream_desc,
        keysz_xcdrv1: *mut u32,
        keysz_xcdrv2: *mut u32,
    ) -> u32;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_extensibility(ops: *const u32, ext: *mut dds_cdr_type_extensibility) -> bool;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_stream_data_types(ops: *const u32) -> dds_data_type_properties_t;
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_cdrstream_desc_init_with_nops(
        desc: *mut dds_cdrstream_desc,
        allocator: *const dds_cdrstream_allocator,
        size: u32,
        align: u32,
        flagset: u32,
        ops: *const u32,
        nops: u32,
        keys: *const dds_key_descriptor_t,
        nkeys: u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_cdrstream_desc_init(
        desc: *mut dds_cdrstream_desc,
        allocator: *const dds_cdrstream_allocator,
        size: u32,
        align: u32,
        flagset: u32,
        ops: *const u32,
        keys: *const dds_key_descriptor_t,
        nkeys: u32,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_cdrstream_desc_fini(
        desc: *mut dds_cdrstream_desc,
        allocator: *const dds_cdrstream_allocator,
    );
}
unsafe extern "C" {
    #[doc = " @component cdr_serializer"]
    pub fn dds_cdrstream_desc_from_topic_desc(
        desc: *mut dds_cdrstream_desc,
        topic_desc: *const dds_topic_descriptor_t,
    );
}
unsafe extern "C" {
    #[doc = " @ingroup internal\n @component participant\n @unstable\n @brief Create a participant with the specified GUID\n\n @param[in]  domain The domain in which to create the participant (can be DDS_DOMAIN_DEFAULT). DDS_DOMAIN_DEFAULT is for using the domain in the configuration.\n @param[in]  qos The QoS to set on the new participant (can be NULL).\n @param[in]  listener Any listener functions associated with the new participant (can be NULL).\n @param[in]  flags The flags to be used when creating the participant\n @param[in]  guid The GUID for the new participant\n\n @returns A valid participant handle or an error code. @see dds_create_participant for details"]
    pub fn dds_create_participant_guid(
        domain: dds_domainid_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
        flags: u32,
        guid: *const dds_guid_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @ingroup internal\n @component writer\n @unstable\n @brief Create a writer with the specified GUID\n\n @param[in]  participant_or_publisher The participant or publisher on which the writer is being created.\n @param[in]  topic The topic to write.\n @param[in]  qos The QoS to set on the new writer (can be NULL).\n @param[in]  listener Any listener functions associated with the new writer (can be NULL).\n @param[in]  guid The GUID for the new writer\n\n @returns A valid writer handle or an error code. @see dds_create_writer for details"]
    pub fn dds_create_writer_guid(
        participant_or_publisher: dds_entity_t,
        topic: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
        guid: *mut dds_guid_t,
    ) -> dds_entity_t;
}
unsafe extern "C" {
    #[doc = " @ingroup internal\n @component reader\n @unstable\n @brief Create a reader with the specified GUID\n\n @param[in]  participant_or_subscriber The participant or subscriber on which the reader is being created.\n @param[in]  topic The topic to read.\n @param[in]  qos The QoS to set on the new reader (can be NULL).\n @param[in]  listener Any listener functions associated with the new reader (can be NULL).\n @param[in]  guid The GUID for the new reader\n\n @returns A valid reader handle or an error code. @see dds_create_reader for details"]
    pub fn dds_create_reader_guid(
        participant_or_subscriber: dds_entity_t,
        topic: dds_entity_t,
        qos: *const dds_qos_t,
        listener: *const dds_listener_t,
        guid: *mut dds_guid_t,
    ) -> dds_entity_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_loan_pool {
    _unused: [u8; 0],
}
#[doc = "!< state not set yet; not passed through PSMX interface"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_UNITIALIZED: dds_loaned_sample_state = 0;
#[doc = "!< application representation, only key fields initialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_RAW_KEY: dds_loaned_sample_state = 1;
#[doc = "!< application representation, full sample initialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_RAW_DATA: dds_loaned_sample_state = 2;
#[doc = "!< CDR/XCDR1/XCDR2-serialized key value serialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_SERIALIZED_KEY: dds_loaned_sample_state =
    3;
#[doc = "!< CDR/XCDR1/XCDR2-serialized sample value serialized"]
pub const dds_loaned_sample_state_DDS_LOANED_SAMPLE_STATE_SERIALIZED_DATA: dds_loaned_sample_state =
    4;
#[doc = " @brief State of the data contained in a Loaned Sample\n @ingroup loaned_sample\n"]
pub type dds_loaned_sample_state = ::std::ffi::c_uint;
#[doc = " @brief State of the data contained in a Loaned Sample\n @ingroup loaned_sample\n"]
pub use self::dds_loaned_sample_state as dds_loaned_sample_state_t;
#[doc = " @brief Identifier used to distinguish between raw data types (C/C++/Python/...) in a Loaned Sample\n @ingroup loaned_sample"]
pub type dds_loan_data_type_t = u32;
#[doc = " @brief Definition for function to free a Loaned Sample\n @ingroup loaned_sample\n\n @param[in] loaned_sample  A loaned sample"]
pub type dds_loaned_sample_free_f =
    ::std::option::Option<unsafe extern "C" fn(loaned_sample: *mut dds_loaned_sample)>;
#[doc = " @brief Container for implementation specific operations\n @ingroup loaned_sample"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_loaned_sample_ops {
    pub free: dds_loaned_sample_free_f,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_loaned_sample_ops"][::std::mem::size_of::<dds_loaned_sample_ops>() - 8usize];
    ["Alignment of dds_loaned_sample_ops"]
        [::std::mem::align_of::<dds_loaned_sample_ops>() - 8usize];
    ["Offset of field: dds_loaned_sample_ops::free"]
        [::std::mem::offset_of!(dds_loaned_sample_ops, free) - 0usize];
};
#[doc = " @brief Container for implementation specific operations\n @ingroup loaned_sample"]
pub type dds_loaned_sample_ops_t = dds_loaned_sample_ops;
#[doc = "!< Loaned sample allocated on the heap (and owned by Cyclone DDS)"]
pub const dds_loaned_sample_origin_kind_DDS_LOAN_ORIGIN_KIND_HEAP: dds_loaned_sample_origin_kind =
    0;
#[doc = "!< Loaned sample owned by a PSMX Endpoint"]
pub const dds_loaned_sample_origin_kind_DDS_LOAN_ORIGIN_KIND_PSMX: dds_loaned_sample_origin_kind =
    1;
pub type dds_loaned_sample_origin_kind = ::std::ffi::c_uint;
pub use self::dds_loaned_sample_origin_kind as dds_loaned_sample_origin_kind_t;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_loaned_sample_origin {
    #[doc = "!< Whether on the HEAP or provided by a PSMX Endpoint"]
    pub origin_kind: dds_loaned_sample_origin_kind,
    #[doc = "!< Owning PSMX Endpoint, null if KIND_HEAP"]
    pub psmx_endpoint: *mut dds_psmx_endpoint,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_loaned_sample_origin"]
        [::std::mem::size_of::<dds_loaned_sample_origin>() - 16usize];
    ["Alignment of dds_loaned_sample_origin"]
        [::std::mem::align_of::<dds_loaned_sample_origin>() - 8usize];
    ["Offset of field: dds_loaned_sample_origin::origin_kind"]
        [::std::mem::offset_of!(dds_loaned_sample_origin, origin_kind) - 0usize];
    ["Offset of field: dds_loaned_sample_origin::psmx_endpoint"]
        [::std::mem::offset_of!(dds_loaned_sample_origin, psmx_endpoint) - 8usize];
};
impl Default for dds_loaned_sample_origin {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type dds_loaned_sample_origin_t = dds_loaned_sample_origin;
#[doc = " @brief The definition of a Loaned Sample\n @ingroup loaned_sample"]
#[repr(C)]
pub struct dds_loaned_sample {
    #[doc = "!< the implementation specific ops for this sample"]
    pub ops: dds_loaned_sample_ops_t,
    #[doc = "!< the origin of the loan"]
    pub loan_origin: dds_loaned_sample_origin,
    #[doc = "!< pointer to the associated metadata"]
    pub metadata: *mut dds_psmx_metadata,
    #[doc = "!< pointer to the loaned sample"]
    pub sample_ptr: *mut ::std::ffi::c_void,
    #[doc = "!< the number of references to this loan"]
    pub refc: ddsrt_atomic_uint32_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_loaned_sample"][::std::mem::size_of::<dds_loaned_sample>() - 48usize];
    ["Alignment of dds_loaned_sample"][::std::mem::align_of::<dds_loaned_sample>() - 8usize];
    ["Offset of field: dds_loaned_sample::ops"]
        [::std::mem::offset_of!(dds_loaned_sample, ops) - 0usize];
    ["Offset of field: dds_loaned_sample::loan_origin"]
        [::std::mem::offset_of!(dds_loaned_sample, loan_origin) - 8usize];
    ["Offset of field: dds_loaned_sample::metadata"]
        [::std::mem::offset_of!(dds_loaned_sample, metadata) - 24usize];
    ["Offset of field: dds_loaned_sample::sample_ptr"]
        [::std::mem::offset_of!(dds_loaned_sample, sample_ptr) - 32usize];
    ["Offset of field: dds_loaned_sample::refc"]
        [::std::mem::offset_of!(dds_loaned_sample, refc) - 40usize];
};
impl Default for dds_loaned_sample {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief The definition of a Loaned Sample\n @ingroup loaned_sample"]
pub type dds_loaned_sample_t = dds_loaned_sample;
unsafe extern "C" {
    #[doc = " @brief insert data from a loaned sample into the reader history cache\n @ingroup reading\n\n Constructs a serdata of the reader's type from the loaned sample and stores it in the\n reader's history cache. If the serdata references the loan, `dds_loaned_sample_ref` is\n used to increment its reference count.\n\n If data is not from a known writer, this is a no-op.\n\n @param[in] reader The reader entity.\n @param[in] data Pointer to the loaned sample of the entity received\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One or more parameters are invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The reader entity has already been deleted."]
    pub fn dds_reader_store_loaned_sample(
        reader: dds_entity_t,
        data: *mut dds_loaned_sample_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief insert data from a loaned sample into the reader history cache using the provided writer meta-data\n @ingroup reading\n\n Constructs a serdata of the reader's type from the loaned sample and stores it in the\n reader's history cache. If the serdata references the loan, `dds_loaned_sample_ref` is\n used to increment its reference count.\n\n It is equivalent to `dds_reader_store_loaned_sample`, except that for this function no\n writer look-up takes place (it doesn't need to because the required information is\n passed in directly) and data unknown writers is accepted.\n\n @param[in] reader The reader entity.\n @param[in] data Pointer to the loaned sample of the entity received\n @param[in] ownership_strength The ownership strength of the writer\n @param[in] autodispose_unregistered_instances Writer setting for auto-disposing unregistered entities\n @param[in] lifespan_duration Lifespan duration value configured for the writer\n\n @returns A dds_return_t indicating success or failure.\n\n @retval DDS_RETCODE_OK\n             The operation was successful.\n @retval DDS_RETCODE_BAD_PARAMETER\n             One or more parameters are invalid.\n @retval DDS_RETCODE_ILLEGAL_OPERATION\n             The operation is invoked on an inappropriate object.\n @retval DDS_RETCODE_ALREADY_DELETED\n             The reader entity has already been deleted."]
    pub fn dds_reader_store_loaned_sample_wr_metadata(
        reader: dds_entity_t,
        data: *mut dds_loaned_sample_t,
        ownership_strength: i32,
        autodispose_unregistered_instances: bool,
        lifespan_duration: dds_duration_t,
    ) -> dds_return_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_type {
    _unused: [u8; 0],
}
#[doc = "< inapplicable or applies to both"]
pub const dds_psmx_endpoint_type_DDS_PSMX_ENDPOINT_TYPE_UNSET: dds_psmx_endpoint_type = 0;
#[doc = "< applies to reader only"]
pub const dds_psmx_endpoint_type_DDS_PSMX_ENDPOINT_TYPE_READER: dds_psmx_endpoint_type = 1;
#[doc = "< applies to writer only"]
pub const dds_psmx_endpoint_type_DDS_PSMX_ENDPOINT_TYPE_WRITER: dds_psmx_endpoint_type = 2;
#[doc = " @brief Type of the PSMX endpoint\n @ingroup psmx\n\n The PSMX interface distinguishes between readers and writers, and in some cases needs\n to specify that an operation applies to both or neither (depending on context).\n \"Reader\" and \"writer\" here are used as in DDS, outside the DDS context these often are\n known as subscribers and publishers."]
pub type dds_psmx_endpoint_type = ::std::ffi::c_uint;
#[doc = " @brief Type of the PSMX endpoint\n @ingroup psmx\n\n The PSMX interface distinguishes between readers and writers, and in some cases needs\n to specify that an operation applies to both or neither (depending on context).\n \"Reader\" and \"writer\" here are used as in DDS, outside the DDS context these often are\n known as subscribers and publishers."]
pub use self::dds_psmx_endpoint_type as dds_psmx_endpoint_type_t;
#[doc = " @brief The numeric PSMX Instance ID\n @ingroup psmx"]
pub type dds_psmx_instance_id_t = u32;
pub type dds_psmx_features_t = u32;
#[doc = " @brief Describes the data which is transferred in addition to the application data\n @ingroup psmx\n\n All fields are filled in by Cyclone DDS during the write prior to handing it to the\n PSMX plug-in.  The plug-in is only required to pass the contents to Cyclone DDS on the\n receiving side."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx_metadata {
    #[doc = "< Representation of this sample/key"]
    pub sample_state: dds_loaned_sample_state_t,
    #[doc = "< Reserved, must be 0"]
    pub data_type: dds_loan_data_type_t,
    #[doc = "< PSMX instance id for this sample"]
    pub instance_id: dds_psmx_instance_id_t,
    #[doc = "< Size of payload"]
    pub sample_size: u32,
    #[doc = "< GUID of original writer"]
    pub guid: dds_guid_t,
    #[doc = "< Source timestamp of DDS sample"]
    pub timestamp: dds_time_t,
    #[doc = "< DDSI status info (write/dispose/unregister)"]
    pub statusinfo: u32,
    #[doc = "< CDR encoding (DDSI_RTPS_SAMPLE_NATIVE if not serialized)"]
    pub cdr_identifier: u16,
    #[doc = "< CDR options field (0 if not serialized)"]
    pub cdr_options: u16,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_metadata"][::std::mem::size_of::<dds_psmx_metadata>() - 48usize];
    ["Alignment of dds_psmx_metadata"][::std::mem::align_of::<dds_psmx_metadata>() - 8usize];
    ["Offset of field: dds_psmx_metadata::sample_state"]
        [::std::mem::offset_of!(dds_psmx_metadata, sample_state) - 0usize];
    ["Offset of field: dds_psmx_metadata::data_type"]
        [::std::mem::offset_of!(dds_psmx_metadata, data_type) - 4usize];
    ["Offset of field: dds_psmx_metadata::instance_id"]
        [::std::mem::offset_of!(dds_psmx_metadata, instance_id) - 8usize];
    ["Offset of field: dds_psmx_metadata::sample_size"]
        [::std::mem::offset_of!(dds_psmx_metadata, sample_size) - 12usize];
    ["Offset of field: dds_psmx_metadata::guid"]
        [::std::mem::offset_of!(dds_psmx_metadata, guid) - 16usize];
    ["Offset of field: dds_psmx_metadata::timestamp"]
        [::std::mem::offset_of!(dds_psmx_metadata, timestamp) - 32usize];
    ["Offset of field: dds_psmx_metadata::statusinfo"]
        [::std::mem::offset_of!(dds_psmx_metadata, statusinfo) - 40usize];
    ["Offset of field: dds_psmx_metadata::cdr_identifier"]
        [::std::mem::offset_of!(dds_psmx_metadata, cdr_identifier) - 44usize];
    ["Offset of field: dds_psmx_metadata::cdr_options"]
        [::std::mem::offset_of!(dds_psmx_metadata, cdr_options) - 46usize];
};
impl Default for dds_psmx_metadata {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Describes the data which is transferred in addition to the application data\n @ingroup psmx\n\n All fields are filled in by Cyclone DDS during the write prior to handing it to the\n PSMX plug-in.  The plug-in is only required to pass the contents to Cyclone DDS on the\n receiving side."]
pub type dds_psmx_metadata_t = dds_psmx_metadata;
#[doc = " @brief PSMX Locator\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_node_identifier {
    pub x: [u8; 16usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_node_identifier"]
        [::std::mem::size_of::<dds_psmx_node_identifier>() - 16usize];
    ["Alignment of dds_psmx_node_identifier"]
        [::std::mem::align_of::<dds_psmx_node_identifier>() - 1usize];
    ["Offset of field: dds_psmx_node_identifier::x"]
        [::std::mem::offset_of!(dds_psmx_node_identifier, x) - 0usize];
};
#[doc = " @brief PSMX Locator\n @ingroup psmx"]
pub type dds_psmx_node_identifier_t = dds_psmx_node_identifier;
#[doc = " @brief Definition of the function checking support for type and QoS\n @ingroup psmx\n\n A PSMX Instance in the \"PSMX Instances\" QoS may accept or reject a given DDS\n Topic/Reader/Writer based on information on the type and the QoS settings.  PSMX\n Instances not in the \"PSMX Instances\" QoS setting are not asked.\n\n @param[in] psmx_instance    The PSMX Instance\n @param[in] forwhat          Whether for a topic/writer/reader (UNSET if topic)\n @param[in] data_type_props  Data type properties (see there)\n @param[in] qos              QoS of the DDS topic\n @returns True if the PSMX Instance is willing to handle this DDS entity, false otherwise"]
pub type dds_psmx_type_qos_supported_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_instance: *mut dds_psmx,
        forwhat: dds_psmx_endpoint_type_t,
        data_type_props: dds_data_type_properties_t,
        qos: *const dds_qos,
    ) -> bool,
>;
#[doc = " @brief Definition of the function for creating a PSMX Topic (interface version 1)\n @ingroup psmx\n\n Definition for a function that is called to construct a new PSMX Topic in a PSMX Instance\n representing a new topic in the DDS Domain Entity.\n\n The PSMX Plugin is expected to represent a PSMX Topic using an extended version of the\n `dds_psmx_topic` structure. The plugin is responsible for setting `ops` to the addresses\n of the various functions implementing the operations. The other members of the `dds_psmx_topic`\n structure are initialized by Cyclone DDS and should not be initialized by the plugin.\n\n If `type_definition` is not a null pointer, it points into the Cyclone type library. A\n (default, C) serializer can be constructed using `ddsi_topic_descriptor_from_type`,\n an XTypes TypeObject using `ddsi_type_get_typeobj`.\n\n If the function returns failure (a null pointer), creation of the DDS Entity fails.\n\n @param[in] psmx_instance    The PSMX instance.\n @param[in] topic_name       The name of the topic to create\n @param[in] type_name        The name of the DDS data type for this topic\n @param[in] data_type_props  The data type properties for the topic's data type.\n @param[in] type_definition  Optional pointer to type definition in type library.\n @param[in] sizeof_type      In-memory size of a single instance of the type, 0 if unknown.\n @returns A new PSMX Topic structure, or NULL on error"]
pub type dds_psmx_create_topic_with_type_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_instance: *mut dds_psmx,
        topic_name: *const ::std::ffi::c_char,
        type_name: *const ::std::ffi::c_char,
        data_type_props: dds_data_type_properties_t,
        type_definition: *const ddsi_type,
        sizeof_type: u32,
    ) -> *mut dds_psmx_topic,
>;
#[doc = " @brief Definition of the function for destructing and freeing a PSMX Topic\n @ingroup psmx\n\n Definition for a function that is called on deleting the topic in the DDS Domain.\n Called exactly once for each successful invocation of `dds_psmx_create_topic`/\n `dds_psmx_create_topic_with_type`, all PSMX Endpoints related to this PSMX Topic will have\n been destructed prior to calling this function.\n\n When using interface version 0 (so the PSMX Topic was created using `dds_psmx_create_topic`),\n the PSMX Plugin is required to call `dds_psmx_topic_cleanup_generic` and to do so prior to\n invalidating the memory associated with the PSMX Topic and releasing any memory allocated for\n it during construction.\n\n @param[in] psmx_topic       The PSMX Topic to destruct\n @returns A DDS return code, should be DDS_RETCODE_OK."]
pub type dds_psmx_delete_topic_fn =
    ::std::option::Option<unsafe extern "C" fn(psmx_topic: *mut dds_psmx_topic) -> dds_return_t>;
#[doc = " @brief Definition of the function for creating a PSMX Topic (interface version 0)\n @ingroup psmx\n\n Equivalent to `dds_psmx_create_topic_type` with `type_definition` and `sizeof_type`\n a null pointer and 0, respectively. It is required to initialize the generic fields using\n `dds_psmx_topic_init_generic`.\n\n @param[in] psmx_instance    The PSMX instance.\n @param[in] topic_name       The name of the topic to create\n @param[in] type_name        The name of the DDS data type for this topic\n @param[in] data_type_props  The data type properties for the topic's data type.\n @returns A new PSMX Topic structure, or NULL on error"]
pub type dds_psmx_create_topic_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_instance: *mut dds_psmx,
        topic_name: *const ::std::ffi::c_char,
        type_name: *const ::std::ffi::c_char,
        data_type_props: dds_data_type_properties_t,
    ) -> *mut dds_psmx_topic,
>;
#[doc = " @brief Definition of the function for destructing and freeing a PSMX Instance (interface version 1)\n @ingroup psmx\n\n Function called on shutdown of a DDS Domain Entity, before unloading the PSMX Plugin\n and after all other operations have completed and all objects created in the PSMX\n Instance have been destructed using the various \"delete\" functions.\n\n @param[in] psmx_instance    The PSMX Instance to de-initialize"]
pub type dds_psmx_delete_fn =
    ::std::option::Option<unsafe extern "C" fn(psmx_instance: *mut dds_psmx)>;
#[doc = " @brief Definition of the function for destructing and freeing a PSMX Instance (interface version 0)\n @ingroup psmx\n\n Function called on shutdown of a DDS Domain Entity, before unloading the PSMX Plugin\n and after all other operations have completed and all objects created in the PSMX\n Instance have been destructed using the various \"delete\" functions.\n\n The PSMX Plugin is required to call `dds_psmx_cleanup_generic` and to do so prior to\n invalidating the memory associated with the PSMX Instance and releasing any memory\n allocated for it during construction.\n\n @param[in] psmx_instance    The PSMX Instance to de-initialize\n @returns A DDS return code, should be DDS_RETCODE_OK."]
pub type dds_psmx_deinit_fn =
    ::std::option::Option<unsafe extern "C" fn(psmx_instance: *mut dds_psmx) -> dds_return_t>;
#[doc = " @brief Definition of the function returning the PSMX Locator\n @ingroup psmx\n\n All PSMX Instances that can communicate must return the same PSMX Locator, PSMX\n Instances that do not communicate must return different PSMX Locators.\n\n The function may be called by `dds_psmx_init_generic`.\n\n @param[in] psmx_instance    A PSMX Instance\n @returns The PSMX Locator for this PSMX Instance"]
pub type dds_psmx_get_node_identifier_fn = ::std::option::Option<
    unsafe extern "C" fn(psmx_instance: *const dds_psmx) -> dds_psmx_node_identifier_t,
>;
#[doc = " @brief Definition of the function to query the features supported by the PSMX Instance\n @ingroup psmx\n\n Returns an integer with the flags set for the features that are supported by the\n provided PSMX Instance.\n\n @param[in] psmx_instance    A PSMX instance\n @returns The set of features supported by this PSMX instance"]
pub type dds_psmx_supported_features_fn = ::std::option::Option<
    unsafe extern "C" fn(psmx_instance: *const dds_psmx) -> dds_psmx_features_t,
>;
#[doc = " @brief Table of pointers to functions operating on a PSMX Instance\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_ops {
    pub type_qos_supported: dds_psmx_type_qos_supported_fn,
    #[doc = "< non-null for interface version 0, null for version 1"]
    pub create_topic: dds_psmx_create_topic_fn,
    pub delete_topic: dds_psmx_delete_topic_fn,
    #[doc = "< non-null for interface version 0, null for version 1"]
    pub deinit: dds_psmx_deinit_fn,
    pub get_node_id: dds_psmx_get_node_identifier_fn,
    pub supported_features: dds_psmx_supported_features_fn,
    #[doc = "< undefined for interface version 0, non-null for version 1"]
    pub create_topic_with_type: dds_psmx_create_topic_with_type_fn,
    #[doc = "< undefined for interface version 0, non-null for version 1"]
    pub delete_psmx: dds_psmx_delete_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_ops"][::std::mem::size_of::<dds_psmx_ops>() - 64usize];
    ["Alignment of dds_psmx_ops"][::std::mem::align_of::<dds_psmx_ops>() - 8usize];
    ["Offset of field: dds_psmx_ops::type_qos_supported"]
        [::std::mem::offset_of!(dds_psmx_ops, type_qos_supported) - 0usize];
    ["Offset of field: dds_psmx_ops::create_topic"]
        [::std::mem::offset_of!(dds_psmx_ops, create_topic) - 8usize];
    ["Offset of field: dds_psmx_ops::delete_topic"]
        [::std::mem::offset_of!(dds_psmx_ops, delete_topic) - 16usize];
    ["Offset of field: dds_psmx_ops::deinit"]
        [::std::mem::offset_of!(dds_psmx_ops, deinit) - 24usize];
    ["Offset of field: dds_psmx_ops::get_node_id"]
        [::std::mem::offset_of!(dds_psmx_ops, get_node_id) - 32usize];
    ["Offset of field: dds_psmx_ops::supported_features"]
        [::std::mem::offset_of!(dds_psmx_ops, supported_features) - 40usize];
    ["Offset of field: dds_psmx_ops::create_topic_with_type"]
        [::std::mem::offset_of!(dds_psmx_ops, create_topic_with_type) - 48usize];
    ["Offset of field: dds_psmx_ops::delete_psmx"]
        [::std::mem::offset_of!(dds_psmx_ops, delete_psmx) - 56usize];
};
#[doc = " @brief Table of pointers to functions operating on a PSMX Instance\n @ingroup psmx"]
pub type dds_psmx_ops_t = dds_psmx_ops;
#[doc = " @brief Definition of the function for constructing a PSMX Endpoint for a PSMX Topic\n @ingroup psmx\n\n The PSMX Plugin is expected to represent a PSMX Endpoint using an extended version of the\n `dds_psmx_endpoint` structure. The behaviour of the plugin is dependent on the interface\n version it implements:\n\n - For version 0, it is responsible for setting:\n\n   - ops            to the addresses of the various functions implementing the operations\n   - endpoint_type  to the value that is passed in the `endpoint_type` parameter\n   - psmx_topic     to the PSMX Topic that is passed in the `psmx_topic` parameter\n\n - For version 1, it is responsible for setting:\n\n   - ops\n\n   The other members of the `dds_psmx_endpoint` structure are initialized by Cyclone DDS.\n\n @param[in] psmx_topic       The PSMX Topic to create the PSMX Endpoint for\n @param[in] qos              QoS of the corresponding DDS endpoint\n @param[in] endpoint_type    The type of endpoint to create, either READER or WRITER\n @returns A new PSMX Endpoint or a null pointer on error"]
pub type dds_psmx_create_endpoint_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_topic: *mut dds_psmx_topic,
        qos: *const dds_qos,
        endpoint_type: dds_psmx_endpoint_type_t,
    ) -> *mut dds_psmx_endpoint,
>;
#[doc = " @brief Definition of the function for destructing a PSMX Endpoint\n @ingroup psmx\n\n Called after the last operation on the PSMX Endpoint has completed and no further\n operations will be invoked; called prior to destructing the PSMX Topic.\n\n @param[in] psmx_endpoint    The PSMX Endpoint to be destructed\n @returns a DDS return code, should be DDS_RETCODE_OK"]
pub type dds_psmx_delete_endpoint_fn = ::std::option::Option<
    unsafe extern "C" fn(psmx_endpoint: *mut dds_psmx_endpoint) -> dds_return_t,
>;
#[doc = " @brief Table of pointers to functions operating on a PSMX Topic\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_topic_ops {
    pub create_endpoint: dds_psmx_create_endpoint_fn,
    pub delete_endpoint: dds_psmx_delete_endpoint_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_topic_ops"][::std::mem::size_of::<dds_psmx_topic_ops>() - 16usize];
    ["Alignment of dds_psmx_topic_ops"][::std::mem::align_of::<dds_psmx_topic_ops>() - 8usize];
    ["Offset of field: dds_psmx_topic_ops::create_endpoint"]
        [::std::mem::offset_of!(dds_psmx_topic_ops, create_endpoint) - 0usize];
    ["Offset of field: dds_psmx_topic_ops::delete_endpoint"]
        [::std::mem::offset_of!(dds_psmx_topic_ops, delete_endpoint) - 8usize];
};
#[doc = " @brief Table of pointers to functions operating on a PSMX Topic\n @ingroup psmx"]
pub type dds_psmx_topic_ops_t = dds_psmx_topic_ops;
#[doc = " @brief Definition of the function for requesting a loan from a PSMX Writer\n @ingroup psmx\n\n The PSMX Instance is the owner of the loan and implements the allocation and the\n freeing of the memory for the `dds_loaned_sample_t`, the `dds_psmx_metadata_t` it\n references and the payload it references.\n\n The `dds_loaned_sample_t` is reference counted and the free function referenced through\n the \"ops\" table is invoked once the reference count drops to 0.\n\n The PSMX Plugin is required to properly initialize all fields:\n\n - ops\n - metadata, the contents of the memory it points to may be undefined\n - sample_ptr, the contents of the memory it points to may be undefined\n\n The loan_origin and refc fields are set by Cyclone DDS following a succesful return.\n\n The `sample_ptr` in the Loaned Sample must point to a unique memory block of at least\n `size_requested` bytes and be suitably aligned to directly store any of the types in\n application-representation to which the various supported IDL types map.\n\n `size_requested` is equal to `sizeof_type` in the PSMX create topic call if:\n - the loan is to be used for a raw sample (implies `IS_MEMCPY_SAFE` set in the type properties)\n - `sizeof_type` was non-0 in the call to create the PSMX Topic\n\n @param[in] psmx_endpoint   The PSMX Writer to borrow from\n @param[in] size_requested  The size of the loan requested in bytes\n @returns A pointer to the Loaned Sample on success or a null pointer on failure"]
pub type dds_psmx_endpoint_request_loan_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_endpoint: *mut dds_psmx_endpoint,
        size_requested: u32,
    ) -> *mut dds_loaned_sample_t,
>;
#[doc = " @brief Definition of function for writing data via a PSMX Writer\n @ingroup psmx\n\n The PSMX Plugin is expected to publish the payload and the metadata of the Loaned\n Sample via the PSMX Instance to its subscribers as described in the overview.  The\n Loaned Sample:\n\n - originated in a successful request for a loan from this PSMX Instance;\n - has the metadata and payload set correctly;\n - has a metadata state that is not `UNINITIALIZED`.\n\n Cyclone DDS assumes:\n\n - that the `dds_loaned_sample_t` outlives the PSMX write operation\n - that the `sample_ptr` and `metadata` are invalidated by the PSMX write operation\n\n and will consequently not touch the `sample_ptr` and `metadata` after the operation and\n only invoke the Loaned Sample's `free` function.\n\n If the operations fails and returns an error, the DDS write (or write-like) operation\n that caused it will report an error to the application.  It is unspecified whether or\n not any other deliver paths may or may not have been provided with the data when this\n happens.\n\n @param[in] psmx_endpoint    The PSMX Writer to publish the data on\n @param[in] data             The Loaned Sample containing the data to publish\n @param[in] keysz            The size of the serialized key blob, 0 for keyless topics\n @param[in] key              The serialized key, a null pointer for keyless topics\n @returns A DDS return code"]
pub type dds_psmx_endpoint_write_with_key_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_endpoint: *mut dds_psmx_endpoint,
        data: *mut dds_loaned_sample_t,
        keysz: usize,
        key: *const ::std::ffi::c_void,
    ) -> dds_return_t,
>;
#[doc = " @brief Definition of function for writing data via a PSMX Writer\n @ingroup psmx\n\n Equivalent to `dds_psmx_endpoint_write_with_key_fn` with `keysz` = 0 and `key` = NULL"]
pub type dds_psmx_endpoint_write_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_endpoint: *mut dds_psmx_endpoint,
        data: *mut dds_loaned_sample_t,
    ) -> dds_return_t,
>;
#[doc = " @brief Definition of function for taking data from a PSMX Reader\n @ingroup psmx\n\n Return an unread sample available to the PSMX Reader and remove it from the set of\n samples available to the PSMX Reader.  It should ensure, firstly, that a sample for\n each key value for which data is available shall eventually be returned, and, secondly,\n that samples for a given key value are returned in the order of publication.\n\n The Loaned Sample shall be fully initialized on return, with a metadata sample state\n different from `UNINITIALIZED`.\n\n (Currently not called.)\n\n @param[in] psmx_endpoint    The PSMX Reader to take the data from\n @returns a Loaned Sample for an unread sample, or a null pointer if none is available"]
pub type dds_psmx_endpoint_take_fn = ::std::option::Option<
    unsafe extern "C" fn(psmx_endpoint: *mut dds_psmx_endpoint) -> *mut dds_loaned_sample_t,
>;
#[doc = " @brief Definition of function to request asynchronous delivery of new data by a PSMX Reader\n @ingroup psmx\n\n The PSMX Plugin is requested to arrange for data arriving at the PSMX Reader to be\n delivered to Cyclone DDS as if a background thread exists that contains a loop body:\n ```\n   dds_loaned_sample_t *ls = dds_psmx_endpoint_ops.take(psmx_endpoint)\n   if (ls != NULL) {\n     dds_reader_store_loaned_sample(reader, ls);\n   }\n   dds_loaned_sample_unref(ls)\n ```\n (alternatively calling `dds_reader_store_loaned_sample_wr_metadata` for each sample)\n\n @param[in] psmx_endpoint    The PSMX Reader on which to enable asynchronous delivery\n @param[in] reader           The DDS Reader to which the data is to be delivered\n @returns a DDS return code"]
pub type dds_psmx_endpoint_on_data_available_fn = ::std::option::Option<
    unsafe extern "C" fn(
        psmx_endpoint: *mut dds_psmx_endpoint,
        reader: dds_entity_t,
    ) -> dds_return_t,
>;
#[doc = " @brief Table of pointers to functions that are used on a PSMX Endpoint\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_psmx_endpoint_ops {
    pub request_loan: dds_psmx_endpoint_request_loan_fn,
    #[doc = "< write, not required if `write_key` is defined"]
    pub write: dds_psmx_endpoint_write_fn,
    pub take: dds_psmx_endpoint_take_fn,
    pub on_data_available: dds_psmx_endpoint_on_data_available_fn,
    #[doc = "< may be null for backwards compatibility if `write` is defined"]
    pub write_with_key: dds_psmx_endpoint_write_with_key_fn,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_endpoint_ops"][::std::mem::size_of::<dds_psmx_endpoint_ops>() - 40usize];
    ["Alignment of dds_psmx_endpoint_ops"]
        [::std::mem::align_of::<dds_psmx_endpoint_ops>() - 8usize];
    ["Offset of field: dds_psmx_endpoint_ops::request_loan"]
        [::std::mem::offset_of!(dds_psmx_endpoint_ops, request_loan) - 0usize];
    ["Offset of field: dds_psmx_endpoint_ops::write"]
        [::std::mem::offset_of!(dds_psmx_endpoint_ops, write) - 8usize];
    ["Offset of field: dds_psmx_endpoint_ops::take"]
        [::std::mem::offset_of!(dds_psmx_endpoint_ops, take) - 16usize];
    ["Offset of field: dds_psmx_endpoint_ops::on_data_available"]
        [::std::mem::offset_of!(dds_psmx_endpoint_ops, on_data_available) - 24usize];
    ["Offset of field: dds_psmx_endpoint_ops::write_with_key"]
        [::std::mem::offset_of!(dds_psmx_endpoint_ops, write_with_key) - 32usize];
};
#[doc = " @brief Table of pointers to functions that are used on a PSMX Endpoint\n @ingroup psmx"]
pub type dds_psmx_endpoint_ops_t = dds_psmx_endpoint_ops;
#[doc = " @brief Type representing a PSMX Instance in a DDS Domain Entity\n @ingroup psmx\n\n Each PSMX Instance is represented in a DDS Domain Entity by a pointer to a `struct dds_psmx`.\n The PSMX Plugin is responsible for allocating and constructing it on initialization in a constructor\n as described in the overview."]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx {
    #[doc = "< operations on the PSMX Instance"]
    pub ops: dds_psmx_ops_t,
    #[doc = "< name of this PSMX Instance"]
    pub instance_name: *const ::std::ffi::c_char,
    #[doc = "< priority for this interface"]
    pub priority: i32,
    #[doc = "< PSMX Locator for this PSMX Instance"]
    pub locator: *mut ddsi_locator,
    #[doc = "< Numeric PSMX Instance ID for this PSMX Instance"]
    pub instance_id: dds_psmx_instance_id_t,
    #[doc = "< Reserved, must be 0"]
    pub psmx_topics: *mut ::std::ffi::c_void,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx"][::std::mem::size_of::<dds_psmx>() - 104usize];
    ["Alignment of dds_psmx"][::std::mem::align_of::<dds_psmx>() - 8usize];
    ["Offset of field: dds_psmx::ops"][::std::mem::offset_of!(dds_psmx, ops) - 0usize];
    ["Offset of field: dds_psmx::instance_name"]
        [::std::mem::offset_of!(dds_psmx, instance_name) - 64usize];
    ["Offset of field: dds_psmx::priority"][::std::mem::offset_of!(dds_psmx, priority) - 72usize];
    ["Offset of field: dds_psmx::locator"][::std::mem::offset_of!(dds_psmx, locator) - 80usize];
    ["Offset of field: dds_psmx::instance_id"]
        [::std::mem::offset_of!(dds_psmx, instance_id) - 88usize];
    ["Offset of field: dds_psmx::psmx_topics"]
        [::std::mem::offset_of!(dds_psmx, psmx_topics) - 96usize];
};
impl Default for dds_psmx {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Type representing a PSMX Instance in a DDS Domain Entity\n @ingroup psmx\n\n Each PSMX Instance is represented in a DDS Domain Entity by a pointer to a `struct dds_psmx`.\n The PSMX Plugin is responsible for allocating and constructing it on initialization in a constructor\n as described in the overview."]
pub type dds_psmx_t = dds_psmx;
#[doc = " @brief Type representing a PSMX Topic in a DDS Domain Entity\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx_topic {
    #[doc = "< operations on the PSMX Topic"]
    pub ops: dds_psmx_topic_ops_t,
    #[doc = "< PSMX Instance which created this PSMX Topic"]
    pub psmx_instance: *mut dds_psmx,
    #[doc = "< Topic name"]
    pub topic_name: *const ::std::ffi::c_char,
    #[doc = "< Type name"]
    pub type_name: *const ::std::ffi::c_char,
    #[doc = "< Reserved, must be 0"]
    pub data_type: dds_loan_data_type_t,
    #[doc = "< Reserved, must be 0"]
    pub psmx_endpoints: *mut ::std::ffi::c_void,
    #[doc = "< Properties of the data type associated with this topic"]
    pub data_type_props: dds_data_type_properties_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_topic"][::std::mem::size_of::<dds_psmx_topic>() - 64usize];
    ["Alignment of dds_psmx_topic"][::std::mem::align_of::<dds_psmx_topic>() - 8usize];
    ["Offset of field: dds_psmx_topic::ops"][::std::mem::offset_of!(dds_psmx_topic, ops) - 0usize];
    ["Offset of field: dds_psmx_topic::psmx_instance"]
        [::std::mem::offset_of!(dds_psmx_topic, psmx_instance) - 16usize];
    ["Offset of field: dds_psmx_topic::topic_name"]
        [::std::mem::offset_of!(dds_psmx_topic, topic_name) - 24usize];
    ["Offset of field: dds_psmx_topic::type_name"]
        [::std::mem::offset_of!(dds_psmx_topic, type_name) - 32usize];
    ["Offset of field: dds_psmx_topic::data_type"]
        [::std::mem::offset_of!(dds_psmx_topic, data_type) - 40usize];
    ["Offset of field: dds_psmx_topic::psmx_endpoints"]
        [::std::mem::offset_of!(dds_psmx_topic, psmx_endpoints) - 48usize];
    ["Offset of field: dds_psmx_topic::data_type_props"]
        [::std::mem::offset_of!(dds_psmx_topic, data_type_props) - 56usize];
};
impl Default for dds_psmx_topic {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Type representing a PSMX Topic in a DDS Domain Entity\n @ingroup psmx"]
pub type dds_psmx_topic_t = dds_psmx_topic;
#[doc = " @brief Type representing a PSMX Endpoint in a DDS Domain Entity\n @ingroup psmx"]
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_psmx_endpoint {
    #[doc = "< operations on the PSMX Endpoint"]
    pub ops: dds_psmx_endpoint_ops_t,
    #[doc = "< PSMX Topic for this endpoint"]
    pub psmx_topic: *mut dds_psmx_topic,
    #[doc = "< Type of endpoint (READER or WRITER)"]
    pub endpoint_type: dds_psmx_endpoint_type_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_psmx_endpoint"][::std::mem::size_of::<dds_psmx_endpoint>() - 56usize];
    ["Alignment of dds_psmx_endpoint"][::std::mem::align_of::<dds_psmx_endpoint>() - 8usize];
    ["Offset of field: dds_psmx_endpoint::ops"]
        [::std::mem::offset_of!(dds_psmx_endpoint, ops) - 0usize];
    ["Offset of field: dds_psmx_endpoint::psmx_topic"]
        [::std::mem::offset_of!(dds_psmx_endpoint, psmx_topic) - 40usize];
    ["Offset of field: dds_psmx_endpoint::endpoint_type"]
        [::std::mem::offset_of!(dds_psmx_endpoint, endpoint_type) - 48usize];
};
impl Default for dds_psmx_endpoint {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[doc = " @brief Type representing a PSMX Endpoint in a DDS Domain Entity\n @ingroup psmx"]
pub type dds_psmx_endpoint_t = dds_psmx_endpoint;
unsafe extern "C" {
    #[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_topic       ignored\n @param[in,out] list         ignored\n @return `DDS_RETCODE_OK`"]
    pub fn dds_add_psmx_topic_to_list(
        psmx_topic: *mut dds_psmx_topic,
        list: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_topic       ignored\n @param[in,out] list         ignored\n @return `DDS_RETCODE_OK`"]
    pub fn dds_remove_psmx_topic_from_list(
        psmx_topic: *mut dds_psmx_topic,
        list: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_endpoint    ignored\n @param[in,out] list         ignored\n @return `DDS_RETCODE_OK`"]
    pub fn dds_add_psmx_endpoint_to_list(
        psmx_endpoint: *mut dds_psmx_endpoint,
        list: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief nop\n @ingroup psmx\n\n does nothing, exists for backwards compatibility only\n\n @param[in] psmx_endpoint    ignored\n @param[in,out] list         ignored\n @return `DDS_RETCODE_OK`"]
    pub fn dds_remove_psmx_endpoint_from_list(
        psmx_endpoint: *mut dds_psmx_endpoint,
        list: *mut *mut ::std::ffi::c_void,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief initialization function for PSMX instance (interface version 0)\n @ingroup psmx\n\n Shall be called by a constructor function for a PSMX Plugin implementing interface\n version 0 as described in the overview.\n\n @param[in] psmx             The PSMX instance to initialize\n @return a DDS return code"]
    pub fn dds_psmx_init_generic(psmx: *mut dds_psmx) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief cleanup function for a PSMX instance (interface version 0)\n @ingroup psmx\n\n Shall be called by the destructor function of PSMX Plugin implementing interface\n version 0 as described in the documentation of \"dds_psmx_deinit_fn\".\n\n @param[in] psmx             the PSMX instance to cleanup\n @return a DDS return code"]
    pub fn dds_psmx_cleanup_generic(psmx: *mut dds_psmx) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief init function for topic (interface version 0)\n @ingroup psmx\n\n Shall be called by de topic constructor function for a PSMX Plugin implementing\n interface version 0.\n\n @param[in] psmx_topic       the topic to initialize\n @param[in] ops vtable       for this psmx_topic\n @param[in] psmx             the PSMX instance\n @param[in] topic_name       the topic name\n @param[in] type_name        the DDS type name for this topic\n @param[in] data_type_props  the data type's properties\n @return a DDS return code"]
    pub fn dds_psmx_topic_init_generic(
        psmx_topic: *mut dds_psmx_topic,
        ops: *const dds_psmx_topic_ops_t,
        psmx: *const dds_psmx,
        topic_name: *const ::std::ffi::c_char,
        type_name: *const ::std::ffi::c_char,
        data_type_props: dds_data_type_properties_t,
    ) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief cleanup function for a topic (interface version 0)\n @ingroup psmx\n\n Shall be called by de topic destructor function for a PSMX Plugin implementing\n interface version 0 as described in the documentation of \"dds_psmx_delete_topic_fn\".\n\n @param[in] psmx_topic       the topic to de-initialize\n @return a DDS return code"]
    pub fn dds_psmx_topic_cleanup_generic(psmx_topic: *mut dds_psmx_topic) -> dds_return_t;
}
unsafe extern "C" {
    #[doc = " @brief Returns the string associated with the option_name in the PSMX config string.\n @ingroup psmx\n\n The C string returned from this function should be freed by the user using `ddsrt_free`.\n\n The option \"SERVICE_NAME\" is treated as an alias for \"INSTANCE_NAME\".\n\n @param[in] conf             a double-\\0 terminated configuration string in the\n                             same format as that passed to the PSMX Plugin's constructor\n                             function (see the overview).\n @param[in] option_name      the option to look up\n @return pointer to a newly allocated string on the heap if found, NULL if not found or out of memory."]
    pub fn dds_psmx_get_config_option_value(
        conf: *const ::std::ffi::c_char,
        option_name: *const ::std::ffi::c_char,
    ) -> *mut ::std::ffi::c_char;
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union ddsi_guid_prefix {
    pub s: [::std::ffi::c_uchar; 12usize],
    pub u: [u32; 3usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ddsi_guid_prefix"][::std::mem::size_of::<ddsi_guid_prefix>() - 12usize];
    ["Alignment of ddsi_guid_prefix"][::std::mem::align_of::<ddsi_guid_prefix>() - 4usize];
    ["Offset of field: ddsi_guid_prefix::s"][::std::mem::offset_of!(ddsi_guid_prefix, s) - 0usize];
    ["Offset of field: ddsi_guid_prefix::u"][::std::mem::offset_of!(ddsi_guid_prefix, u) - 0usize];
};
impl Default for ddsi_guid_prefix {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type ddsi_guid_prefix_t = ddsi_guid_prefix;
#[repr(C)]
#[derive(Copy, Clone)]
pub union ddsi_entityid {
    pub u: u32,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ddsi_entityid"][::std::mem::size_of::<ddsi_entityid>() - 4usize];
    ["Alignment of ddsi_entityid"][::std::mem::align_of::<ddsi_entityid>() - 4usize];
    ["Offset of field: ddsi_entityid::u"][::std::mem::offset_of!(ddsi_entityid, u) - 0usize];
};
impl Default for ddsi_entityid {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type ddsi_entityid_t = ddsi_entityid;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ddsi_guid {
    pub prefix: ddsi_guid_prefix_t,
    pub entityid: ddsi_entityid_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ddsi_guid"][::std::mem::size_of::<ddsi_guid>() - 16usize];
    ["Alignment of ddsi_guid"][::std::mem::align_of::<ddsi_guid>() - 4usize];
    ["Offset of field: ddsi_guid::prefix"][::std::mem::offset_of!(ddsi_guid, prefix) - 0usize];
    ["Offset of field: ddsi_guid::entityid"][::std::mem::offset_of!(ddsi_guid, entityid) - 12usize];
};
impl Default for ddsi_guid {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type ddsi_guid_t = ddsi_guid;
unsafe extern "C" {
    #[doc = " @component misc"]
    pub fn ddsi_hton_guid(g: ddsi_guid_t) -> ddsi_guid_t;
}
unsafe extern "C" {
    #[doc = " @component misc"]
    pub fn ddsi_ntoh_guid(g: ddsi_guid_t) -> ddsi_guid_t;
}
unsafe extern "C" {
    #[doc = " @component misc"]
    pub fn ddsi_hton_guid_prefix(p: ddsi_guid_prefix_t) -> ddsi_guid_prefix_t;
}
unsafe extern "C" {
    #[doc = " @component misc"]
    pub fn ddsi_ntoh_guid_prefix(p: ddsi_guid_prefix_t) -> ddsi_guid_prefix_t;
}
unsafe extern "C" {
    #[doc = " @component misc"]
    pub fn ddsi_hton_entityid(e: ddsi_entityid_t) -> ddsi_entityid_t;
}
unsafe extern "C" {
    #[doc = " @component misc"]
    pub fn ddsi_ntoh_entityid(e: ddsi_entityid_t) -> ddsi_entityid_t;
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_tkmap_instance {
    _unused: [u8; 0],
}
#[repr(C)]
pub struct ddsi_writer_info {
    pub guid: ddsi_guid_t,
    pub auto_dispose: bool,
    pub ownership_strength: i32,
    pub iid: u64,
    pub lifespan_exp: ddsrt_mtime_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ddsi_writer_info"][::std::mem::size_of::<ddsi_writer_info>() - 40usize];
    ["Alignment of ddsi_writer_info"][::std::mem::align_of::<ddsi_writer_info>() - 8usize];
    ["Offset of field: ddsi_writer_info::guid"]
        [::std::mem::offset_of!(ddsi_writer_info, guid) - 0usize];
    ["Offset of field: ddsi_writer_info::auto_dispose"]
        [::std::mem::offset_of!(ddsi_writer_info, auto_dispose) - 16usize];
    ["Offset of field: ddsi_writer_info::ownership_strength"]
        [::std::mem::offset_of!(ddsi_writer_info, ownership_strength) - 20usize];
    ["Offset of field: ddsi_writer_info::iid"]
        [::std::mem::offset_of!(ddsi_writer_info, iid) - 24usize];
    ["Offset of field: ddsi_writer_info::lifespan_exp"]
        [::std::mem::offset_of!(ddsi_writer_info, lifespan_exp) - 32usize];
};
impl Default for ddsi_writer_info {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
pub type ddsi_rhc_free_t = ::std::option::Option<unsafe extern "C" fn(rhc: *mut ddsi_rhc)>;
pub type ddsi_rhc_store_t = ::std::option::Option<
    unsafe extern "C" fn(
        rhc: *mut ddsi_rhc,
        wrinfo: *const ddsi_writer_info,
        sample: *mut ddsi_serdata,
        tk: *mut ddsi_tkmap_instance,
    ) -> bool,
>;
pub type ddsi_rhc_unregister_wr_t = ::std::option::Option<
    unsafe extern "C" fn(rhc: *mut ddsi_rhc, wrinfo: *const ddsi_writer_info),
>;
pub type ddsi_rhc_relinquish_ownership_t =
    ::std::option::Option<unsafe extern "C" fn(rhc: *mut ddsi_rhc, wr_iid: u64)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ddsi_rhc_ops {
    pub store: ddsi_rhc_store_t,
    pub unregister_wr: ddsi_rhc_unregister_wr_t,
    pub relinquish_ownership: ddsi_rhc_relinquish_ownership_t,
    pub free: ddsi_rhc_free_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ddsi_rhc_ops"][::std::mem::size_of::<ddsi_rhc_ops>() - 32usize];
    ["Alignment of ddsi_rhc_ops"][::std::mem::align_of::<ddsi_rhc_ops>() - 8usize];
    ["Offset of field: ddsi_rhc_ops::store"][::std::mem::offset_of!(ddsi_rhc_ops, store) - 0usize];
    ["Offset of field: ddsi_rhc_ops::unregister_wr"]
        [::std::mem::offset_of!(ddsi_rhc_ops, unregister_wr) - 8usize];
    ["Offset of field: ddsi_rhc_ops::relinquish_ownership"]
        [::std::mem::offset_of!(ddsi_rhc_ops, relinquish_ownership) - 16usize];
    ["Offset of field: ddsi_rhc_ops::free"][::std::mem::offset_of!(ddsi_rhc_ops, free) - 24usize];
};
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_rhc {
    pub ops: *const ddsi_rhc_ops,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of ddsi_rhc"][::std::mem::size_of::<ddsi_rhc>() - 8usize];
    ["Alignment of ddsi_rhc"][::std::mem::align_of::<ddsi_rhc>() - 8usize];
    ["Offset of field: ddsi_rhc::ops"][::std::mem::offset_of!(ddsi_rhc, ops) - 0usize];
};
impl Default for ddsi_rhc {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_readcond {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct dds_reader {
    _unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct ddsi_tkmap {
    _unused: [u8; 0],
}
pub type dds_rhc_associate_t = ::std::option::Option<
    unsafe extern "C" fn(rhc: *mut dds_rhc, reader: *mut dds_reader) -> dds_return_t,
>;
pub type dds_rhc_read_take_t = ::std::option::Option<
    unsafe extern "C" fn(
        rhc: *mut dds_rhc,
        max_samples: i32,
        mask: u32,
        handle: dds_instance_handle_t,
        cond: *mut dds_readcond,
        collect_sample: dds_read_with_collector_fn_t,
        collect_sample_arg: *mut ::std::ffi::c_void,
    ) -> i32,
>;
pub type dds_rhc_add_readcondition_t =
    ::std::option::Option<unsafe extern "C" fn(rhc: *mut dds_rhc, cond: *mut dds_readcond) -> bool>;
pub type dds_rhc_remove_readcondition_t =
    ::std::option::Option<unsafe extern "C" fn(rhc: *mut dds_rhc, cond: *mut dds_readcond)>;
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct dds_rhc_ops {
    pub rhc_ops: ddsi_rhc_ops,
    pub peek: dds_rhc_read_take_t,
    pub read: dds_rhc_read_take_t,
    pub take: dds_rhc_read_take_t,
    pub add_readcondition: dds_rhc_add_readcondition_t,
    pub remove_readcondition: dds_rhc_remove_readcondition_t,
    pub associate: dds_rhc_associate_t,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_rhc_ops"][::std::mem::size_of::<dds_rhc_ops>() - 80usize];
    ["Alignment of dds_rhc_ops"][::std::mem::align_of::<dds_rhc_ops>() - 8usize];
    ["Offset of field: dds_rhc_ops::rhc_ops"]
        [::std::mem::offset_of!(dds_rhc_ops, rhc_ops) - 0usize];
    ["Offset of field: dds_rhc_ops::peek"][::std::mem::offset_of!(dds_rhc_ops, peek) - 32usize];
    ["Offset of field: dds_rhc_ops::read"][::std::mem::offset_of!(dds_rhc_ops, read) - 40usize];
    ["Offset of field: dds_rhc_ops::take"][::std::mem::offset_of!(dds_rhc_ops, take) - 48usize];
    ["Offset of field: dds_rhc_ops::add_readcondition"]
        [::std::mem::offset_of!(dds_rhc_ops, add_readcondition) - 56usize];
    ["Offset of field: dds_rhc_ops::remove_readcondition"]
        [::std::mem::offset_of!(dds_rhc_ops, remove_readcondition) - 64usize];
    ["Offset of field: dds_rhc_ops::associate"]
        [::std::mem::offset_of!(dds_rhc_ops, associate) - 72usize];
};
#[doc = " @brief Reader History Cache\n @ingroup dds\n DOC_TODO"]
#[repr(C)]
#[derive(Copy, Clone)]
pub struct dds_rhc {
    pub common: dds_rhc__bindgen_ty_1,
}
#[repr(C)]
#[derive(Copy, Clone)]
pub union dds_rhc__bindgen_ty_1 {
    pub ops: *const dds_rhc_ops,
    pub rhc: ddsi_rhc,
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_rhc__bindgen_ty_1"][::std::mem::size_of::<dds_rhc__bindgen_ty_1>() - 8usize];
    ["Alignment of dds_rhc__bindgen_ty_1"]
        [::std::mem::align_of::<dds_rhc__bindgen_ty_1>() - 8usize];
    ["Offset of field: dds_rhc__bindgen_ty_1::ops"]
        [::std::mem::offset_of!(dds_rhc__bindgen_ty_1, ops) - 0usize];
    ["Offset of field: dds_rhc__bindgen_ty_1::rhc"]
        [::std::mem::offset_of!(dds_rhc__bindgen_ty_1, rhc) - 0usize];
};
impl Default for dds_rhc__bindgen_ty_1 {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of dds_rhc"][::std::mem::size_of::<dds_rhc>() - 8usize];
    ["Alignment of dds_rhc"][::std::mem::align_of::<dds_rhc>() - 8usize];
    ["Offset of field: dds_rhc::common"][::std::mem::offset_of!(dds_rhc, common) - 0usize];
};
impl Default for dds_rhc {
    fn default() -> Self {
        let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
        unsafe {
            ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
            s.assume_init()
        }
    }
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct static_assert_54 {
    pub cond: [::std::ffi::c_char; 1usize],
}
#[allow(clippy::unnecessary_operation, clippy::identity_op)]
const _: () = {
    ["Size of static_assert_54"][::std::mem::size_of::<static_assert_54>() - 1usize];
    ["Alignment of static_assert_54"][::std::mem::align_of::<static_assert_54>() - 1usize];
    ["Offset of field: static_assert_54::cond"]
        [::std::mem::offset_of!(static_assert_54, cond) - 0usize];
};
unsafe extern "C" {
    #[doc = " @component rhc"]
    pub fn dds_reader_data_available_cb(rd: *mut dds_reader);
}
pub type __builtin_va_list = *mut ::std::ffi::c_char;
pub type __uint128_t = u128;
pub type __int128_t = i128;
#[doc = "< PSMX Locator for this PSMX Instance"]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct ddsi_locator {
    pub _address: u8,
}