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
/* automatically generated by rust-bindgen */
#![allow(warnings)]
pub type SAP_DOUBLE = f64;
pub type SAP_UC = ::std::os::raw::c_char;
pub type SAP_RAW = ::std::os::raw::c_uchar;
#[repr(C)]
#[derive(Copy)]
pub union SAP_MAX_ALIGN_T {
    pub align_1: ::std::os::raw::c_long,
    pub align_2: f64,
    pub align_3: *mut ::std::os::raw::c_void,
    pub align_4: SAP_DOUBLE,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_SAP_MAX_ALIGN_T() {
    assert_eq!(::std::mem::size_of::<SAP_MAX_ALIGN_T>() , 8usize , concat ! (
               "Size of: " , stringify ! ( SAP_MAX_ALIGN_T ) ));
    assert_eq! (::std::mem::align_of::<SAP_MAX_ALIGN_T>() , 8usize , concat !
                ( "Alignment of " , stringify ! ( SAP_MAX_ALIGN_T ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const SAP_MAX_ALIGN_T ) ) . align_1 as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( SAP_MAX_ALIGN_T ) ,
                "::" , stringify ! ( align_1 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const SAP_MAX_ALIGN_T ) ) . align_2 as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( SAP_MAX_ALIGN_T ) ,
                "::" , stringify ! ( align_2 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const SAP_MAX_ALIGN_T ) ) . align_3 as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( SAP_MAX_ALIGN_T ) ,
                "::" , stringify ! ( align_3 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const SAP_MAX_ALIGN_T ) ) . align_4 as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( SAP_MAX_ALIGN_T ) ,
                "::" , stringify ! ( align_4 ) ));
}
impl Clone for SAP_MAX_ALIGN_T {
    fn clone(&self) -> Self { *self }
}
impl Default for SAP_MAX_ALIGN_T {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub union DecFloat16 {
    pub bytes: [SAP_RAW; 8usize],
    pub align: SAP_DOUBLE,
    _bindgen_union_align: u64,
}
#[test]
fn bindgen_test_layout_DecFloat16() {
    assert_eq!(::std::mem::size_of::<DecFloat16>() , 8usize , concat ! (
               "Size of: " , stringify ! ( DecFloat16 ) ));
    assert_eq! (::std::mem::align_of::<DecFloat16>() , 8usize , concat ! (
                "Alignment of " , stringify ! ( DecFloat16 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const DecFloat16 ) ) . bytes as * const _ as
                usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( DecFloat16 ) , "::" ,
                stringify ! ( bytes ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const DecFloat16 ) ) . align as * const _ as
                usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( DecFloat16 ) , "::" ,
                stringify ! ( align ) ));
}
impl Clone for DecFloat16 {
    fn clone(&self) -> Self { *self }
}
impl Default for DecFloat16 {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
#[repr(C)]
#[derive(Copy)]
pub union DecFloat34 {
    pub bytes: [SAP_RAW; 16usize],
    pub align: SAP_MAX_ALIGN_T,
    _bindgen_union_align: [u64; 2usize],
}
#[test]
fn bindgen_test_layout_DecFloat34() {
    assert_eq!(::std::mem::size_of::<DecFloat34>() , 16usize , concat ! (
               "Size of: " , stringify ! ( DecFloat34 ) ));
    assert_eq! (::std::mem::align_of::<DecFloat34>() , 8usize , concat ! (
                "Alignment of " , stringify ! ( DecFloat34 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const DecFloat34 ) ) . bytes as * const _ as
                usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( DecFloat34 ) , "::" ,
                stringify ! ( bytes ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const DecFloat34 ) ) . align as * const _ as
                usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( DecFloat34 ) , "::" ,
                stringify ! ( align ) ));
}
impl Clone for DecFloat34 {
    fn clone(&self) -> Self { *self }
}
impl Default for DecFloat34 {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_CHAR = SAP_UC;
pub type RFC_NUM = RFC_CHAR;
pub type RFC_BYTE = SAP_RAW;
pub type RFC_INT1 = SAP_RAW;
pub type RFC_INT2 = ::std::os::raw::c_short;
pub type RFC_INT = ::std::os::raw::c_int;
pub type RFC_FLOAT = f64;
pub type RFC_DATE = [RFC_CHAR; 8usize];
pub type RFC_TIME = [RFC_CHAR; 6usize];
pub type RFC_DECF16 = DecFloat16;
pub type RFC_DECF34 = DecFloat34;
pub type RFC_TID = [SAP_UC; 25usize];
pub type RFC_UNITID = [SAP_UC; 33usize];
#[repr(u32)]
/// _RFCTYPE
///
///
/// RFCTYPE is used in field descriptions (#RFC_FIELD_DESC) and parameter descriptions
/// (#RFC_PARAMETER_DESC) and denotes the ABAP data type of the corresponding field/parameter.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFCTYPE {
    RFCTYPE_CHAR = 0,
    RFCTYPE_DATE = 1,
    RFCTYPE_BCD = 2,
    RFCTYPE_TIME = 3,
    RFCTYPE_BYTE = 4,
    RFCTYPE_TABLE = 5,
    RFCTYPE_NUM = 6,
    RFCTYPE_FLOAT = 7,
    RFCTYPE_INT = 8,
    RFCTYPE_INT2 = 9,
    RFCTYPE_INT1 = 10,
    RFCTYPE_NULL = 14,
    RFCTYPE_ABAPOBJECT = 16,
    RFCTYPE_STRUCTURE = 17,
    RFCTYPE_DECF16 = 23,
    RFCTYPE_DECF34 = 24,
    RFCTYPE_XMLDATA = 28,
    RFCTYPE_STRING = 29,
    RFCTYPE_XSTRING = 30,
    RFCTYPE_INT8 = 31,
    RFCTYPE_UTCLONG = 32,
    RFCTYPE_UTCSECOND = 33,
    RFCTYPE_UTCMINUTE = 34,
    RFCTYPE_DTDAY = 35,
    RFCTYPE_DTWEEK = 36,
    RFCTYPE_DTMONTH = 37,
    RFCTYPE_TSECOND = 38,
    RFCTYPE_TMINUTE = 39,
    RFCTYPE_CDAY = 40,
    RFCTYPE_BOX = 41,
    RFCTYPE_GENERIC_BOX = 42,
    _RFCTYPE_max_value = 43,
}
pub use self::_RFCTYPE as RFCTYPE;
#[repr(u32)]
/// _RFC_RC
///
///
/// RFC return codes used by all functions that do not directly return a handle.
/// Also used as error indicator in the structure #RFC_ERROR_INFO::code.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_RC {
    RFC_OK = 0,
    RFC_COMMUNICATION_FAILURE = 1,
    RFC_LOGON_FAILURE = 2,
    RFC_ABAP_RUNTIME_FAILURE = 3,
    RFC_ABAP_MESSAGE = 4,
    RFC_ABAP_EXCEPTION = 5,
    RFC_CLOSED = 6,
    RFC_CANCELED = 7,
    RFC_TIMEOUT = 8,
    RFC_MEMORY_INSUFFICIENT = 9,
    RFC_VERSION_MISMATCH = 10,
    RFC_INVALID_PROTOCOL = 11,
    RFC_SERIALIZATION_FAILURE = 12,
    RFC_INVALID_HANDLE = 13,
    RFC_RETRY = 14,
    RFC_EXTERNAL_FAILURE = 15,
    RFC_EXECUTED = 16,
    RFC_NOT_FOUND = 17,
    RFC_NOT_SUPPORTED = 18,
    RFC_ILLEGAL_STATE = 19,
    RFC_INVALID_PARAMETER = 20,
    RFC_CODEPAGE_CONVERSION_FAILURE = 21,
    RFC_CONVERSION_FAILURE = 22,
    RFC_BUFFER_TOO_SMALL = 23,
    RFC_TABLE_MOVE_BOF = 24,
    RFC_TABLE_MOVE_EOF = 25,
    RFC_START_SAPGUI_FAILURE = 26,
    RFC_ABAP_CLASS_EXCEPTION = 27,
    RFC_UNKNOWN_ERROR = 28,
    RFC_AUTHORIZATION_FAILURE = 29,
    _RFC_RC_max_value = 30,
}
pub use self::_RFC_RC as RFC_RC;
#[repr(u32)]
/// _RFC_ERROR_GROUP
///
///
/// Groups several error conditions together, depending on the "layer" to which they belong.
/// Used in the structure #RFC_ERROR_INFO::group.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_ERROR_GROUP {
    OK = 0,
    ABAP_APPLICATION_FAILURE = 1,
    ABAP_RUNTIME_FAILURE = 2,
    LOGON_FAILURE = 3,
    COMMUNICATION_FAILURE = 4,
    EXTERNAL_RUNTIME_FAILURE = 5,
    EXTERNAL_APPLICATION_FAILURE = 6,
    EXTERNAL_AUTHORIZATION_FAILURE = 7,
}
pub use self::_RFC_ERROR_GROUP as RFC_ERROR_GROUP;

/// _RFC_ERROR_INFO
///
///
/// Used in all functions of the NW RFC library to return detailed information about
/// an error that has just occurred. This can be an error that the communication partner
/// sent back to us, an error that occurred in the network layer or operating system,
/// an internal error in the NW RFC library or an error that the application programmer
/// (i.e. you) has committed...
///
/// Within a server function implementation, the application programmer (you) can return
/// this structure to the RFC library in order to specify the error type & message that
/// you want to send back to the backend.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_ERROR_INFO {
    /// Error code. Should be the same as the API returns if the API has return type RFC_RC
    pub code: RFC_RC,
    /// Error group
    pub group: RFC_ERROR_GROUP,
    /// Error key
    pub key: [SAP_UC; 128usize],
    /// Error message
    pub message: [SAP_UC; 512usize],
    /// ABAP message ID , or class
    pub abapMsgClass: [SAP_UC; 21usize],
    /// ABAP message type, e.g. 'E', 'A' or 'X'
    pub abapMsgType: [SAP_UC; 2usize],
    /// ABAP message number
    pub abapMsgNumber: [RFC_NUM; 4usize],
    /// ABAP message details field 1, corresponds to SY-MSGV1
    pub abapMsgV1: [SAP_UC; 51usize],
    /// ABAP message details field 2, corresponds to SY-MSGV2
    pub abapMsgV2: [SAP_UC; 51usize],
    /// ABAP message details field 3, corresponds to SY-MSGV3
    pub abapMsgV3: [SAP_UC; 51usize],
    /// ABAP message details field 4, corresponds to SY-MSGV4
    pub abapMsgV4: [SAP_UC; 51usize],
}
#[test]
fn bindgen_test_layout__RFC_ERROR_INFO() {
    assert_eq!(::std::mem::size_of::<_RFC_ERROR_INFO>() , 880usize , concat !
               ( "Size of: " , stringify ! ( _RFC_ERROR_INFO ) ));
    assert_eq! (::std::mem::align_of::<_RFC_ERROR_INFO>() , 4usize , concat !
                ( "Alignment of " , stringify ! ( _RFC_ERROR_INFO ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . code as * const _
                as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( code ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . group as * const _
                as usize } , 4usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( group ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . key as * const _ as
                usize } , 8usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( key ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . message as * const
                _ as usize } , 136usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( message ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgClass as *
                const _ as usize } , 648usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgClass ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgType as *
                const _ as usize } , 669usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgType ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgNumber as *
                const _ as usize } , 671usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgNumber ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgV1 as *
                const _ as usize } , 675usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgV1 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgV2 as *
                const _ as usize } , 726usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgV2 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgV3 as *
                const _ as usize } , 777usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgV3 ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ERROR_INFO ) ) . abapMsgV4 as *
                const _ as usize } , 828usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ERROR_INFO ) ,
                "::" , stringify ! ( abapMsgV4 ) ));
}
impl Clone for _RFC_ERROR_INFO {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_ERROR_INFO {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_ERROR_INFO = _RFC_ERROR_INFO;

/// _RFC_ATTRIBUTES
///
///
/// Structure returned by RfcGetConnectionAttributes() giving some
/// information about the partner system on the other side of this RFC connection.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_ATTRIBUTES {
    /// RFC destination
    pub dest: [SAP_UC; 65usize],
    /// Own host name
    pub host: [SAP_UC; 101usize],
    /// Partner host name
    pub partnerHost: [SAP_UC; 101usize],
    /// R/3 system number
    pub sysNumber: [SAP_UC; 3usize],
    /// R/3 system ID
    pub sysId: [SAP_UC; 9usize],
    /// Client ("Mandant")
    pub client: [SAP_UC; 4usize],
    /// User
    pub user: [SAP_UC; 13usize],
    /// Language
    pub language: [SAP_UC; 3usize],
    /// Trace level (0-3)
    pub trace: [SAP_UC; 2usize],
    /// 2-byte ISO-Language
    pub isoLanguage: [SAP_UC; 3usize],
    /// Own code page
    pub codepage: [SAP_UC; 5usize],
    /// Partner code page
    pub partnerCodepage: [SAP_UC; 5usize],
    /// C/S: RFC Client / RFC Server
    pub rfcRole: [SAP_UC; 2usize],
    /// 2/3/E/R: R/2,R/3,Ext,Reg.Ext
    pub type_: [SAP_UC; 2usize],
    /// 2/3/E/R: R/2,R/3,Ext,Reg.Ext
    pub partnerType: [SAP_UC; 2usize],
    /// My system release
    pub rel: [SAP_UC; 5usize],
    /// Partner system release
    pub partnerRel: [SAP_UC; 5usize],
    /// Partner kernel release
    pub kernelRel: [SAP_UC; 5usize],
    /// CPI-C Conversation ID
    pub cpicConvId: [SAP_UC; 9usize],
    /// Name of the calling APAB program (report, module pool)
    pub progName: [SAP_UC; 129usize],
    /// Number of bytes per character in the backend's current codepage. Note this is different from the semantics of the PCS parameter.
    pub partnerBytesPerChar: [SAP_UC; 2usize],
    /// Partner system code page
    pub partnerSystemCodepage: [SAP_UC; 5usize],
    /// Reserved for later use
    pub reserved: [SAP_UC; 79usize],
}
#[test]
fn bindgen_test_layout__RFC_ATTRIBUTES() {
    assert_eq!(::std::mem::size_of::<_RFC_ATTRIBUTES>() , 559usize , concat !
               ( "Size of: " , stringify ! ( _RFC_ATTRIBUTES ) ));
    assert_eq! (::std::mem::align_of::<_RFC_ATTRIBUTES>() , 1usize , concat !
                ( "Alignment of " , stringify ! ( _RFC_ATTRIBUTES ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . dest as * const _
                as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( dest ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . host as * const _
                as usize } , 65usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( host ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . partnerHost as *
                const _ as usize } , 166usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( partnerHost ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . sysNumber as *
                const _ as usize } , 267usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( sysNumber ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . sysId as * const _
                as usize } , 270usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( sysId ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . client as * const _
                as usize } , 279usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( client ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . user as * const _
                as usize } , 283usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( user ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . language as * const
                _ as usize } , 296usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( language ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . trace as * const _
                as usize } , 299usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( trace ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . isoLanguage as *
                const _ as usize } , 301usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( isoLanguage ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . codepage as * const
                _ as usize } , 304usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( codepage ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . partnerCodepage as
                * const _ as usize } , 309usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( partnerCodepage ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . rfcRole as * const
                _ as usize } , 314usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( rfcRole ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . type_ as * const _
                as usize } , 316usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( type_ ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . partnerType as *
                const _ as usize } , 318usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( partnerType ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . rel as * const _ as
                usize } , 320usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( rel ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . partnerRel as *
                const _ as usize } , 325usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( partnerRel ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . kernelRel as *
                const _ as usize } , 330usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( kernelRel ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . cpicConvId as *
                const _ as usize } , 335usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( cpicConvId ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . progName as * const
                _ as usize } , 344usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( progName ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . partnerBytesPerChar
                as * const _ as usize } , 473usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( partnerBytesPerChar ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) .
                partnerSystemCodepage as * const _ as usize } , 475usize ,
                concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( partnerSystemCodepage ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_ATTRIBUTES ) ) . reserved as * const
                _ as usize } , 480usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_ATTRIBUTES ) ,
                "::" , stringify ! ( reserved ) ));
}
impl Clone for _RFC_ATTRIBUTES {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_ATTRIBUTES {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_ATTRIBUTES = _RFC_ATTRIBUTES;

/// _RFC_SECURITY_ATTRIBUTES
///
///
/// Structure passed to the RFC_SERVER_AUTHORIZATION_HANDLER giving some
/// security related information about the calling ABAP partner of an incoming RFC call.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_SECURITY_ATTRIBUTES {
    /// Name of the called function module
    pub functionName: *mut SAP_UC,
    /// Calling ABAP system ID
    pub sysId: *mut SAP_UC,
    /// ABAP Client ("Mandant")
    pub client: *mut SAP_UC,
    /// ABAP User
    pub user: *mut SAP_UC,
    /// Name of the calling APAB program (report, module pool)
    pub progName: *mut SAP_UC,
    /// SNC key of the calling ABAP system, if SNC is enabled
    pub sncName: *mut SAP_UC,
    /// Logon ticket of the ABAP user, if SSO2 or assertion tickets are enabled
    pub ssoTicket: *mut SAP_UC,
}
#[test]
fn bindgen_test_layout__RFC_SECURITY_ATTRIBUTES() {
    assert_eq!(::std::mem::size_of::<_RFC_SECURITY_ATTRIBUTES>() , 56usize ,
               concat ! (
               "Size of: " , stringify ! ( _RFC_SECURITY_ATTRIBUTES ) ));
    assert_eq! (::std::mem::align_of::<_RFC_SECURITY_ATTRIBUTES>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_SECURITY_ATTRIBUTES ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) .
                functionName as * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( functionName
                ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) . sysId as *
                const _ as usize } , 8usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( sysId ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) . client as
                * const _ as usize } , 16usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( client ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) . user as *
                const _ as usize } , 24usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( user ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) . progName
                as * const _ as usize } , 32usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( progName )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) . sncName as
                * const _ as usize } , 40usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( sncName )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SECURITY_ATTRIBUTES ) ) . ssoTicket
                as * const _ as usize } , 48usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_SECURITY_ATTRIBUTES ) , "::" , stringify ! ( ssoTicket )
                ));
}
impl Clone for _RFC_SECURITY_ATTRIBUTES {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_SECURITY_ATTRIBUTES {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_SECURITY_ATTRIBUTES = _RFC_SECURITY_ATTRIBUTES;

/// _RFC_UNIT_ATTRIBUTES
///
///
/// If the external program is the sender of the bgRFC unit, this structure is used to set a
/// bunch of special attributes that determine, how a bgRFC Unit will be processed in the backend.
/// The fields user, client, tCode and program are optional. If left empty, the NW RFC lib will
/// fill them with default values. The fields hostname, sendingDate and sendingTime should not be
/// filled, the lib fills them, when the unit is submitted.
///
/// If the external program is the receiver of the bgRFC unit, you can use RfcGetServerContext()
/// to obtain the values that were sent by the backend.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_UNIT_ATTRIBUTES {
    /// If != 0, the backend will write kernel traces, while executing this unit.
    pub kernelTrace: ::std::os::raw::c_short,
    /// If != 0, the backend will write statistic records, while executing this unit.
    pub satTrace: ::std::os::raw::c_short,
    /// If != 0, the backend will keep a "history" for this unit.
    pub unitHistory: ::std::os::raw::c_short,
    /// Used only for type Q: If != 0, the unit will be written to the queue, but not processed. The unit can then be started manually in the ABAP debugger.
    pub lock: ::std::os::raw::c_short,
    /// Per default the backend will check during execution of a unit, whether one of the unit's function modules triggers an explicit or implicit COMMIT WORK. In this case the unit is aborted with an error, because the transactional integrity of this unit cannot be guaranteed. By setting "noCommitCheck" to true (!=0), this behavior can be suppressed, meaning the unit will be executed anyway, even if one of it's function modules "misbehaves" and triggers a COMMIT WORK.
    pub noCommitCheck: ::std::os::raw::c_short,
    /// Sender User (optional). Default is current operating system User.
    pub user: [SAP_UC; 13usize],
    /// Sender Client ("Mandant") (optional). Default is "000".
    pub client: [SAP_UC; 4usize],
    /// Sender Transaction Code (optional). Default is "".
    pub tCode: [SAP_UC; 21usize],
    /// Sender Program (optional). Default is current executable name.
    pub program: [SAP_UC; 41usize],
    /// Sender hostname. Used only when the external program is server. In the client case the nwrfclib fills this automatically.
    pub hostname: [SAP_UC; 41usize],
    /// Sending date in UTC (GMT-0). Used only when the external program is server. In the client case the nwrfclib fills this automatically.
    pub sendingDate: RFC_DATE,
    /// Sending time in UTC (GMT-0). Used only when the external program is server. In the client case the nwrfclib fills this automatically.
    pub sendingTime: RFC_TIME,
}
#[test]
fn bindgen_test_layout__RFC_UNIT_ATTRIBUTES() {
    assert_eq!(::std::mem::size_of::<_RFC_UNIT_ATTRIBUTES>() , 144usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_UNIT_ATTRIBUTES>() , 2usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_UNIT_ATTRIBUTES ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . kernelTrace as
                * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( kernelTrace ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . satTrace as *
                const _ as usize } , 2usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( satTrace ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . unitHistory as
                * const _ as usize } , 4usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( unitHistory ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . lock as *
                const _ as usize } , 6usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( lock ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . noCommitCheck
                as * const _ as usize } , 8usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( noCommitCheck ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . user as *
                const _ as usize } , 10usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( user ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . client as *
                const _ as usize } , 23usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( client ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . tCode as *
                const _ as usize } , 27usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( tCode ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . program as *
                const _ as usize } , 48usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( program ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . hostname as *
                const _ as usize } , 89usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( hostname ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . sendingDate as
                * const _ as usize } , 130usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( sendingDate ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_ATTRIBUTES ) ) . sendingTime as
                * const _ as usize } , 138usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_ATTRIBUTES )
                , "::" , stringify ! ( sendingTime ) ));
}
impl Clone for _RFC_UNIT_ATTRIBUTES {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_UNIT_ATTRIBUTES {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_UNIT_ATTRIBUTES = _RFC_UNIT_ATTRIBUTES;

/// _RFC_UNIT_IDENTIFIER
///
///
/// For convenience combines a unit's ID and its type.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_UNIT_IDENTIFIER {
    /// 'T' for "transactional" behavior (unit is executed synchronously), 'Q' for "queued" behavior (unit is written into a queue and executed asynchronously)
    pub unitType: SAP_UC,
    /// The 32 digit unit ID of the background unit.
    pub unitID: RFC_UNITID,
}
#[test]
fn bindgen_test_layout__RFC_UNIT_IDENTIFIER() {
    assert_eq!(::std::mem::size_of::<_RFC_UNIT_IDENTIFIER>() , 34usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_UNIT_IDENTIFIER )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_UNIT_IDENTIFIER>() , 1usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_UNIT_IDENTIFIER ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_IDENTIFIER ) ) . unitType as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_IDENTIFIER )
                , "::" , stringify ! ( unitType ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_IDENTIFIER ) ) . unitID as *
                const _ as usize } , 1usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_IDENTIFIER )
                , "::" , stringify ! ( unitID ) ));
}
impl Clone for _RFC_UNIT_IDENTIFIER {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_UNIT_IDENTIFIER {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_UNIT_IDENTIFIER = _RFC_UNIT_IDENTIFIER;
#[repr(u32)]
/// _RFC_UNIT_STATE
///
///
/// Used in RfcGetUnitState() for inquiring the processing status of a background Unit that
/// we (or someone else) sent into this backend.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_UNIT_STATE {
    RFC_UNIT_NOT_FOUND = 0,
    RFC_UNIT_IN_PROCESS = 1,
    RFC_UNIT_COMMITTED = 2,
    RFC_UNIT_ROLLED_BACK = 3,
    RFC_UNIT_CONFIRMED = 4,
}
pub use self::_RFC_UNIT_STATE as RFC_UNIT_STATE;
pub type RFC_ABAP_NAME = [RFC_CHAR; 31usize];
pub type RFC_PARAMETER_DEFVALUE = [RFC_CHAR; 31usize];
pub type RFC_PARAMETER_TEXT = [RFC_CHAR; 80usize];
#[repr(u32)]
/// _RFC_CALL_TYPE
///
///
/// Used in RfcGetServerContext() for inquiring the type of
/// an incoming function call from the backend.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_CALL_TYPE {
    RFC_SYNCHRONOUS = 0,
    RFC_TRANSACTIONAL = 1,
    RFC_QUEUED = 2,
    RFC_BACKGROUND_UNIT = 3,
}
pub use self::_RFC_CALL_TYPE as RFC_CALL_TYPE;

/// _RFC_SERVER_CONTEXT
///
///
/// Used in RfcGetServerContext() for obtaining more information about the
/// current incoming function call.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_SERVER_CONTEXT {
    /// Specifies the type of function call. Depending on the value of this field, some of the other fields of this struct may be filled.
    pub type_: RFC_CALL_TYPE,
    /// If type is RFC_TRANSACTIONAL or RFC_QUEUED, this field is filled with the 24 digit TID of the tRFC/qRFC unit.
    pub tid: RFC_TID,
    /// If type is RFC_BACKGROUND_UNIT, this pointer is set to the unit identifier of the LUW. Note: the pointer is valid only during the execution context of your server function.
    pub unitIdentifier: *mut RFC_UNIT_IDENTIFIER,
    /// If type is RFC_BACKGROUND_UNIT, this pointer is set to the unit attributes of the LUW. Note: the pointer is valid only during the execution context of your server function.
    pub unitAttributes: *mut RFC_UNIT_ATTRIBUTES,
}
#[test]
fn bindgen_test_layout__RFC_SERVER_CONTEXT() {
    assert_eq!(::std::mem::size_of::<_RFC_SERVER_CONTEXT>() , 48usize , concat
               ! ( "Size of: " , stringify ! ( _RFC_SERVER_CONTEXT ) ));
    assert_eq! (::std::mem::align_of::<_RFC_SERVER_CONTEXT>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_SERVER_CONTEXT ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SERVER_CONTEXT ) ) . type_ as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_SERVER_CONTEXT ) ,
                "::" , stringify ! ( type_ ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SERVER_CONTEXT ) ) . tid as * const
                _ as usize } , 4usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_SERVER_CONTEXT ) ,
                "::" , stringify ! ( tid ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SERVER_CONTEXT ) ) . unitIdentifier
                as * const _ as usize } , 32usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_SERVER_CONTEXT ) ,
                "::" , stringify ! ( unitIdentifier ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_SERVER_CONTEXT ) ) . unitAttributes
                as * const _ as usize } , 40usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_SERVER_CONTEXT ) ,
                "::" , stringify ! ( unitAttributes ) ));
}
impl Clone for _RFC_SERVER_CONTEXT {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_SERVER_CONTEXT {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_SERVER_CONTEXT = _RFC_SERVER_CONTEXT;

/// _RFC_TYPE_DESC_HANDLE
///
///
/// Handle to a cached metadata description of a structure or table type.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_TYPE_DESC_HANDLE {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_TYPE_DESC_HANDLE() {
    assert_eq!(::std::mem::size_of::<_RFC_TYPE_DESC_HANDLE>() , 8usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_TYPE_DESC_HANDLE )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_TYPE_DESC_HANDLE>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_TYPE_DESC_HANDLE ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_TYPE_DESC_HANDLE ) ) . handle as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_TYPE_DESC_HANDLE )
                , "::" , stringify ! ( handle ) ));
}
impl Clone for _RFC_TYPE_DESC_HANDLE {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_TYPE_DESC_HANDLE {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_TYPE_DESC_HANDLE = *mut _RFC_TYPE_DESC_HANDLE;

/// _RFC_FUNCTION_DESC_HANDLE
///
///
/// Handle to a cached metadata description of a function module.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_FUNCTION_DESC_HANDLE {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_FUNCTION_DESC_HANDLE() {
    assert_eq!(::std::mem::size_of::<_RFC_FUNCTION_DESC_HANDLE>() , 8usize ,
               concat ! (
               "Size of: " , stringify ! ( _RFC_FUNCTION_DESC_HANDLE ) ));
    assert_eq! (::std::mem::align_of::<_RFC_FUNCTION_DESC_HANDLE>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_FUNCTION_DESC_HANDLE )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FUNCTION_DESC_HANDLE ) ) . handle as
                * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_FUNCTION_DESC_HANDLE ) , "::" , stringify ! ( handle )
                ));
}
impl Clone for _RFC_FUNCTION_DESC_HANDLE {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_FUNCTION_DESC_HANDLE {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_FUNCTION_DESC_HANDLE = *mut _RFC_FUNCTION_DESC_HANDLE;

/// _RFC_CLASS_DESC_HANDLE
///
///
/// Handle to a cached metadata description of a class.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_CLASS_DESC_HANDLE {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_CLASS_DESC_HANDLE() {
    assert_eq!(::std::mem::size_of::<_RFC_CLASS_DESC_HANDLE>() , 8usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_CLASS_DESC_HANDLE )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_CLASS_DESC_HANDLE>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_CLASS_DESC_HANDLE ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_DESC_HANDLE ) ) . handle as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_CLASS_DESC_HANDLE
                ) , "::" , stringify ! ( handle ) ));
}
impl Clone for _RFC_CLASS_DESC_HANDLE {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_CLASS_DESC_HANDLE {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_CLASS_DESC_HANDLE = *mut _RFC_CLASS_DESC_HANDLE;

/// RFC_DATA_CONTAINER
///
///
/// Handle to a general data container (structure, table or function module).
#[repr(C)]
#[derive(Debug, Copy)]
pub struct RFC_DATA_CONTAINER {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout_RFC_DATA_CONTAINER() {
    assert_eq!(::std::mem::size_of::<RFC_DATA_CONTAINER>() , 8usize , concat !
               ( "Size of: " , stringify ! ( RFC_DATA_CONTAINER ) ));
    assert_eq! (::std::mem::align_of::<RFC_DATA_CONTAINER>() , 8usize , concat
                ! ( "Alignment of " , stringify ! ( RFC_DATA_CONTAINER ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const RFC_DATA_CONTAINER ) ) . handle as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( RFC_DATA_CONTAINER ) ,
                "::" , stringify ! ( handle ) ));
}
impl Clone for RFC_DATA_CONTAINER {
    fn clone(&self) -> Self { *self }
}
impl Default for RFC_DATA_CONTAINER {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type DATA_CONTAINER_HANDLE = *mut RFC_DATA_CONTAINER;
/// RFC_STRUCTURE_HANDLE
///
///
/// Handle to a data container for a structure.
pub type RFC_STRUCTURE_HANDLE = DATA_CONTAINER_HANDLE;
/// RFC_FUNCTION_HANDLE
///
///
/// Handle to a data container for a function module.
pub type RFC_FUNCTION_HANDLE = DATA_CONTAINER_HANDLE;
/// RFC_TABLE_HANDLE
///
///
/// Handle to a data container for a table.
pub type RFC_TABLE_HANDLE = DATA_CONTAINER_HANDLE;
/// RFC_ABAP_OBJECT_HANDLE
///
///
/// Handle to a data container for an ABAP object instance.
pub type RFC_ABAP_OBJECT_HANDLE = DATA_CONTAINER_HANDLE;

/// _RFC_CONNECTION_HANDLE
///
///
/// Handle to an RFC connection (client connection or server connection).
/// Returned by RfcOpenConnection() or RfcRegisterServer().
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_CONNECTION_HANDLE {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_CONNECTION_HANDLE() {
    assert_eq!(::std::mem::size_of::<_RFC_CONNECTION_HANDLE>() , 8usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_CONNECTION_HANDLE )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_CONNECTION_HANDLE>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_CONNECTION_HANDLE ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CONNECTION_HANDLE ) ) . handle as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_CONNECTION_HANDLE
                ) , "::" , stringify ! ( handle ) ));
}
impl Clone for _RFC_CONNECTION_HANDLE {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_CONNECTION_HANDLE {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_CONNECTION_HANDLE = *mut _RFC_CONNECTION_HANDLE;

/// _RFC_TRANSACTION_HANDLE
///
///
/// Handle to a data container for a tRFC/qRFC LUW.
/// Can be filled with several RFC_FUNCTION_HANDLEs.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_TRANSACTION_HANDLE {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_TRANSACTION_HANDLE() {
    assert_eq!(::std::mem::size_of::<_RFC_TRANSACTION_HANDLE>() , 8usize ,
               concat ! (
               "Size of: " , stringify ! ( _RFC_TRANSACTION_HANDLE ) ));
    assert_eq! (::std::mem::align_of::<_RFC_TRANSACTION_HANDLE>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_TRANSACTION_HANDLE ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_TRANSACTION_HANDLE ) ) . handle as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_TRANSACTION_HANDLE
                ) , "::" , stringify ! ( handle ) ));
}
impl Clone for _RFC_TRANSACTION_HANDLE {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_TRANSACTION_HANDLE {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_TRANSACTION_HANDLE = *mut _RFC_TRANSACTION_HANDLE;

/// _RFC_UNIT_HANDLE
///
///
/// Handle to a data container for a bgRFC LUW.
/// Can be filled with several RFC_FUNCTION_HANDLEs.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_UNIT_HANDLE {
    pub handle: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_UNIT_HANDLE() {
    assert_eq!(::std::mem::size_of::<_RFC_UNIT_HANDLE>() , 8usize , concat ! (
               "Size of: " , stringify ! ( _RFC_UNIT_HANDLE ) ));
    assert_eq! (::std::mem::align_of::<_RFC_UNIT_HANDLE>() , 8usize , concat !
                ( "Alignment of " , stringify ! ( _RFC_UNIT_HANDLE ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_UNIT_HANDLE ) ) . handle as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_UNIT_HANDLE ) ,
                "::" , stringify ! ( handle ) ));
}
impl Clone for _RFC_UNIT_HANDLE {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_UNIT_HANDLE {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_UNIT_HANDLE = *mut _RFC_UNIT_HANDLE;

/// _RFC_CONNECTION_PARAMETER
///
///
/// Structure used for connecting to a backend system via RfcOpenConnection() or
/// RfcRegisterServer(). For a list of supported parameters see these two functions or the file sapnwrfc.ini, which gives a complete list of all possible connection parameters.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_CONNECTION_PARAMETER {
    /// The name of the connection parameter, like ashost, user, client.
    pub name: *const SAP_UC,
    /// The value of the given parameter.
    pub value: *const SAP_UC,
}
#[test]
fn bindgen_test_layout__RFC_CONNECTION_PARAMETER() {
    assert_eq!(::std::mem::size_of::<_RFC_CONNECTION_PARAMETER>() , 16usize ,
               concat ! (
               "Size of: " , stringify ! ( _RFC_CONNECTION_PARAMETER ) ));
    assert_eq! (::std::mem::align_of::<_RFC_CONNECTION_PARAMETER>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_CONNECTION_PARAMETER )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CONNECTION_PARAMETER ) ) . name as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CONNECTION_PARAMETER ) , "::" , stringify ! ( name ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CONNECTION_PARAMETER ) ) . value as
                * const _ as usize } , 8usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CONNECTION_PARAMETER ) , "::" , stringify ! ( value ) ));
}
impl Clone for _RFC_CONNECTION_PARAMETER {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_CONNECTION_PARAMETER {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_CONNECTION_PARAMETER = _RFC_CONNECTION_PARAMETER;

/// _RFC_FIELD_DESC
///
///
/// Structure for reading (RfcGetFieldDescByIndex() or RfcGetFieldDescByName())
/// or defining (RfcAddTypeField()) the properties of a field in a structure/table.
#[repr(C)]
#[derive(Debug, Copy)]
pub struct _RFC_FIELD_DESC {
    /// Field name, null-terminated string
    pub name: RFC_ABAP_NAME,
    /// Field data type
    pub type_: RFCTYPE,
    /// Field length in bytes in a 1-byte-per-SAP_CHAR system
    pub nucLength: ::std::os::raw::c_uint,
    /// Field offset in bytes in a 1-byte-per-SAP_CHAR system
    pub nucOffset: ::std::os::raw::c_uint,
    /// Field length in bytes in a 2-byte-per-SAP_CHAR system
    pub ucLength: ::std::os::raw::c_uint,
    /// Field offset in bytes in a 2-byte-per-SAP_CHAR system
    pub ucOffset: ::std::os::raw::c_uint,
    /// If the field is of type "packed number" (BCD), this member gives the number of decimals.
    pub decimals: ::std::os::raw::c_uint,
    /// Pointer to an RFC_STRUCTURE_DESC structure for the nested sub-type if the type field is RFCTYPE_STRUCTURE or RFCTYPE_TABLE */
    pub typeDescHandle: RFC_TYPE_DESC_HANDLE,
    /// Not used by the NW RFC library. This parameter can be used by applications that want to store additional information in the repository (like F4 help values, e.g.).
    pub extendedDescription: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_FIELD_DESC() {
    assert_eq!(::std::mem::size_of::<_RFC_FIELD_DESC>() , 72usize , concat ! (
               "Size of: " , stringify ! ( _RFC_FIELD_DESC ) ));
    assert_eq! (::std::mem::align_of::<_RFC_FIELD_DESC>() , 8usize , concat !
                ( "Alignment of " , stringify ! ( _RFC_FIELD_DESC ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . name as * const _
                as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( name ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . type_ as * const _
                as usize } , 32usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( type_ ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . nucLength as *
                const _ as usize } , 36usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( nucLength ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . nucOffset as *
                const _ as usize } , 40usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( nucOffset ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . ucLength as * const
                _ as usize } , 44usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( ucLength ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . ucOffset as * const
                _ as usize } , 48usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( ucOffset ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . decimals as * const
                _ as usize } , 52usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( decimals ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . typeDescHandle as *
                const _ as usize } , 56usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( typeDescHandle ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_FIELD_DESC ) ) . extendedDescription
                as * const _ as usize } , 64usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_FIELD_DESC ) ,
                "::" , stringify ! ( extendedDescription ) ));
}
impl Clone for _RFC_FIELD_DESC {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_FIELD_DESC {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_FIELD_DESC = _RFC_FIELD_DESC;
#[repr(u32)]
/// _RFC_DIRECTION
///
///
/// Used in #RFC_PARAMETER_DESC::direction for specifying the direction of a function module parameter.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_DIRECTION {
    RFC_IMPORT = 1,
    RFC_EXPORT = 2,
    RFC_CHANGING = 3,
    RFC_TABLES = 7,
}
pub use self::_RFC_DIRECTION as RFC_DIRECTION;

/// _RFC_PARAMETER_DESC
///
///
/// Structure for reading (RfcGetParameterDescByIndex() or RfcGetParameterDescByName())
/// or defining (RfcAddParameter()) the properties of a parameter in a function module.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_PARAMETER_DESC {
    /// Parameter name, null-terminated string
    pub name: RFC_ABAP_NAME,
    /// Parameter data type
    pub type_: RFCTYPE,
    /// Specifies whether the parameter is an input, output or bi-directional parameter
    pub direction: RFC_DIRECTION,
    /// Parameter length in bytes in a 1-byte-per-SAP_CHAR system
    pub nucLength: ::std::os::raw::c_uint,
    /// Parameter length in bytes in a 2-byte-per-SAP_CHAR system
    pub ucLength: ::std::os::raw::c_uint,
    /// Gives the number of decimals in case or a packed number (BCD)
    pub decimals: ::std::os::raw::c_uint,
    /// Handle to the structure definition in case this parameter is a structure or table
    pub typeDescHandle: RFC_TYPE_DESC_HANDLE,
    /// Default value as defined in SE37
    pub defaultValue: RFC_PARAMETER_DEFVALUE,
    /// Description text of the parameter as defined in SE37. Null-terminated string.
    pub parameterText: RFC_PARAMETER_TEXT,
    /// Specifies whether this parameter is defined as optional in SE37. 1 is optional, 0 non-optional
    pub optional: RFC_BYTE,
    /// This field can be used by the application programmer (i.e. you) to store arbitrary extra information.
    pub extendedDescription: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_PARAMETER_DESC() {
    assert_eq!(::std::mem::size_of::<_RFC_PARAMETER_DESC>() , 184usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_PARAMETER_DESC )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_PARAMETER_DESC>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_PARAMETER_DESC ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . name as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( name ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . type_ as *
                const _ as usize } , 32usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( type_ ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . direction as *
                const _ as usize } , 36usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( direction ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . nucLength as *
                const _ as usize } , 40usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( nucLength ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . ucLength as *
                const _ as usize } , 44usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( ucLength ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . decimals as *
                const _ as usize } , 48usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( decimals ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . typeDescHandle
                as * const _ as usize } , 56usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( typeDescHandle ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . defaultValue as
                * const _ as usize } , 64usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( defaultValue ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . parameterText
                as * const _ as usize } , 95usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( parameterText ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) . optional as *
                const _ as usize } , 175usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( optional ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_PARAMETER_DESC ) ) .
                extendedDescription as * const _ as usize } , 176usize ,
                concat ! (
                "Alignment of field: " , stringify ! ( _RFC_PARAMETER_DESC ) ,
                "::" , stringify ! ( extendedDescription ) ));
}
impl Clone for _RFC_PARAMETER_DESC {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_PARAMETER_DESC {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_PARAMETER_DESC = _RFC_PARAMETER_DESC;

/// _RFC_EXCEPTION_DESC
///
///
/// Structure for reading (RfcGetExceptionDescByIndex() or RfcGetExceptionDescByName())
/// or defining (RfcAddException()) the properties of an exception key in a function module.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_EXCEPTION_DESC {
    /// Exception key
    pub key: [SAP_UC; 128usize],
    /// Error message (exception text as defined in SE37)
    pub message: [SAP_UC; 512usize],
}
#[test]
fn bindgen_test_layout__RFC_EXCEPTION_DESC() {
    assert_eq!(::std::mem::size_of::<_RFC_EXCEPTION_DESC>() , 640usize ,
               concat ! ( "Size of: " , stringify ! ( _RFC_EXCEPTION_DESC )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_EXCEPTION_DESC>() , 1usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_EXCEPTION_DESC ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_EXCEPTION_DESC ) ) . key as * const
                _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_EXCEPTION_DESC ) ,
                "::" , stringify ! ( key ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_EXCEPTION_DESC ) ) . message as *
                const _ as usize } , 128usize , concat ! (
                "Alignment of field: " , stringify ! ( _RFC_EXCEPTION_DESC ) ,
                "::" , stringify ! ( message ) ));
}
impl Clone for _RFC_EXCEPTION_DESC {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_EXCEPTION_DESC {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_EXCEPTION_DESC = _RFC_EXCEPTION_DESC;
#[repr(u32)]
/// _RFC_CLASS_ATTRIBUTE_TYPE
///
///
/// Determines the type of an ABAP Object attribute.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_CLASS_ATTRIBUTE_TYPE {
    RFC_CLASS_ATTRIBUTE_INSTANCE = 0,
    RFC_CLASS_ATTRIBUTE_CLASS = 1,
    RFC_CLASS_ATTRIBUTE_CONSTANT = 2,
}
pub use self::_RFC_CLASS_ATTRIBUTE_TYPE as RFC_CLASS_ATTRIBUTE_TYPE;
pub type RFC_CLASS_ATTRIBUTE_DEFVALUE = [RFC_CHAR; 31usize];
pub type RFC_CLASS_NAME = [RFC_CHAR; 31usize];
pub type RFC_CLASS_ATTRIBUTE_DESCRIPTION = [RFC_CHAR; 512usize];

/// _RFC_CLASS_ATTRIBUTE_DESC
///
///
/// Structure for reading (RfcGetParameterDescByIndex() or RfcGetParameterDescByName())
/// or defining (RfcAddParameter()) the properties of a parameter in a function module.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_CLASS_ATTRIBUTE_DESC {
    /// Attribute name, null-terminated string
    pub name: RFC_ABAP_NAME,
    /// Attribute data type
    pub type_: RFCTYPE,
    /// Attribute length in bytes in a 1-byte-per-SAP_CHAR system
    pub nucLength: ::std::os::raw::c_uint,
    /// Attribute length in bytes in a 2-byte-per-SAP_CHAR system
    pub ucLength: ::std::os::raw::c_uint,
    /// Gives the number of decimals in case this attribute is a packed number (BCD)
    pub decimals: ::std::os::raw::c_uint,
    /// Handle to the structure definition in case this attribute is a structure or table
    pub typeDescHandle: RFC_TYPE_DESC_HANDLE,
    /// Default value as defined in SE37
    pub defaultValue: RFC_CLASS_ATTRIBUTE_DEFVALUE,
    /// Declaring class
    pub declaringClass: RFC_CLASS_NAME,
    /// Attribute description, null terminated, may be null
    pub description: RFC_CLASS_ATTRIBUTE_DESCRIPTION,
    /// This attribute is read only if isReadOnly != 0
    pub isReadOnly: ::std::os::raw::c_uint,
    /// The attribute type tells you, whether this attribute is an instance attribute, a class attribute or a constant.
    pub attributeType: RFC_CLASS_ATTRIBUTE_TYPE,
    /// This field can be used by the application programmer (i.e. you) to store arbitrary extra information.
    pub extendedDescription: *mut ::std::os::raw::c_void,
}
#[test]
fn bindgen_test_layout__RFC_CLASS_ATTRIBUTE_DESC() {
    assert_eq!(::std::mem::size_of::<_RFC_CLASS_ATTRIBUTE_DESC>() , 648usize ,
               concat ! (
               "Size of: " , stringify ! ( _RFC_CLASS_ATTRIBUTE_DESC ) ));
    assert_eq! (::std::mem::align_of::<_RFC_CLASS_ATTRIBUTE_DESC>() , 8usize ,
                concat ! (
                "Alignment of " , stringify ! ( _RFC_CLASS_ATTRIBUTE_DESC )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) . name as *
                const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( name ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) . type_ as
                * const _ as usize } , 32usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( type_ ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) . nucLength
                as * const _ as usize } , 36usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( nucLength )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) . ucLength
                as * const _ as usize } , 40usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( ucLength )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) . decimals
                as * const _ as usize } , 44usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( decimals )
                ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                typeDescHandle as * const _ as usize } , 48usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! (
                typeDescHandle ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                defaultValue as * const _ as usize } , 56usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! (
                defaultValue ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                declaringClass as * const _ as usize } , 87usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! (
                declaringClass ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                description as * const _ as usize } , 118usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( description
                ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                isReadOnly as * const _ as usize } , 632usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! ( isReadOnly
                ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                attributeType as * const _ as usize } , 636usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! (
                attributeType ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_CLASS_ATTRIBUTE_DESC ) ) .
                extendedDescription as * const _ as usize } , 640usize ,
                concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_CLASS_ATTRIBUTE_DESC ) , "::" , stringify ! (
                extendedDescription ) ));
}
impl Clone for _RFC_CLASS_ATTRIBUTE_DESC {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_CLASS_ATTRIBUTE_DESC {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_CLASS_ATTRIBUTE_DESC = _RFC_CLASS_ATTRIBUTE_DESC;
pub type RFC_SERVER_FUNCTION =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               funcHandle:
                                                   RFC_FUNCTION_HANDLE,
                                               errorInfo: *mut RFC_ERROR_INFO)
                              -> RFC_RC>;
pub type RFC_ON_CHECK_TRANSACTION =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               tid: *const SAP_UC) -> RFC_RC>;
pub type RFC_ON_COMMIT_TRANSACTION =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               tid: *const SAP_UC) -> RFC_RC>;
pub type RFC_ON_ROLLBACK_TRANSACTION =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               tid: *const SAP_UC) -> RFC_RC>;
pub type RFC_ON_CONFIRM_TRANSACTION =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               tid: *const SAP_UC) -> RFC_RC>;
pub type RFC_FUNC_DESC_CALLBACK =
    ::std::option::Option<unsafe extern "C" fn(functionName: *const SAP_UC,
                                               rfcAttributes: RFC_ATTRIBUTES,
                                               funcDescHandle:
                                                   *mut RFC_FUNCTION_DESC_HANDLE)
                              -> RFC_RC>;
pub type RFC_PM_CALLBACK =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               functionName: *const SAP_UC,
                                               eppBuffer: *mut SAP_RAW,
                                               eppBufferSize: usize,
                                               eppLength: *mut usize)
                              -> RFC_RC>;
pub type RFC_ON_CHECK_UNIT =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               identifier:
                                                   *const RFC_UNIT_IDENTIFIER)
                              -> RFC_RC>;
pub type RFC_ON_COMMIT_UNIT =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               identifier:
                                                   *const RFC_UNIT_IDENTIFIER)
                              -> RFC_RC>;
pub type RFC_ON_ROLLBACK_UNIT =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               identifier:
                                                   *const RFC_UNIT_IDENTIFIER)
                              -> RFC_RC>;
pub type RFC_ON_CONFIRM_UNIT =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               identifier:
                                                   *const RFC_UNIT_IDENTIFIER)
                              -> RFC_RC>;
pub type RFC_ON_GET_UNIT_STATE =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               identifier:
                                                   *const RFC_UNIT_IDENTIFIER,
                                               unitState: *mut RFC_UNIT_STATE)
                              -> RFC_RC>;
pub type RFC_ON_PASSWORD_CHANGE =
    ::std::option::Option<unsafe extern "C" fn(sysId: *const SAP_UC,
                                               user: *const SAP_UC,
                                               client: *const SAP_UC,
                                               password: *mut SAP_UC,
                                               passwordLength:
                                                   ::std::os::raw::c_uint,
                                               newPassword: *mut SAP_UC,
                                               newPasswordLength:
                                                   ::std::os::raw::c_uint,
                                               cause: *mut RFC_ERROR_INFO)
                              -> RFC_RC>;
pub type RFC_ON_AUTHORIZATION_CHECK =
    ::std::option::Option<unsafe extern "C" fn(rfcHandle:
                                                   RFC_CONNECTION_HANDLE,
                                               secAttributes:
                                                   *mut RFC_SECURITY_ATTRIBUTES,
                                               errorInfo: *mut RFC_ERROR_INFO)
                              -> RFC_RC>;
extern "C" {
    /// Initialization of internal variables
    ///
    ///
    /// Sets up the internal state of the sapnwrfc library and initially reads
    /// and evaluates the sapnwrfc.ini file. In case the content or location of
    /// the sapnwrfc.ini file changes later on, reload it via RfcReloadIniFile().
    /// %RfcInit() no longer needs to be called explicitly. The RFC library does
    /// this automatically on DLL load.
    /// \return RFC_RC
    pub fn RfcInit() -> RFC_RC;
}
extern "C" {
    /// Get information about currently loaded sapnwrfc library.
    ///
    ///
    /// Fills the provided unsigneds with the SAP release values, e.g. *majorVersion = 7,
    /// *minorVersion = 10, *patchLevel = 42.
    /// \out *majorVersion
    /// \out *minorVersion
    /// \out *patchLevel
    /// \return Version information in string format.
    /// \warning Don't free the returned SAP_UC pointer, it's static memory...
    pub fn RfcGetVersion(majorVersion: *mut ::std::os::raw::c_uint,
                         minorVersion: *mut ::std::os::raw::c_uint,
                         patchLevel: *mut ::std::os::raw::c_uint)
     -> *const SAP_UC;
}
extern "C" {
    /// Sets the directory in which to search for the sapnwrfc.ini file.
    ///
    ///
    /// By default the sapnwrfc library searches for the sapnwrfc.ini in the current
    /// working directory of the process. If you want to keep it in a different directory,
    /// use this function to tell the sapnwrfc library about the new path.
    /// Note: After you have changed the directory, the NW RFC lib automatically loads
    /// the contents of the new sapnwrfc.ini file from that directory.
    ///
    /// \in *pathName The full (absolute) path of the directory, in which the sapnwrfc
    /// library should look for the sapnwrfc.ini file. A path relative to the current
    /// working directory of the process also works.
    /// \out *errorInfo Detail information in case anything goes wrong.
    /// \return RFC_RC
    pub fn RfcSetIniPath(pathName: *const SAP_UC,
                         errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Loads the contents of the sapnwrfc.ini file into memory.
    ///
    ///
    /// Searches the directory given by RfcSetIniPath() (or the current working directory)
    /// for the file sapnwrfc.ini and loads its contents into memory.
    ///
    /// \out *errorInfo Detail information in case anything goes wrong. Note: if a file
    /// with the name sapnwrfc.ini does not exist in the given directory, this is not
    /// considered an error! Default settings are used in this case.
    /// \return RFC_RC
    pub fn RfcReloadIniFile(errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the current trace level of the specified RFC connection or destination to the new value.
    ///
    ///
    /// Note: If both of connection and destination are NULL, this function sets the "global"
    /// trace level. See below.
    /// \in connection A handle to a currently open RFC connection (client or server connection).
    /// The new trace level will be effective immediately.
    /// \in *destination Null-terminated string specifying a client or server destination as defined
    /// via a DEST=... entry in sapnwrfc.ini. The new trace level will be used for new connections
    /// to that destination opened after the %RfcSetTraceLevel() call. Already existing connections to
    /// that destination will not be effected.
    /// \in traceLevel The new trace level. Must be between 0 and 3. The meaning of those four values
    /// is as follows:
    /// - 0: Off. Only severe errors are logged to the dev_rfc.trc file.
    /// - 1: Brief. All API calls (except for the setter and getter functions) and important attributes
    /// like codepages, RFC headers, logon parameters are traced. Trace is written to a file named
    /// rfc&lt;pid&gt;.trc or rfc&lt;pid&gt;_&lt;tid&gt;.trc, depending on whether tracing is done
    /// on a "per-process" basis or a "per-thread" basis. &lt;pid&gt; is the current process ID,
    /// &lt;tid&gt; the current thread ID.
    /// - 2: Verbose. In addition to 1, the values of the "scalar" RFC parameters as well as the contents
    /// of the network containers are traced. Scalar parameters are primitive types (CHAR, INT, FLOAT, etc)
    /// and flat structures.
    /// - 3: Full. In addition to 2 the contents of nested structures and tables as well as all API calls
    /// of setter and getter functions are traced.
    /// \out *errorInfo Detail information in case the specified connection or destination does not exist.
    /// \return RFC_OK, RFC_INVALID_HANDLE or RFC_INVALID_PARAMETER
    ///
    /// Note: In general RFC trace can be activated/deactivated in 6 different ways:
    /// - By setting the parameter RFC_TRACE=[0|1|2|3] in the DEFAULT section of the sapnwrfc.ini file.
    /// This value applies to all destinations, for which no explicit trace level has been set.
    /// ("Global" trace level.)
    /// - By setting the parameter TRACE=[0|1|2|3] in a specific destination section of sapnwrfc.ini.
    /// it applies to that destination only and overrules the "global" trace level from the DEFAULT section.
    /// - By setting the environment variable RFC_TRACE=[0|1|2|3]. This overrules the setting from the
    /// DEFAULT section of sapnwrfc.ini.
    /// - Via %RfcSetTraceLevel(). If connection and destination are NULL, this function sets the global
    /// trace level and overrules the value from the DEFAULT section of sapnwrfc.ini as well as the environment
    /// variable RFC_TRACE. If connection is non-NULL, it sets the trace level for the current connection only,
    /// and if destination is non-NULL, it sets the trace level for that destination, overruling the value from
    /// this destination's section in the sapnwrfc.ini file.
    /// - By passing a {name=TRACE, value=[0|1|2|3]} pair in the RFC_CONNECTION_PARAMETER array used in
    /// RfcOpenConnection(), RfcRegisterServer() or RfcStartServer(). If that RFC_CONNECTION_PARAMETER array
    /// also contains a {name=DEST, value=...} pair, the trace parameter from the array overrules the value
    /// from this destination's sapnwrfc.ini section.
    /// - In case the program is a server program: by activating the trace flag for the corresponding destination
    /// in SM59. The trace setting on backend side is then "inherited" by the external side.
    ///
    /// Note: For more information on trace settings see the sample sapnwrfc.ini file contained in the demo folder.
    pub fn RfcSetTraceLevel(connection: RFC_CONNECTION_HANDLE,
                            destination: *mut SAP_UC,
                            traceLevel: ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Changes the character encoding to be used in trace files.
    ///
    ///
    /// This function has the same effect as the sapnwrfc.ini parameter RFC_TRACE_ENCODING.
    /// See the documentation of that parameter in the sample ini file contained in the
    /// /demo directory of the NW RFC SDK.
    ///
    /// Note: This API call affects only new trace files that will be opened after the call.
    /// The character encoding of already existing trace files is not changed in order to
    /// prevent confusion and garbage data...
    ///
    ///
    /// \in *traceEncoding The new encoding. Possible values are "UTF-16", "UTF-8" and
    /// "DEFAULT". On Windows UTF-16 is recommended for faster performance. "DEFAULT" corresponds
    /// to the operating system's default character encoding, which is CP1252 or ISO-8859-1 on
    /// most Windows systems and UTF-8 on most Linux systems.
    /// \out *errorInfo Detail information in case of an invalid traceEncoding input.
    /// \return RFC_RC
    pub fn RfcSetTraceEncoding(traceEncoding: *mut SAP_UC,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Changes the directory where the NW RFC lib should write trace files.
    ///
    ///
    /// This function has the same effect as the sapnwrfc.ini parameter RFC_TRACE_DIR.
    /// See the documentation of that parameter in the sample ini file contained in the
    /// /demo directory of the NW RFC SDK.
    ///
    /// Note: This API call affects only new trace files that will be opened after the call.
    /// The directory of already existing trace files is not changed in order to
    /// prevent confusion and garbage data...
    ///
    ///
    /// \in *traceDir The new directory. Can be an absolute or relative path name.
    /// The directory needs to exist prior to calling this API. The NW RFC lib will not
    /// attempt to create non-existing directories.
    /// \out *errorInfo Detail information in case of an invalid traceEncoding input.
    /// \return RFC_RC
    pub fn RfcSetTraceDir(traceDir: *mut SAP_UC,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Changes the way the NW RFC lib writes trace files.
///
///
/// This function has the same effect as the sapnwrfc.ini parameter RFC_TRACE_TYPE.
/// See the documentation of that parameter in the sample ini file contained in the
/// /demo directory of the NW RFC SDK.
///
/// Note: This API call closes currently open trace files and then changes to
/// "one file per process" or one "file per thread".
/// If the NW RFC lib is already using the given trace type, it does nothing.
///
///
/// \in *traceType Must be either "PROCESS" or "THREAD".
/// \out *errorInfo Detail information in case of an invalid traceEncoding input.
/// \return RFC_RC
    pub fn RfcSetTraceType(traceType: *mut SAP_UC,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Converts data in UTF-8 format to SAP_UC strings.
///
///
/// \in *utf8 Pointer to UTF-8 data to be converted
/// \in utf8Length Number of bytes to convert
/// \out *sapuc Pre-allocated output buffer, which will receive the result. Output will be null-terminated.
/// \inout *sapucSize Needs to be filled with the size of the given output buffer in SAP_UC characters.
/// If the given buffer turns out to be too small (return code RFC_BUFFER_TOO_SMALL), it will be filled
/// with the required buffer size that would be necessary to convert the given input data.
/// \out *resultLength If the output buffer was large enough, resultLength will be filled with the
/// length of the output string in SAP_UC characters.
/// \out *errorInfo Will be filled with additional error information in case of an error.
/// \return RFC_RC
    pub fn RfcUTF8ToSAPUC(utf8: *const RFC_BYTE,
                          utf8Length: ::std::os::raw::c_uint,
                          sapuc: *mut SAP_UC,
                          sapucSize: *mut ::std::os::raw::c_uint,
                          resultLength: *mut ::std::os::raw::c_uint,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Converts data in SAP_UC format to UTF-8 format
///
///
/// \in *sapuc Pointer to SAP_UC data to be converted
/// \in sapucLength Number of characters to convert
/// \out *utf8 Pre-allocated output buffer, which will receive the result. Output will be null-terminated.
/// \inout *utf8Size Needs to be filled with the size of the given output buffer in bytes.
/// If the given buffer turns out to be too small (return code RFC_BUFFER_TOO_SMALL), it will be filled
/// with the required buffer size that would be necessary to convert the given input data.
/// \out *resultLength If the output buffer was large enough, resultLength will be filled with the
/// length of the output string in bytes.
/// \out *errorInfo Will be filled with additional error information in case of an error.
/// \return RFC_OK or RFC_BUFFER_TOO_SMALL
    pub fn RfcSAPUCToUTF8(sapuc: *const SAP_UC,
                          sapucLength: ::std::os::raw::c_uint,
                          utf8: *mut RFC_BYTE,
                          utf8Size: *mut ::std::os::raw::c_uint,
                          resultLength: *mut ::std::os::raw::c_uint,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Converts an RFC_RC return code to a human readable string for logging purposes.
///
///
/// \in rc Return code to covert to string
/// \return String representation of the return code
/// \warning Don't free the returned SAP_UC pointer -- its's static memory...
    pub fn RfcGetRcAsString(rc: RFC_RC) -> *const SAP_UC;
}
extern "C" {
    /// Converts an RFCTYPE data type indicator to a human readable string for logging purposes.
///
///
/// \in type Data type indicator to convert
/// \return String representation of the type
/// \warning Don't free the returned SAP_UC pointer -- its's static memory...
    pub fn RfcGetTypeAsString(type_: RFCTYPE) -> *const SAP_UC;
}
extern "C" {
    /// Converts an RFC_DIRECTION direction indicator to a human readable string for logging purposes.
///
///
/// \in direction Direction indicator to convert
/// \return String representation of the direction
/// \warning Don't free the returned SAP_UC pointer -- its's static memory...
    pub fn RfcGetDirectionAsString(direction: RFC_DIRECTION) -> *const SAP_UC;
}
extern "C" {
    /// Converts a 2-char SAP language code to the 1-char SAP language code.
///
///
/// \in *laiso Pointer to the 2-char array with SAP LAISO code to convert
/// \out *lang Pointer to the 1 char for SAP SPRAS key
/// \out *errorInfo Will be filled with additional error information in case of an error.
/// \return RFC_RC RFC_OK or RFC_INVALID_PARAMETER in case of an error
/// \warning The SAP LAISO code is not 100% ISO639_1 compliant - see also ABAP table T002X columns SPRAS/LAISO for details
    pub fn RfcLanguageIsoToSap(laiso: *const SAP_UC, lang: *mut SAP_UC,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Converts a 1-char SAP language key to the 2-char SAP language code.
///
///
/// \in *lang Pointer to the 1 char with SAP SPRAS key to convert
/// \out *laiso Pointer to the 2-char array for SAP LAISO code
/// \out *errorInfo Will be filled with additional error information in case of an error.
/// \return RFC_RC RFC_OK or RFC_INVALID_PARAMETER in case of an error
/// \warning The SAP LAISO code is not 100% ISO639_1 compliant - see also ABAP table T002X columns SPRAS/LAISO for details
    pub fn RfcLanguageSapToIso(lang: *const SAP_UC, laiso: *mut SAP_UC,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Opens an RFC client connection for invoking ABAP function modules in an R/3 backend.
///
///
/// Opens a client connection to an SAP System. The connectionParams may contain the following name-value pairs:
/// - client, user, passwd, lang, trace
///
/// and additionally one of
/// -# Direct application server logon: ashost, sysnr.
/// -# Logon with load balancing: mshost, msserv, sysid, group.\n
/// msserv is needed only, if the service of the message server is
/// not defined as sapms<SYSID> in /etc/services.
///
/// When logging on with SNC, user&passwd are to be replaced by
/// - snc_qop, snc_myname, snc_partnername and optionally snc_lib.
///
/// (If snc_lib is not specified, the RFC library uses the "global" GSS library
/// defined via environment variable SNC_LIB.)
///
/// When logging on with SSO Ticket, you can use mysapsso2 instead of user&passwd.
/// The old SSO format (mysapsso) is no longer supported.
///
/// Alternatively the connection parameters can be defined in the config file
/// sapnwrfc.ini. In this case you just pass the parameter dest=... and all
/// parameters that are missing in the sapnwrfc.ini entry into %RfcOpenConnection().
///
/// For a complete list of logon parameters to be used in connectionParams as well as in the
/// sapnwrfc.ini file, see the sample sapnwrfc.ini file in the SDK's demo folder.
///
/// If the logon was ok, %RfcOpenConnection() returns a client connection handle, which can be used in RfcInvoke().
/// Otherwise the return value is NULL and errorInfo contains a detailed error description.
/// errorInfo->code will be one of:
/// - RFC_INVALID_PARAMETER			One of the connectionParams was invalid
/// - RFC_COMMUNICATION_FAILURE		Something is wrong with the network or network settings
/// - RFC_LOGON_FAILURE				Invalid user/password/ticket/certificate
/// - RFC_ABAP_RUNTIME_FAILURE		Something is wrong with the R/3 backend
/// - RFC_MEMORY_INSUFFICIENT		A malloc failed when trying to allocate a temporary buffer
///
///
/// \in *connectionParams An array of RFC_CONNECTION_PARAMETERs with the names as described above
/// and the values as necessary in your landscape.
/// \in paramCount Number of parameters in the above array.
/// \out *errorInfo Returns more error details, if the connect attempt fails.
/// \return A handle to an RFC client connection that can be used for invoking ABAP function modules in the backend.
    pub fn RfcOpenConnection(connectionParams:
                                 *const RFC_CONNECTION_PARAMETER,
                             paramCount: ::std::os::raw::c_uint,
                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CONNECTION_HANDLE;
}
extern "C" {
    /// Registers a server connection at an SAP gateway.
///
///
/// The connectionParams may contain the following name-value pairs:
/// - gwhost, gwserv, program_id, trace, and the parameters for SNC communication as in RfcOpenConnection().
///
/// Program_id corresponds to an RFC destination in SM59 of type "T" in registration mode.
///
/// For a complete list of logon parameters to be used in connectionParams as well as in the
/// sapnwrfc.ini file, see the sample sapnwrfc.ini file in the SDK's demo folder.
///
/// If the connection registration was ok, %RfcRegisterServer() returns a server connection handle, which can
/// be used in RfcListenAndDispatch().
/// Otherwise the return value is NULL and errorInfo contains information similar to the RfcOpenConnection() case.
///
///
/// \in *connectionParams An array of RFC_CONNECTION_PARAMETERs with the names as described above
/// and the values as necessary in your landscape.
/// \in paramCount Number of parameters in the above array.
/// \out *errorInfo Returns more error details, if the connect attempt fails.
/// \return A handle to an RFC server connection that can be used for listening for function module requests from the backend.
    pub fn RfcRegisterServer(connectionParams:
                                 *const RFC_CONNECTION_PARAMETER,
                             paramCount: ::std::os::raw::c_uint,
                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CONNECTION_HANDLE;
}
extern "C" {
    /// Allows a program to be used as an RFC server which is started by the backend on demand.
///
///
/// This API needs to be called, if the server program is to be started by the R/3 application server.
/// (RFC destination in SM59 of type "T" in startup mode.)
/// argc and argv are the inputs of the mainU function. The R/3 application server passes the correct command line to
/// the program, when starting it up, so you only need to forward these two parameters to %RfcStartServer().
/// connectionParams is optional and is only needed, if you want to add additional logon parameters to the
/// ones coming from the command line, e.g for activating trace.
///
/// Like RfcRegisterServer(), the function returns a server connection handle that can be used in RfcListenAndDispatch().
/// The mechanism of this kind of RFC destination thus works as follows:
/// -# The R/3 application server opens a telnet connection to the host, where your server program is located, and
/// starts the program with the necessary logon parameters. (Or creates a child process, if the startup
/// method is "Start on application server".)
/// -# Your server program calls RfcStartServer, which opens an RFC connection back to the R/3 system.
/// -# The R/3 system then makes the function call over that RFC connection.
///
/// The main differences of "startup mode" compared to the "registration mode" are:
/// - Advantage: no logon parameters need to be maintained in the server program. (Unless you want to open
/// an additional client connection for looking up function module metadata (RFC_FUNCTION_DESC_HANDLEs) in the
/// R/3 DDIC.)
/// - Disadvantage: every single function call creates a new process and a telnet connection in addition to
/// the actual RFC connection.
///
///
/// \in argc From mainU() (command line supplied by backend)
/// \in **argv From mainU() (command line supplied by backend)
/// \in *connectionParams May optionally contain additional logon parameters
/// \in paramCount Length of the connection parameter array above
/// \out *errorInfo Returns more error details, if the connect attempt fails.
/// \return A handle to an RFC server connection that can be used for listening for function module requests from the backend.
    pub fn RfcStartServer(argc: ::std::os::raw::c_int, argv: *mut *mut SAP_UC,
                          connectionParams: *const RFC_CONNECTION_PARAMETER,
                          paramCount: ::std::os::raw::c_uint,
                          errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CONNECTION_HANDLE;
}
extern "C" {
    /// Closes an RFC connection
///
///
/// Can be used to close client connections as well as server connections, when they are no longer needed.
///
///
/// \in rfcHandle Connection to be closed
/// \out *errorInfo Error details in case closing the connection fails. (Can usually be ignored...)
/// \return RFC_RC
    pub fn RfcCloseConnection(rfcHandle: RFC_CONNECTION_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Checks an RFC connection
///
///
/// Can be used to check whether a client/server connection has already been closed,
/// or whether the NW RFC library still "considers" the connection to be open.
/// Note that this does not guarantee that the connection is indeed still alive:
/// A firewall may silently have closed the connection without notifying the endpoints.
/// If you want to find out, whether the connection is still alive, you'll have to
/// use the more expensive RfcPing().
///
///
/// \in rfcHandle Connection to be checked
/// \out *isValid 1, if the connection is still found in the internal connection management, 0 otherwise.
/// \out *errorInfo Error details in case the connection is invalid.
/// \return RFC_RC
    pub fn RfcIsConnectionHandleValid(rfcHandle: RFC_CONNECTION_HANDLE,
                                      isValid: *mut ::std::os::raw::c_int,
                                      errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// RFC_RC SAP_API RfcResetServerContext
///
///
/// Resets the SAP server context ("user context / ABAP session context") associated with the given client
/// connection, but does not close the connection.
///
///
/// \in rfcHandle The client connection, whose server context is to be reset.
/// \out *errorInfo Error details in case resetting the server context fails. (Better close the connection in that case.)
/// \return RFC_RC
    pub fn RfcResetServerContext(rfcHandle: RFC_CONNECTION_HANDLE,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Ping the remote communication partner through the passed connection handle.
///
///
/// Sends a ping to the backend in order to check, whether the connection is still alive.
/// Can be used on both, client connections as well as server connections.
/// \warning Do not use inside a server function implementation.
///
///
/// \in rfcHandle The connection to check
/// \out *errorInfo More error details in case the connection is broken.
/// \return RFC_RC
    pub fn RfcPing(rfcHandle: RFC_CONNECTION_HANDLE,
                   errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns details about the current client or server connection.
///
///
/// Consider that in case you are a server and call RfcListenAndDispatch(), the partner fields
/// of the attributes will be cleared. The reason is, although we might be only connected to a
/// gateway of one application server, the function module can be also called from the other
/// application servers of the system if configured accordingly in the SM59 destination.
///
/// I.e. expect only valid partner information from within a function module. Outside of the
/// function module, e.g. in the loop where RfcListenAndDispatch is called, you will get
/// cleared partner information in most of the cases except case RFC_OK, which means that you
/// were just called by an application server.
///
/// See documentation of RFC_ATTRIBUTES.
///
///
/// \in rfcHandle RFC connection
/// \out *attr Information about the current connection and the communication partner on the other side.
/// \out *errorInfo Additional error information (e.g. connection already closed).
/// \return RFC_RC
    pub fn RfcGetConnectionAttributes(rfcHandle: RFC_CONNECTION_HANDLE,
                                      attr: *mut RFC_ATTRIBUTES,
                                      errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Inside a server function, returns details about the current execution context.
///
///
/// See documentation of RFC_SERVER_CONTEXT.
///
///
/// \in rfcHandle RFC server connection
/// \out *context Information about the current server execution context.
/// \out *errorInfo Additional error information (e.g. connection is not a server connection).
/// \return RFC_RC
    pub fn RfcGetServerContext(rfcHandle: RFC_CONNECTION_HANDLE,
                               context: *mut RFC_SERVER_CONTEXT,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Gets the partner's SSO2 ticket, if any.
///
///
/// Can be used only with a server connection inside the implementation of a server function.
///
///
/// \in rfcHandle RFC server connection
/// \out *ssoTicket Pre-allocated buffer, which will receive the backend user's SSO2 ticket (signed user information in base64 format)
/// \inout *length Needs to be filled with the buffer length of ssoTicket. The return value will be the string
/// length of the returned ticket (if buffer was large enough) or the required buffer size (if RFC_BUFFER_TOO_SMALL).
/// \out *errorInfo More error details in case there is no ticket.
/// \return RFC_RC
/// \warning
    pub fn RfcGetPartnerSSOTicket(rfcHandle: RFC_CONNECTION_HANDLE,
                                  ssoTicket: *mut SAP_UC,
                                  length: *mut ::std::os::raw::c_uint,
                                  errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Gets the partner's SNC name, if any.
///
///
///
/// \in rfcHandle RFC server connection. If this function is executed on a client connection, RFC_ILLEGAL_STATE will be returned.
/// \out *sncName Pre-allocated buffer, which will receive the backend user's SNC name (null-terminated string).
/// \in length Size of the pre-allocated buffer. This information is coming from the GSS library, therefore
/// unfortunately the feature of assigning the used/required length to an output parameter is not possible in this case.
/// The maximum length of an SNC name is 256.
/// \out *errorInfo More error details in case SNC is not active.
/// \return RFC_RC
    pub fn RfcGetPartnerSNCName(rfcHandle: RFC_CONNECTION_HANDLE,
                                sncName: *mut SAP_UC,
                                length: ::std::os::raw::c_uint,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Gets partner's SNC key, if any.
///
///
///
/// \in rfcHandle RFC server connection. If this function is executed on a client connection, RFC_ILLEGAL_STATE will be returned.
/// \out *sncKey Pre-allocated buffer, which will receive the backend user's SNC key.
/// \inout *length Needs to be filled with the buffer length of ssoTicket. The return value will be the byte
/// length of the returned key (if buffer was large enough). Unfortunately in case of RFC_BUFFER_TOO_SMALL
/// the required size is not returned by the GSS library.
/// The maximum length of an SNC key is 1024.
/// \out *errorInfo More error details in case SNC is not active.
/// \return RFC_RC
    pub fn RfcGetPartnerSNCKey(rfcHandle: RFC_CONNECTION_HANDLE,
                               sncKey: *mut SAP_RAW,
                               length: *mut ::std::os::raw::c_uint,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Converts SNC name to SNC key.
///
///
///
/// \in *sncLib Optional: file name of the GSS library to be used for the conversion. If not specified, the
/// "global" GSS library (environment variable SNC_LIB) will be used.
/// \in *sncName Null-terminated SNC name to be converted.
/// \out *sncKey Pre-allocated buffer, which will receive the corresponding SNC key.
/// \inout *keyLength Needs to be filled with the buffer length of sncKey. The return value will be byte length
/// of the SNC key (if buffer was large enough). Unfortunately in case of RFC_BUFFER_TOO_SMALL
/// the required size is not returned by the GSS library.
/// The maximum length of an SNC key is 1024.
/// \out *errorInfo More error details in case something goes wrong.
/// \return RFC_RC
    pub fn RfcSNCNameToKey(sncLib: *const SAP_UC, sncName: *const SAP_UC,
                           sncKey: *mut SAP_RAW,
                           keyLength: *mut ::std::os::raw::c_uint,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Converts SNC key to SNC name.
///
///
///
/// \in *sncLib Optional: file name of the GSS library to be used for the conversion. If not specified, the
/// "global" GSS library (environment variable SNC_LIB) will be used.
/// \in *sncKey SNC key to be converted.
/// \in keyLength Byte length of the given SNC key
/// \out *sncName Pre-allocated buffer, which will receive the corresponding (null-terminated) SNC name.
/// \in nameLength Size of the given sncName buffer. (The maximum length of an SNC name is 256.)
/// \out *errorInfo More error details in case something goes wrong.
/// \return RFC_RC
    pub fn RfcSNCKeyToName(sncLib: *const SAP_UC, sncKey: *const SAP_RAW,
                           keyLength: ::std::os::raw::c_uint,
                           sncName: *mut SAP_UC,
                           nameLength: ::std::os::raw::c_uint,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Listens on a server connection handle and waits for incoming RFC calls from the R/3 system.
///
///
/// The mechanism for dispatching incoming function calls works as follows:
/// First %RfcListenAndDispatch() checks, whether for the current combination of R/3 SystemID and function
/// module name a callback function has been installed via RfcInstallServerFunction(). If not, it checks,
/// whether a callback function for SystemID=NULL has been installed via RfcInstallServerFunction().If not,
/// it checks, whether a global callback function has been installed via RfcInstallGenericServerFunction().
///
/// If a callback function has been found, the RFC call will be dispatched to that function for processing,
/// and %RfcListenAndDispatch() returns the return code of the callback function.
/// Otherwise %RfcListenAndDispatch() returns a SYSTEM_FAILURE to the R/3 backend and the return code
/// RFC_NOT_FOUND to the caller.
///
/// In general the return codes of %RfcListenAndDispatch() have the following meaning:
/// - RFC_OK\n		A function call was processed successfully.
/// - RFC_RETRY\n	No function call came in within the specified timeout period. ("timeout" is given in seconds.)
/// - RFC_ABAP_EXCEPTION\n	A function call was processed and ended with a defined ABAP Exception, which has
/// been returned to the backend.
///
/// In the above three cases "rfcHandle" is still open and can be used to listen for the next request.
///
/// - RFC_ABAP_MESSAGE\n	A function call was started to be processed, but was aborted with an ABAP A-, E- or X-Message.
/// The message parameters have been returned to the backend (and can be evaluated there via
/// the sy-msgid, sy-msgtype, sy-msgno, sy-msgv1, ..., sy-msgv4 parameters).
/// - RFC_EXTERNAL_FAILURE\n	A function call was started to be processed, but was aborted with a "SYSTEM_FAILURE",
/// which has been returned to the backend.
/// - RFC_COMMUNICATION_FAILURE\n	The connection broke down while processing the function call. No response
/// has been sent to the backend.
/// - RFC_CLOSED\n	The connection has been closed by the backend side (SMGW, SM04). No response
/// has been sent to the backend.
/// - RFC_NOT_FOUND\n	No handler has been found for the current function module name. A SYSTEM_FAILURE has
/// been returned to the R/3 backend.
///
/// In these five cases the connection has been closed, so the "rfcHandle" needs to be refreshed via RfcRegisterServer.
///
/// - RFC_INVALID_HANDLE\n	"rfcHandle" is invalid or points to a connection that has already been closed.
///
///
/// \in rfcHandle Server connection on which to listen for incoming requests.
/// \in timeout Number of seconds to wait for an incoming request.
/// \out *errorInfo Additional error information.
/// \return RFC_RC
    pub fn RfcListenAndDispatch(rfcHandle: RFC_CONNECTION_HANDLE,
                                timeout: ::std::os::raw::c_int,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Executes a function module in the backend system.
///
///
/// The return codes have the following meaning:
/// - RFC_OK\n		The function call was executed successfully.
/// - RFC_ABAP_EXCEPTION\n	The function call was executed and ended with a defined ABAP Exception. The key of the
/// exception can be obtained from errorInfo->key.
///
/// In the above two cases "rfcHandle" is still open and can be used to execute further function call.
///
/// - RFC_ABAP_MESSAGE\n	The function call was started to be processed, but was aborted with an ABAP Message.
/// The message parameters can be obtained from errorInfo->abapMsgClass, errorInfo->abapMsgType,
/// errorInfo->abapMsgNumber, errorInfo->abapMsgV1, ..., errorInfo->abapMsgV4.
/// - RFC_ABAP_RUNTIME_FAILURE\n	The function call was started to be processed, but was aborted with a SYSTEM_FAILURE
/// (e.g division by zero, unhandled exception, etc in the backend system).
/// Details can be obtained from errorInfo->message.
/// - RFC_COMMUNICATION_FAILURE\n	The connection broke down while processing the function call.
/// Details can be obtained from errorInfo->message.
///
/// In these three cases the connection has been closed, so the "rfcHandle" needs to be refreshed via RfcOpenConnection.
///
/// - RFC_INVALID_HANDLE\n	"rfcHandle" is invalid or points to a connection that has already been closed.
///
///
/// \in rfcHandle Client connection over which to execute the function module.
/// \inout funcHandle Data container containing the input data for the function module.
/// %RfcInvoke() will write the FM's output data into this container.
/// \out *errorInfo Additional error information.
/// \return RFC_RC
    pub fn RfcInvoke(rfcHandle: RFC_CONNECTION_HANDLE,
                     funcHandle: RFC_FUNCTION_HANDLE,
                     errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Retrieves a unique 24-digit transaction ID from the backend.
///
///
///
/// \in rfcHandle Client connection to a backend.
/// \out tid Will be filled with the transaction ID.
/// \out *errorInfo Error information in case there is a problem with the connection.
/// \return RFC_RC
    pub fn RfcGetTransactionID(rfcHandle: RFC_CONNECTION_HANDLE,
                               tid: *mut SAP_UC,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Creates a container for executing a (multi-step) transactional call.
///
///
/// If queueName is NULL, tRFC will be used, otherwise qRFC. Use RfcInvokeInTransaction() to
/// add one (or more) function modules to the transactional call. When sending this transactional
/// call to the backend via RfcSubmitTransaction(), the backend will then treat
/// all function modules in the RFC_TRANSACTION_HANDLE as one LUW.
///
/// \in rfcHandle Client connection to the backend, into which you want to send this tRFC/qRFC LUW.
/// \in tid A unique 24 character ID.
/// \in *queueName For tRFC set this to NULL, for qRFC specify the name of a qRFC inbound queue in the backend.
/// \out *errorInfo Error information in case there is a problem with the connection.
/// \return A data container that can be filled with several function modules.
    pub fn RfcCreateTransaction(rfcHandle: RFC_CONNECTION_HANDLE,
                                tid: *mut SAP_UC, queueName: *const SAP_UC,
                                errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_TRANSACTION_HANDLE;
}
extern "C" {
    /// Adds a function module call to a transaction. Can be used multiple times on one tHandle.
///
///
/// \in tHandle A transaction handle created via RfcCreateTransaction().
/// \in funcHandle An RFC_FUNCTION_HANDLE, whose IMPORTING, CHANGING and TABLES parameters have been filled.
/// Note: that tRFC/qRFC calls have no return values, so the EXPORTING parameters of this function handle will
/// not be filled, nor will the changes to the CHANGING/TABLES parameters be returned.
/// \out *errorInfo Actually there is nothing that can go wrong here except for invalid handles and out of memory.
/// \return RFC_RC
    pub fn RfcInvokeInTransaction(tHandle: RFC_TRANSACTION_HANDLE,
                                  funcHandle: RFC_FUNCTION_HANDLE,
                                  errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Executes the entire LUW in the backend system as an "atomic unit".
///
///
/// This step can be repeated until it finally succeeds (RFC_OK). The transaction handling in the backend
/// system protects against duplicates (until you remove the TID from the backend's status tables using
/// RfcConfirmTransaction()).
///
///
/// \in tHandle A transaction handle filled with one or several function modules.
/// \out *errorInfo Additional error information in case anything goes wrong.
/// \return RFC_RC
    pub fn RfcSubmitTransaction(tHandle: RFC_TRANSACTION_HANDLE,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Removes the TID contained in the RFC_TRANSACTION_HANDLE from the backend's ARFCRSTATE table.
///
///
/// After RfcSubmitTransaction() has finally succeeded, call %RfcConfirmTransaction() to clean up the
/// transaction handling table in the backend.
/// \warning Attention: after this call, the backend is no longer protected against this TID. So another
/// RfcSubmitTransaction() with the same transaction handle would result in a duplicate.
///
///
/// \in tHandle A transaction handle that has successfully been submitted.
/// \out *errorInfo Additional error information in case of a network problem.
/// \warning You may retry the Confirm step, if you get an error here, but do not retry the Submit step!
/// \return RFC_RC
    pub fn RfcConfirmTransaction(tHandle: RFC_TRANSACTION_HANDLE,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Releases the memory of the transaction container.
///
///
///
/// \in tHandle A transaction handle that is no longer needed.
/// \out *errorInfo Not much that can go wrong here...
/// \return RFC_RC
    pub fn RfcDestroyTransaction(tHandle: RFC_TRANSACTION_HANDLE,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Create a 32 digit bgRFC unit ID.
///
///
/// This function fills the given RFC_UNITID with a 32 digit hexadecimal GUID and zero-terminates it.
/// If you want the GUID to be generated by the backend, pass a valid rfcHandle, if you want the
/// NW RFC library to generate one locally (using the appropriate OS functions), pass NULL as
/// connection handle. In both cases the GUID is suitable for sending bgRFC units into an SAP system.
///
///
/// \in rfcHandle An open RFC connection into the system that is to create the unit ID, or NULL.
/// \out uid Preallocated buffer that will receive the 32 digits of the unit ID and a terminating zero.
/// \out *errorInfo Not much that can go wrong here...
/// \return RFC_RC
    pub fn RfcGetUnitID(rfcHandle: RFC_CONNECTION_HANDLE, uid: *mut SAP_UC,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Create a bgRFC unit.
///
///
/// Creates a data container that can later be filled with one or more function modules comprising the
/// bgRFC unit. The backend will execute these function modules as an atomic unit.
/// The connection handle specifies the target system, to which the unit will later be sent. The unit ID
/// has been created in the previous step (or is an old one in case of retrying a failed unit).
/// Via queueNames and queueNameCount you can specify the list of bgRFC queues, into which this unit
/// shall later be inserted. If no queues are given (queueNameCount == 0), a synchronous unit is created
/// (type 'T') that will later be executed immediately. Otherwise an asynchronous unit (type 'Q') is created,
/// which will be inserted into the named queues and executed asynchronously by the bgRFC scheduler.
///
///
/// \in rfcHandle An open RFC connection into the system that will later receive the unit.
/// \in uid A 32 digit unique identifier of the unit.
/// \in *queueNames[] A list of bgRFC queues in the backend or NULL.
/// \in queueNameCount The length of the queueNames list.
/// \in *unitAttr A set of attributes that specify the behaviour of the unit in the backend.
/// See RFC_UNIT_ATTRIBUTES for more information.
/// \out *identifier This identifier can be used in later calls to RfcConfirmUnit() and RfcGetUnitState().
/// It is important that these functions are called with the correct unit type ('T' or 'Q'), otherwise
/// the backend system won't find the status information corresponding to the uid... Therefore the
/// NW RFC lib bundles the uid and the correct unit type here for your convenience.
/// \out *errorInfo More details in case something goes wrong.
/// \return RFC_OK or RFC_MEMORY_INSUFFICIENT
    pub fn RfcCreateUnit(rfcHandle: RFC_CONNECTION_HANDLE, uid: *mut SAP_UC,
                         queueNames: *mut *const SAP_UC,
                         queueNameCount: ::std::os::raw::c_uint,
                         unitAttr: *const RFC_UNIT_ATTRIBUTES,
                         identifier: *mut RFC_UNIT_IDENTIFIER,
                         errorInfo: *mut RFC_ERROR_INFO) -> RFC_UNIT_HANDLE;
}
extern "C" {
    /// Adds a function module to a bgRFC unit.
///
///
/// Serializes the payload of the function module data container into bgRFC format and inserts
/// it into the data container for the bgRFC unit. The funcHandle can afterwards be freed
/// using RfcDestroyFunction(), because the data is copied, not referenced.
///
/// Note: Despite the name "invoke", nothing is executed in the backend system, yet!
///
///
/// \in unitHandle A valid (unsubmitted) bgRFC unit, to which the given function module shall be added.
/// \in funcHandle A function module, whose payload (IMPORTING/CHANGING/TABLES) shall be added to the unit.
/// \out *errorInfo More details in case something goes wrong.
/// \return RFC_OK, RFC_INVALID_HANDLE or RFC_MEMORY_INSUFFICIENT
    pub fn RfcInvokeInUnit(unitHandle: RFC_UNIT_HANDLE,
                           funcHandle: RFC_FUNCTION_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Executes a bgRFC unit in the backend.
///
///
/// Sends the bgRFC unit into the backend, where it will be executed synchronously or persisted
/// in the given inbound queues and executed asynchronously by the bgRFC scheduler, depending on
/// whether the unit type is 'T' or 'Q'.
/// If the type is 'T', this function will wait until the unit is completely executed and then
/// return the success or error information. If the type is 'Q', this function only inserts the
/// unit into the specified queues and then returns. Processing of the unit in the backend system
/// happens asynchronously. The return code of this function indicates, whether the unit could
/// be persisted in the given queues successfully. In order to get information about the processing
/// status of the unit, use RfcGetUnitState() at a later point.
///
/// Note: Despite the name "invoke", nothing is executed in the backend system, yet!
///
///
/// \in unitHandle A valid (unsubmitted) bgRFC unit, which shall be sent into the backend system.
/// \out *errorInfo More details in case something goes wrong.
/// \return RFC_OK, RFC_INVALID_HANDLE, RFC_MEMORY_INSUFFICIENT, RFC_COMMUNICATION_FAILURE
    pub fn RfcSubmitUnit(unitHandle: RFC_UNIT_HANDLE,
                         errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Removes the UID from the backend's status management.
///
///
/// After RfcSubmitUnit() returned successfully, you should use this function to cleanup
/// the status information for this unit on backend side. However, be careful: if you have
/// a three-tier architecture, don't bundle Submit and Confirm into one single logical step.
/// Otherwise you run the risk, that the middle tier (the NW RFC lib) successfully executes
/// both, the Submit and the Confirm, but on the way back to the first tier an error occurs
/// and the first tier can not be sure that the unit was really executed in the backend and
/// therefore decides to re-execute it. This will now result in a duplicate execution in the
/// backend, because the Confirm step in the first try has already deleted the UID in the
/// backend, and consequently the backend is no longer protected against re-execution of this
/// UID. In a three-tier architecture, the first tier should trigger both steps separately:
/// first the Submit, and after it knows that the Submit was successful, the Confirm.
/// Also in case the Confirm runs into an error, do NOT execute the Submit again, never!
/// You may try the Confirm again at a later point, but otherwise just ignore the error.
/// Better a left-over entry in the status information table than a duplicate unit...
///
/// \in rfcHandle A connection into the same system, into which the corresponding bgRFC unit
/// has been sent via RfcSubmitUnit().
/// \in *identifier The correct combination of UID and type of the unit. Best use the output
/// you get from RfcCreateUnit().
/// \out *errorInfo More details in case something goes wrong.
/// \return RFC_OK, RFC_INVALID_HANDLE, RFC_COMMUNICATION_FAILURE
    pub fn RfcConfirmUnit(rfcHandle: RFC_CONNECTION_HANDLE,
                          identifier: *mut RFC_UNIT_IDENTIFIER,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Releases the memory of the bgRFC unit container.
///
///
///
/// \in unitHandle A unit handle that is no longer needed.
/// \out *errorInfo Not much that can go wrong here...
/// \return RFC_RC
    pub fn RfcDestroyUnit(unitHandle: RFC_UNIT_HANDLE,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Retrieves the processing status of the given background unit from the backend system's status management.
///
///
///
/// \in rfcHandle A connection into the same system, into which the corresponding bgRFC unit
/// has been sent via RfcSubmitUnit().
/// \in *identifier The correct combination of UID and type of the unit. Best use the output
/// you get from RfcCreateUnit().
/// \out *state The state of the unit. See RFC_UNIT_STATE for more details.
/// \out *errorInfo Not much that can go wrong here...
/// \return RFC_RC
    pub fn RfcGetUnitState(rfcHandle: RFC_CONNECTION_HANDLE,
                           identifier: *mut RFC_UNIT_IDENTIFIER,
                           state: *mut RFC_UNIT_STATE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Installs a callback function of type RFC_SERVER_FUNCTION, which will be triggered when a request for
/// the function module corresponding to funcDescHandle comes in from the R/3 system corresponding to sysId.
///
///
/// If you pass NULL as "sysId", the serverFunction will be used for calls from any backend system.
///
/// The main inputs of RFC_SERVER_FUNCTION are as follows:
/// - RFC_CONNECTION_HANDLE\n		A connection handle, which can be used to query logon information about
/// the current (backend) user or to make callbacks into the backend.
/// - RFC_FUNCTION_HANDLE\n			A data container that represents the current function call. Read the importing
/// parameters, which came from the backend, from this container via the RfcGetX functions and
/// write the exporting parameters, which are to be returned to the backend, into this container
/// using the RfcSetX functions.\n
/// The memory of that container is automatically released by the RFC Runtime after the
/// RFC_SERVER_FUNCTION returns.
/// - RFC_ERROR_INFO*\n			If you want to return an ABAP Exception or ABAP Message to the backend, fill the
/// parameters of that container and return RFC_ABAP_EXCEPTION or RFC_ABAP_MESSAGE from
/// your RFC_SERVER_FUNCTION implementation.\n
/// If you want to return a SYSTEM_FAILURE to the backend, fill the message parameter of
/// this container and return RFC_EXTERNAL_FAILURE from your RFC_SERVER_FUNCTION implementation.
/// If your RFC_SERVER_FUNCTION implementation processed the function call successfully, you should return RFC_OK.
///
///
/// \in *sysId System ID of the R/3 system, for which this function module implementation shall be used.
/// If you set this to NULL, this server function will be used for calls from all backends, for whose SysID no
/// explicit server function has been installed.
/// \in funcDescHandle A function description giving the name of the function module and its parameters.\n
/// Note that the NW RFC library does not create a copy of this function description. So if you are using
/// self-defined (hard-coded) function descriptions (see RfcCreateFunctionDesc()), then you need to make
/// sure, that these function descriptions are not destroyed as long as they are still used in a server
/// function installation!
/// \in serverFunction Pointer to a C function of type RFC_SERVER_FUNCTION. If you pass a null-pointer here,
/// any previously installed server function for the given function module will be uninstalled.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcInstallServerFunction(sysId: *const SAP_UC,
                                    funcDescHandle: RFC_FUNCTION_DESC_HANDLE,
                                    serverFunction: RFC_SERVER_FUNCTION,
                                    errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Installs a generic callback function of type RFC_SERVER_FUNCTION together with a callback
/// function of type RFC_FUNC_DESC_CALLBACK for obtaining the metadata description of unknown function modules.
///
///
/// The RFC Runtime calls the callback function RFC_SERVER_FUNCTION, if it receives a function call, for whose
/// function module name no matching callback function has been installed via RfcInstallServerFunction()
/// (neither for the current system ID nor for SysID=NULL).
///
/// In addition to the handler function you need to provide a second callback function: RFC_FUNC_DESC_CALLBACK.
/// The RFC runtime calls it to obtain an RFC_FUNCTION_DESC_HANDLE for the current function module from you.
/// So this function either needs to return hardcoded meta data or needs to be able to perform a DDIC lookup
/// using a valid client connection and RfcGetFunctionDesc(). If your implementation of RFC_FUNC_DESC_CALLBACK
/// is not able to provide a function description for the current function module name, it should return RFC_NOT_FOUND.
/// The RFC runtime will then notify the backend, that this function module cannot be processed by your
/// RFC server.
///
///
/// \in serverFunction A pointer to a function that can handle "all" function modules.
/// \in funcDescProvider A pointer to a function that can provide metadata descriptions of "all" function modules.
/// \out *errorInfo Again not much that can go wrong at this point.
/// \return
    pub fn RfcInstallGenericServerFunction(serverFunction:
                                               RFC_SERVER_FUNCTION,
                                           funcDescProvider:
                                               RFC_FUNC_DESC_CALLBACK,
                                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Installs the necessary callback functions for processing incoming tRFC/qRFC calls.
///
///
/// These functions need to be implemented by you and will be used by the RFC runtime in the following way:
/// -# The RFC_ON_CHECK_TRANSACTION function is called when a local transaction is starting. Since a transactional
/// RFC call can be issued many times by the client system, the function is responsible for storing the transaction ID
/// in permanent storage. The return value should be one of the following:
/// - RFC_OK\n		Transaction ID stored, transaction can be started.
/// - RFC_EXECUTED\n	This transaction has already been processed successfully in an earlier attempt. Skip the execution now.
/// - RFC_EXTERNAL_FAILURE\n Currently unable to access my permanent storage. Raise an exception in the sending system, so
/// that the sending system will try to resend the transaction at a later time.
/// -# The next step will be the execution of the RFC_SERVER_FUNCTIONs for all function modules contained in the LUW.
/// -# If one of the RFC_SERVER_FUNCTION implementations returns an error code, RFC_ON_ROLLBACK_TRANSACTION is called.
/// Here you should roll back all the work of all the previous RFC_SERVER_FUNCTIONs. (The easiest way is to do
/// a database ROLLBACK WORK here.)\n
/// If all RFC_SERVER_FUNCTIONs complete successfully, RFC_ON_COMMIT_TRANSACTION is called at the end.
/// Persist all the changes here (e.g. do a COMMIT WORK).\n
/// Note: Normally you'll only have "one-function-module LUWs", e.g. IDocs. In this case the RFC_SERVER_FUNCTION
/// can already commit/rollback its own work, before returning RFC_OK or an error code. So the two functions
/// RFC_ON_ROLLBACK_TRANSACTION and RFC_ON_COMMIT_TRANSACTION can be empty in this case.
/// -# In the end RFC_ON_CONFIRM_TRANSACTION will be called. All information stored about that transaction can now be
/// discarded by the server, as it no longer needs to protect itself against duplicates.
/// In general this function can be used to delete the transaction ID from permanent storage.
///
/// If you pass NULL as "sysId", the transaction handlers will be used for tRFC calls from any backend system,
/// for which no explicit handlers have been installed.
///
///
/// \in *sysId System ID of the SAP system for which to use this set of transaction handlers, or NULL.
/// \in onCheckFunction Pointer to a function of type RFC_ON_CHECK_TRANSACTION.
/// \in onCommitFunction Pointer to a function of type RFC_ON_COMMIT_TRANSACTION.
/// \in onRollbackFunction Pointer to a function of type RFC_ON_ROLLBACK_TRANSACTION.
/// \in onConfirmFunction Pointer to a function of type RFC_ON_CONFIRM_TRANSACTION.
/// \out *errorInfo Additional information, in case the handlers could not be installed.
/// \return RFC_RC
    pub fn RfcInstallTransactionHandlers(sysId: *const SAP_UC,
                                         onCheckFunction:
                                             RFC_ON_CHECK_TRANSACTION,
                                         onCommitFunction:
                                             RFC_ON_COMMIT_TRANSACTION,
                                         onRollbackFunction:
                                             RFC_ON_ROLLBACK_TRANSACTION,
                                         onConfirmFunction:
                                             RFC_ON_CONFIRM_TRANSACTION,
                                         errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Installs the necessary callback functions for processing incoming bgRFC calls.
///
///
/// These functions need to be implemented by you and will be used by the RFC runtime in the following way:
/// -# The RFC_ON_CHECK_UNIT function is called when a local background unit is starting. Since a background
/// RFC call can be issued many times by the client system, the function is responsible for storing the unit ID
/// and type in permanent storage. The return value should be one of the following:
/// - RFC_OK\n		Unit ID stored, LUW can be started.
/// - RFC_EXECUTED\n	This LUW has already been processed successfully in an earlier attempt. Skip the execution now.
/// - RFC_EXTERNAL_FAILURE\n Currently unable to access my permanent storage. Raise an exception in the sending system, so
/// that the sending system will try to resend the unit at a later time.
/// -# The next step will be the execution of the RFC_SERVER_FUNCTIONs for all function modules contained in the LUW.
/// -# If one of the RFC_SERVER_FUNCTION implementations returns an error code, RFC_ON_ROLLBACK_UNIT is called.
/// Here you should roll back all the work of all the previous RFC_SERVER_FUNCTIONs. (The easiest way is to do
/// a database ROLLBACK WORK here.)\n
/// If all RFC_SERVER_FUNCTIONs complete successfully, RFC_ON_COMMIT_UNIT is called at the end.
/// Persist all the changes here (e.g. do a COMMIT WORK).\n
/// Note: Normally you'll only have "one-function-module LUWs", e.g. IDocs. In this case the RFC_SERVER_FUNCTION
/// can already commit/rollback its own work, before returning RFC_OK or an error code. So the two functions
/// RFC_ON_ROLLBACK_UNIT and RFC_ON_COMMIT_UNIT can be empty in this case.
/// -# In the end RFC_ON_CONFIRM_UNIT will be called. All information stored about that LUW can now be
/// discarded by the server, as it no longer needs to protect itself against duplicates.
/// In general this function can be used to delete the unit ID from permanent storage.
/// -# At various points in the processing of a background unit, the backend system may or may not inquire
/// the status of the currently (or previously) processed unit by calling RFC_ON_GET_UNIT_STATE. Your implementation
/// of this function should check your permanent storage for status information about the given unit ID and
/// fill the RFC_UNIT_STATE* accordingly.
///
/// If you pass NULL as "sysId", the transaction handlers will be used for bgRFC calls from any backend system,
/// for which no explicit handlers have been installed.
///
///
/// \in *sysId System ID of the SAP system for which to use this set of transaction handlers, or NULL.
/// \in onCheckFunction Pointer to a function of type RFC_ON_CHECK_UNIT.
/// \in onCommitFunction Pointer to a function of type RFC_ON_COMMIT_UNIT.
/// \in onRollbackFunction Pointer to a function of type RFC_ON_ROLLBACK_UNIT.
/// \in onConfirmFunction Pointer to a function of type RFC_ON_CONFIRM_UNIT.
/// \in onGetStateFunction Pointer to a function of type RFC_ON_GET_UNIT_STATE.
/// \out *errorInfo Additional information, in case the handlers could not be installed.
/// \return RFC_RC
    pub fn RfcInstallBgRfcHandlers(sysId: *const SAP_UC,
                                   onCheckFunction: RFC_ON_CHECK_UNIT,
                                   onCommitFunction: RFC_ON_COMMIT_UNIT,
                                   onRollbackFunction: RFC_ON_ROLLBACK_UNIT,
                                   onConfirmFunction: RFC_ON_CONFIRM_UNIT,
                                   onGetStateFunction: RFC_ON_GET_UNIT_STATE,
                                   errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Installs the necessary callback functions for processing Extended Passport (EPP) events.
///
///
/// Extended Passports is a feature that supersedes Distributed Statistical Records (DSRs).
/// It allows to track certain performance attributes across system boundaries. These callback functions
/// allow the application to exchange passports with the backend system. The actual data contained in the
/// passports, can be processed with the eppslib library.
/// Note: Normal RFC applications should never need to deal with this topic at all...
///
///
/// \in onClientCallStart Pointer to a function of type RFC_PM_CALLBACK. The RFC lib calls this function, before it sends a client request into the backend. Here you can provide the passport that is to be sent along with the RFC request.
/// \in onClientCallEnd Pointer to a function of type RFC_PM_CALLBACK. The RFC lib calls this function, after the RFC response was received from the backend. You can read the updated passport information.
/// \in onServerCallStart Pointer to a function of type RFC_PM_CALLBACK. The RFC lib calls this function, when it received an RFC request from the backend. Here you can read the passport that accompanied the request.
/// \in onServerCallEnd Pointer to a function of type RFC_PM_CALLBACK. The RFC lib calls this function, before it will send the response to the above request back to the backend. You can update the passport data with information about processing performance of the current call.
/// \out *errorInfo Additional information, in case the handlers could not be installed.
/// \return RFC_RC
    pub fn RfcInstallPassportManager(onClientCallStart: RFC_PM_CALLBACK,
                                     onClientCallEnd: RFC_PM_CALLBACK,
                                     onServerCallStart: RFC_PM_CALLBACK,
                                     onServerCallEnd: RFC_PM_CALLBACK,
                                     errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Installs an optional callback function for processing password change events.
///
///
/// Whenever a logon attempt is made with a user, whose password is still initial, the backend system
/// challenges this user to change his/her password. If this happens during a call to RfcOpenConnection(),
/// the RFC library calls this callback function (if installed), and allows you to change the user's password.
/// In your implementation, you can either return RFC_EXTERNAL_FAILURE, if you can't/don't want to change
/// the password. In that case RfcOpenConnection() will end with RFC_LOGON_FAILURE and any additional text from
/// errorInfo->message will be returned to the application. Or you can fill the old and new password with correct
/// values and return RFC_OK, upon which the RFC library will attempt to change the password accordingly.
///
///
/// \in onPasswordChange Pointer to a function of type RFC_ON_PASSWORD_CHANGE. The RFC lib calls this function, whenever an initial password is detected during a call to RfcOpenConnection().
/// \out *errorInfo Additional information, in case the handler could not be installed.
/// \return RFC_RC
    pub fn RfcInstallPasswordChangeHandler(onPasswordChange:
                                               RFC_ON_PASSWORD_CHANGE,
                                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Installs an optional callback function for performing authorization checks on incoming function calls.
///
///
/// After an RFC call arrives at the RFC library, and before the library executes the corresponding
/// server implementation for that function module, it calls this callback function, if installed.
/// Here you can implement a central authorization check, defining exactly which user from which backend
/// system is allowed to execute what functions in your RFC server program.
/// The actual function module implementations can then concentrate on their business logic and don't
/// need to pay attention to access and authorization checks.
///
///
/// \in onAuthorizationCheck Pointer to a function of type RFC_ON_AUTHORIZATION_CHECK. The RFC lib calls this function, whenever an RFC request arrives from the backend.
/// \out *errorInfo Additional information, in case the handler could not be installed.
/// \return RFC_RC
    pub fn RfcInstallAuthorizationCheckHandler(onAuthorizationCheck:
                                                   RFC_ON_AUTHORIZATION_CHECK,
                                               errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Creates a data container that can be used to execute function calls in the backend via RfcInvoke().
///
///
/// The importing parameters can be set using the RfcSetX functions. After the RfcInvoke() call returned
/// successfully, the exporting parameters can be read from this data container via the RfcGetX functions.
///
///
/// \in funcDescHandle Metadata description ("blueprint") for the data container to be created.
/// \out *errorInfo Error information in case the parameters are incorrect or there's not enough memory.
/// \return A handle to the function module container.
    pub fn RfcCreateFunction(funcDescHandle: RFC_FUNCTION_DESC_HANDLE,
                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_FUNCTION_HANDLE;
}
extern "C" {
    /// Releases all memory used by the data container.
///
///
/// \warning Be careful: if you have obtained a handle to a structure (RFC_STRUCTURE_HANDLE) or
/// table parameter (RFC_TABLE_HANDLE) from that function module, that handle will be invalid afterwards,
/// as that memory will be released as well!
///
///
/// \in funcHandle Data container to release.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcDestroyFunction(funcHandle: RFC_FUNCTION_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Allows to deactivate certain parameters in the function module interface.
///
///
/// This is particularly useful for BAPIs which have many large tables, in which you are not interested.
/// Deactivate those and leave only those tables active, in which you are interested. This reduces
/// network traffic and memory consumption in your application considerably.
///
/// Note: This functionality can be used for input and output parameters. If the parameter is an input,
/// no data for that parameter will be sent to the backend. If it's an output, the backend will be
/// informed not to return data for that parameter.
///
/// \in funcHandle A function module data container.
/// \in *paramName The name of a parameter of this function module.
/// \in isActive 1 = activate, 0 = deactivate.
/// \out *errorInfo Error information in case something goes wrong (e.g. a parameter of that name does not exist).
/// \return RFC_RC
    pub fn RfcSetParameterActive(funcHandle: RFC_FUNCTION_HANDLE,
                                 paramName: *const SAP_UC,
                                 isActive: ::std::os::raw::c_int,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Query whether a parameter is active.
///
///
/// Useful for example in a server function implementation: Before creating a large table,
/// you may want to check, whether the client (the backend system), has requested that table at all.
///
/// \in funcHandle A function module data container (usually handed to your server function from the RFC library).
/// \in *paramName The name of a parameter of this function module.
/// \out *isActive 1 = is active, 0 = is not active.
/// \out *errorInfo Error information in case something goes wrong (e.g. a parameter of that name does not exist).
/// \return RFC_RC
    pub fn RfcIsParameterActive(funcHandle: RFC_FUNCTION_HANDLE,
                                paramName: *const SAP_UC,
                                isActive: *mut ::std::os::raw::c_int,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Creates a data container for a structure.
///
///
///
/// \in typeDescHandle The metadata description (blueprint) for the structure to be created.
/// \out *errorInfo Error information in case the parameters are incorrect or there's not enough memory.
/// \return A handle to the structure.
    pub fn RfcCreateStructure(typeDescHandle: RFC_TYPE_DESC_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_STRUCTURE_HANDLE;
}
extern "C" {
    /// Clones a sructure including the data in it.
///
///
///
/// \in srcStructureHandle The structure to clone.
/// \out *errorInfo Not enough memory?
/// \return A handle to the newly created copy of the input structure.
    pub fn RfcCloneStructure(srcStructureHandle: RFC_STRUCTURE_HANDLE,
                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_STRUCTURE_HANDLE;
}
extern "C" {
    /// Releases all memory for a particular structure
///
///
/// \warning Do not call this function on structures, which you have obtained from another data container
/// (e.g. a function module) via RfcGetStructure(). In that case the memory will be released, when the
/// parent container will be destroyed. If you destroy a child structure separately, you will get a
/// segmentation fault, when the parent structure is destroyed!
///
/// \in structHandle Structure to release.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcDestroyStructure(structHandle: RFC_STRUCTURE_HANDLE,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Creates a data container for a table.
///
///
///
/// \in typeDescHandle The metadata description (blueprint) for the line type of the table to be created.
/// \out *errorInfo More details in case there was an invalid parameter or not enough memory.
/// \return The freshly created table.
    pub fn RfcCreateTable(typeDescHandle: RFC_TYPE_DESC_HANDLE,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_TABLE_HANDLE;
}
extern "C" {
    /// Clones a table including all the data in it. (Use with care...)
///
///
///
/// \in srcTableHandle The table to duplicate.
/// \out *errorInfo In case there is not enough memory.
/// \return A handle to the cloned table.
    pub fn RfcCloneTable(srcTableHandle: RFC_TABLE_HANDLE,
                         errorInfo: *mut RFC_ERROR_INFO) -> RFC_TABLE_HANDLE;
}
extern "C" {
    /// Releases the memory of a table and all its lines.
///
///
/// \warning Be careful: if you still have a reference to a certain table line (an RFC_STRUCTURE_HANDLE you got
/// from RfcGetCurrentRow() / RfcAppendNewRow() / RfcInsertNewRow()), this handle will be invalid after %RfcDestroyTable()!
/// Using a handle to a table line after the table has been destroyed, will lead to a segmentation fault.
///
/// \in tableHandle The table to release.
/// \out *errorInfo Nothing can go wrong here...
/// \return RFC_RC
    pub fn RfcDestroyTable(tableHandle: RFC_TABLE_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the table row, on which the "table cursor" is currently positioned.
///
///
/// Note: that the rows are numbered from 0 to n-1, not from 1 to n, as it's done in ABAP.
///
/// \in tableHandle The table to read data from.
/// \out *errorInfo If the table cursor is not on a valid position.
/// \return A handle to the current row.
/// \warning Do not destroy the returned RFC_STRUCTURE_HANDLE.
    pub fn RfcGetCurrentRow(tableHandle: RFC_TABLE_HANDLE,
                            errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_STRUCTURE_HANDLE;
}
extern "C" {
    /// Appends a new empty row at the end of the table and moves the table cursor to that row.
///
///
///
/// \in tableHandle The table to enlarge.
/// \out *errorInfo More information in case of errors (e.g. not enough memory).
/// \return A handle to the newly created row.
    pub fn RfcAppendNewRow(tableHandle: RFC_TABLE_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_STRUCTURE_HANDLE;
}
extern "C" {
    /// Appends a set of new empty rows at the end of the table and moves the table cursor to the first new row.
///
///
///
/// \in tableHandle The table to enlarge.
/// \in numRows Number of rows to add.
/// \out *errorInfo More information in case of errors (e.g. not enough memory).
/// \return RFC_OK, RFC_INVALID_HANDLE or RFC_MEMORY_INSUFFICIENT.
    pub fn RfcAppendNewRows(tableHandle: RFC_TABLE_HANDLE,
                            numRows: ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Inserts a new empty row at the current position of the table cursor.
///
///
/// The row, on which the table cursor is currently positioned, and all following rows are moved
/// one index "down". E.g. if the table currently has rows nos 0 - n-1 and the cursor points to row i,
/// then the rows i - n-1 are moved to positions i+1 - n, and the new row is inserted at position i.
///
///
/// \in tableHandle The table to enlarge.
/// \out *errorInfo More information in case of errors (e.g. not enough memory).
/// \return A handle to the newly created row.
    pub fn RfcInsertNewRow(tableHandle: RFC_TABLE_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_STRUCTURE_HANDLE;
}
extern "C" {
    /// Appends an existing row to the end of the table and moves the table cursor to that row.
///
///
///
/// \in tableHandle The table to enlarge.
/// \in structHandle The row to append to the table.
/// \out *errorInfo More information in case something goes wrong (e.g. the line types of the table and the structure don't match).
/// \return RFC_RC
    pub fn RfcAppendRow(tableHandle: RFC_TABLE_HANDLE,
                        structHandle: RFC_STRUCTURE_HANDLE,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Inserts an existing row at the current position of the table cursor.
///
///
/// The row, on which the table cursor is currently positioned, and all following rows are moved
/// one index "down". E.g. if the table currently has rows nos 0 - n-1 and the cursor points to row i,
/// then the rows i - n-1 are moved to positions i+1 - n, and the given row is inserted at position i.
///
///
/// \in tableHandle The table to enlarge.
/// \in structHandle The row to insert into the table.
/// \out *errorInfo More information in case something goes wrong (e.g. the line types of the table and the structure don't match).
/// \return RFC_RC
    pub fn RfcInsertRow(tableHandle: RFC_TABLE_HANDLE,
                        structHandle: RFC_STRUCTURE_HANDLE,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Deletes the row, on which the table cursor is currently positioned.
///
///
/// If the row cursor is currently at an index i between 0 - n-2, then row i will be deleted and the
/// rows i+1 - n-1 will be moved on index "up", e.g. will now be rows i - n-2. The table cursor will
/// remain fixed at index i.\n
/// If the cursor is currently on the last row (n-1), then that row will be deleted, all other position
/// will remain unchanged, and the table cursor will move up to n-2 (the new last row of the table).
///
///
/// \in tableHandle The table from which to delete a row.
/// \out *errorInfo Error information in case the table cursor is not on a valid position.
/// \return RFC_RC
    pub fn RfcDeleteCurrentRow(tableHandle: RFC_TABLE_HANDLE,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Deletes all rows from the table.
///
///
///
/// \in tableHandle The table to clear.
/// \out *errorInfo Not much that can go wrong here (except an invalid table handle).
/// \return RFC_RC
    pub fn RfcDeleteAllRows(tableHandle: RFC_TABLE_HANDLE,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Positions the table cursor at the first row (or at index "-1", if the table is empty).
///
///
///
/// \in tableHandle A table.
/// \out *errorInfo Not much that can go wrong here (except an invalid table handle).
/// \return RFC_RC
    pub fn RfcMoveToFirstRow(tableHandle: RFC_TABLE_HANDLE,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Positions the table cursor at the last row (or at index "-1", if the table is empty).
///
///
///
/// \in tableHandle A table.
/// \out *errorInfo Not much that can go wrong here (except an invalid table handle).
/// \return RFC_RC
    pub fn RfcMoveToLastRow(tableHandle: RFC_TABLE_HANDLE,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Increments the table cursor by one.
///
///
///
/// \in tableHandle A table.
/// \out *errorInfo Not much that can go wrong here (except an invalid table handle).
/// \return RFC_RC
    pub fn RfcMoveToNextRow(tableHandle: RFC_TABLE_HANDLE,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Decrements the table cursor by one.
///
///
///
/// \in tableHandle A table.
/// \out *errorInfo Not much that can go wrong here (except an invalid table handle).
/// \return RFC_RC
    pub fn RfcMoveToPreviousRow(tableHandle: RFC_TABLE_HANDLE,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the table cursor to a specific index.
///
///
///
/// \in tableHandle A table.
/// \in index The index to which to move the cursor.
/// \out *errorInfo Index out of bounds or invalid table handle.
/// \return RFC_RC
    pub fn RfcMoveTo(tableHandle: RFC_TABLE_HANDLE,
                     index: ::std::os::raw::c_uint,
                     errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the number of rows in a table.
///
///
///
/// \in tableHandle A table.
/// \out *rowCount The number of rows in the table.
/// \out *errorInfo Not much that can go wrong.
/// \return RFC_RC
    pub fn RfcGetRowCount(tableHandle: RFC_TABLE_HANDLE,
                          rowCount: *mut ::std::os::raw::c_uint,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a type description handle describing the line type (metadata) of this table.
///
///
///
/// \in tableHandle A table.
/// \out *errorInfo Not much that can go wrong.
/// \return A type description handle that provides information about this table's fields (for each field: fieldname, the field's datatype, length, offset, etc.)
    pub fn RfcGetRowType(tableHandle: RFC_TABLE_HANDLE,
                         errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_TYPE_DESC_HANDLE;
}
extern "C" {
    /// Creates an ABAP object handle with the given class description handle.
///
///
/// \in classDescHandle   class description handle.
/// \out *errorInfo  Contains more information, for example if memory runs out (code = RFC_MEMORY_INSUFFICIENT).
/// \return A handle to the created ABAP object.
    pub fn RfcCreateAbapObject(classDescHandle: RFC_CLASS_DESC_HANDLE,
                               errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_ABAP_OBJECT_HANDLE;
}
extern "C" {
    /// Destroys an ABAP object handle.
///
///
/// \in objHandle    ABAP object handle to be destroyed.
/// \out *errorInfo  Should always return successfully.
/// \return RFC_RC
    pub fn RfcDestroyAbapObject(objHandle: RFC_ABAP_OBJECT_HANDLE,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as char array.
///
///
/// The charBuffer will be filled with a string representation of the given field. The remaining
/// places in the buffer will be filled with trailing spaces. In case the buffer is too small,
/// the function will return RFC_BUFFER_TOO_SMALL. The result will not be null-terminated.
///
/// The field specified by name needs to be of one of the following data types. If the field
/// has one of the listed non-char-like data types, the RFC library will convert the field value
/// to string format. Example:\n
/// If "name" specifies a field of type INT4 with the value 4711 and charBuffer is an SAP_CHAR[10],
/// then the buffer will be filled as follows: "4711      ".
///
/// Note: If the target field has type BYTE or XSTRING, the bytes will be
/// converted to a hex encoded string representation.
///
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field.
/// \out *charBuffer A pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in RFC_CHARs.
/// \out *errorInfo Field doesn't exist, cannot be converted to char, etc.
/// \return RFC_RC
    pub fn RfcGetChars(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       charBuffer: *mut RFC_CHAR,
                       bufferLength: ::std::os::raw::c_uint,
                       errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as char array.
///
///
/// This function works exactly like RfcGetChars(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field.
/// \out *charBuffer A pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in RFC_CHARs.
/// \out *errorInfo Field doesn't exist, cannot be converted to char, etc.
/// \return RFC_RC
    pub fn RfcGetCharsByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              charBuffer: *mut RFC_CHAR,
                              bufferLength: ::std::os::raw::c_uint,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as num-char array (digits only).
///
///
/// The charBuffer will be filled with a string representation of the field (from right to left).
/// The remaining places in the buffer will be filled with leading zero digits. In case
/// the buffer is too small, the function will return RFC_BUFFER_TOO_SMALL. The result is not
/// null-terminated.
///
/// The field specified by name needs to be of one of the following data types. If the field
/// has one of the listed non-char-like data types, the RFC library will convert the field value
/// to string format. Example:\n
/// If "name" specifies a field of type INT4 with the value 4711 and charBuffer is an SAP_CHAR[10],
/// then the buffer will be filled as follows: "0000004711".
///
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field.
/// \out *charBuffer A pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in RFC_CHARs.
/// \out *errorInfo Field doesn't exist, cannot be converted to numc, etc.
/// \return RFC_RC
    pub fn RfcGetNum(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                     charBuffer: *mut RFC_NUM,
                     bufferLength: ::std::os::raw::c_uint,
                     errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as num-char array (digits only).
///
///
/// This function works exactly like RfcGetNum(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field.
/// \out *charBuffer A pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in RFC_CHARs.
/// \out *errorInfo Field doesn't exist, cannot be converted to numc, etc.
/// \return RFC_RC
    pub fn RfcGetNumByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                            index: ::std::os::raw::c_uint,
                            charBuffer: *mut RFC_NUM,
                            bufferLength: ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads a DATE field.
///
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read. The field must be of type RFCTYPE_DATE.
/// \out emptyDate An RFC_DATE object, which will receive the field value.
/// \out *errorInfo More information in case something goes wrong.
/// \return RFC_RC
    pub fn RfcGetDate(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      emptyDate: *mut RFC_CHAR,
                      errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads a DATE field.
///
///
/// This function works exactly like RfcGetDate(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read. The field must be of type RFCTYPE_DATE.
/// \out emptyDate An RFC_DATE object, which will receive the field value.
/// \out *errorInfo More information in case something goes wrong.
/// \return RFC_RC
    pub fn RfcGetDateByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint,
                             emptyDate: *mut RFC_CHAR,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads a TIME field.
///
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read. The field must be of type RFCTYPE_TIME.
/// \out emptyTime An RFC_TIME object, which will receive the field value.
/// \out *errorInfo More information in case something goes wrong.
/// \return RFC_RC
    pub fn RfcGetTime(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      emptyTime: *mut RFC_CHAR,
                      errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads a TIME field.
///
///
/// This function works exactly like RfcGetTime(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read. The field must be of type RFCTYPE_TIME.
/// \out emptyTime An RFC_TIME object, which will receive the field value.
/// \out *errorInfo More information in case something goes wrong.
/// \return RFC_RC
    pub fn RfcGetTimeByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint,
                             emptyTime: *mut RFC_CHAR,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as null-terminated string.
///
///
/// The charBuffer will be filled with a null-terminated string representation of the field value.
/// In case the buffer is too small, e.g. no place for string termination, the function will
/// return RFC_BUFFER_TOO_SMALL. stringLength contains the number of written characters, or the
/// required number of characters in case RFC_BUFFER_TOO_SMALL was thrown.
/// The result will be null-terminated.
///
/// The field specified by name needs to be of one of the following data types. If the field
/// has one of the listed non-char-like data types, the RFC library will convert the field value
/// to string format. Example:\n
/// If "name" specifies a field of type INT4 with the value 4711 and stringBuffer is an SAP_UC[10],
/// then the buffer will be filled as follows: "4711\0xxxxx". (x: left unchanged.)
///
/// Note: If the target field has type BYTE or XSTRING, the bytes will be
/// converted to a hex encoded string representation.
///
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *stringBuffer Pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in SAP_UC.
/// \out *stringLength Always returns the string's length, no matter whether the stringBuffer had
/// been large enough or not. (Note that if you want to try again after an RFC_BUFFER_TOO_SMALL,
/// you need to make the stringBuffer at least *stringLength + 1 in order to account for the terminating null.)
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetString(dataHandle: DATA_CONTAINER_HANDLE,
                        name: *const SAP_UC, stringBuffer: *mut SAP_UC,
                        bufferLength: ::std::os::raw::c_uint,
                        stringLength: *mut ::std::os::raw::c_uint,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as null-terminated string.
///
///
/// This function works exactly like RfcGetString(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *stringBuffer Pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in SAP_UC.
/// \out *stringLength Always returns the string's length, no matter whether the stringBuffer had
/// been large enough or not. (Note that if you want to try again after an RFC_BUFFER_TOO_SMALL,
/// you need to make the stringBuffer at least *stringLength + 1 in order to account for the termnating null.)
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetStringByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                               index: ::std::os::raw::c_uint,
                               stringBuffer: *mut SAP_UC,
                               bufferLength: ::std::os::raw::c_uint,
                               stringLength: *mut ::std::os::raw::c_uint,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as byte array.
///
///
/// Should mainly be used with fields of type RAW (RFCTYPE_BYTE), but also works with
/// a number of other data types. In case of numerical data types it simply gives the
/// binary representation of the value, in case of character data types it gives the
/// UTF-16 representation (little endian/big endian, depending on the host platform).
/// In case the buffer is too small, the function will return RFC_BUFFER_TOO_SMALL.
/// In case the buffer is longer than the field, it will be filled with 0x00 values.
/// Example: The field is of type INT4 and contains the value 4711, byteBuffer is an SAP_RAW[10].
/// Then the buffer will be filled as follows: 67 12 00 00 00 00 00 00 00 00 (little endian system)
/// or 00 00 12 67 00 00 00 00 00 00 (big endian system).
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *byteBuffer Pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in bytes.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetBytes(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       byteBuffer: *mut SAP_RAW,
                       bufferLength: ::std::os::raw::c_uint,
                       errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as byte array.
///
///
/// This function works exactly like RfcGetBytes(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *byteBuffer Pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in bytes.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetBytesByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              byteBuffer: *mut SAP_RAW,
                              bufferLength: ::std::os::raw::c_uint,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as byte array.
///
///
/// In case the buffer is too small, the function will return RFC_BUFFER_TOO_SMALL.
/// xstringLength contains the number of written bytes, or the required number of bytes
/// in case of RFC_BUFFER_TOO_SMALL.
/// The remaining buffer won't be changed.
///
/// Example: The field is of type INT4 and contains the value 4711, byteBuffer is an SAP_RAW[10].
/// Then the buffer will be filled as follows: 67 12 00 00 x x x x x x (little endian system)
/// or 00 00 12 67 x x x x x x (big endian system). (x: unchanged) In both cases *xstringLength
/// will be 4.
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *byteBuffer Pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in bytes.
/// \out *xstringLength Byte length of the result (in both cases, no matter whether the byteBuffer had
/// been large enough or not).
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetXString(dataHandle: DATA_CONTAINER_HANDLE,
                         name: *const SAP_UC, byteBuffer: *mut SAP_RAW,
                         bufferLength: ::std::os::raw::c_uint,
                         xstringLength: *mut ::std::os::raw::c_uint,
                         errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as byte array.
///
///
/// This function works exactly like RfcGetXString(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *byteBuffer Pre-allocated buffer, which will receive the (converted) field value.
/// \in bufferLength Size of the buffer in bytes.
/// \out *xstringLength Byte length of the result (in both cases, no matter whether the byteBuffer had
/// been large enough or not).
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetXStringByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                index: ::std::os::raw::c_uint,
                                byteBuffer: *mut SAP_RAW,
                                bufferLength: ::std::os::raw::c_uint,
                                xstringLength: *mut ::std::os::raw::c_uint,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as RFC_INT (signed).
///
///
/// If the field is a character type, an "atoi-like" conversion is performed. If the field is of type
/// RFCTYPE_BYTE/RFCTYPE_XSTRING, this function interprets the bytes in big-endian byte order when
/// converting them to int. Note that in this case the byte length of the field value must not exceed 4!
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_BYTE     is interpreted as big endian sequence of an int
/// - RFCTYPE_XSTRING  is interpreted as big endian sequence of an int
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_STRING
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *value The (converted) integer value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetInt(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                     value: *mut RFC_INT, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the value of the specified field as RFC_INT (signed).
///
///
/// This function works exactly like RfcGetInt(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *value The (converted) integer value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetIntByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                            index: ::std::os::raw::c_uint,
                            value: *mut RFC_INT,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of a field as an unsigned one byte integer.
///
///
/// The current field value must not be bigger than 255, otherwise you'll get an RFC_CONVERSION_ERROR.
/// If the field is of type RFCTYPE_BYTE/RFCTYPE_XSTRING, the field length must be 1 byte.
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *value The (converted) integer value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetInt1(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      value: *mut RFC_INT1, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the value of a field as an unsigned one byte integer.
///
///
/// This function works exactly like RfcGetInt1(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *value The (converted) integer value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetInt1ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint,
                             value: *mut RFC_INT1,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the field value as a signed two byte integer.
///
///
/// The current field value must be between -32768 and 32767, otherwise you'll get an RFC_CONVERSION_ERROR.
/// If the field is of type RFCTYPE_BYTE/RFCTYPE_XSTRING, the field length must be 1 or 2 bytes.
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_BYTE     is interpreted as big endian sequence of a short
/// - RFCTYPE_XSTRING  is interpreted as big endian sequence of a short
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *value The (converted) integer value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetInt2(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      value: *mut RFC_INT2, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the field value as a signed two byte integer.
///
///
/// This function works exactly like RfcGetInt2(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *value The (converted) integer value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetInt2ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint,
                             value: *mut RFC_INT2,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the value of the given field as an RFC_FLOAT.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *value The floating point value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetFloat(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       value: *mut RFC_FLOAT, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the value of the given field as an RFC_FLOAT.
///
///
/// This function works exactly like RfcGetFloat(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *value The floating point value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetFloatByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              value: *mut RFC_FLOAT,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the field as an 8 byte IEEE 754r decimal floating point.
///
///
/// See the header sapdecf.h for how to work with RFC_DECF16 objects. If the field has a binary
/// data type, its field length needs to be 8 bytes.
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_DECF16
/// - RFCTYPE_DECF34
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_STRING
/// - RFCTYPE_BYTE     is interpreted as IEEE 754r format
/// - RFCTYPE_XSTRING  is interpreted as IEEE 754r format
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *value The (converted) decimal floating point value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetDecF16(dataHandle: DATA_CONTAINER_HANDLE,
                        name: *const SAP_UC, value: *mut RFC_DECF16,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the field as an 8 byte IEEE 754r decimal floating point.
///
///
/// This function works exactly like RfcGetDecF16(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *value The (converted) decimal floating point value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetDecF16ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                               index: ::std::os::raw::c_uint,
                               value: *mut RFC_DECF16,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the field as a 16 byte IEEE 754r decimal floating point.
///
///
/// See the header sapdecf.h for how to work with RFC_DECF16 objects. If the field has a binary
/// data type, its field length needs to be 16 bytes.
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_DECF16
/// - RFCTYPE_DECF34
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_STRING
/// - RFCTYPE_BYTE     is interpreted as IEEE 754r format
/// - RFCTYPE_XSTRING  is interpreted as IEEE 754r format
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *value The (converted) decimal floating point value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetDecF34(dataHandle: DATA_CONTAINER_HANDLE,
                        name: *const SAP_UC, value: *mut RFC_DECF34,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the field as a 16 byte IEEE 754r decimal floating point.
///
///
/// This function works exactly like RfcGetDecF34(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *value The (converted) decimal floating point value.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcGetDecF34ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                               index: ::std::os::raw::c_uint,
                               value: *mut RFC_DECF34,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a handle to a structure.
///
///
/// The field specified by name must be of type RFCTYPE_STRUCTURE. If that field has not yet
/// been accessed/filled previously, a new empty structure is created from the metadata of the
/// parent data container ("dataHandle") and returned.
/// \warning The memory of that data container will be released, when the parent container gets
/// destroyed. So don't destroy the returned structure handle, nor continue to use it, after the
/// parent has been destroyed!
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *structHandle A handle to the sub-structure.
/// \out *errorInfo Field does not exist, is of wrong type or out of memory.
/// \return RFC_RC
    pub fn RfcGetStructure(dataHandle: DATA_CONTAINER_HANDLE,
                           name: *const SAP_UC,
                           structHandle: *mut RFC_STRUCTURE_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a handle to a structure.
///
///
/// This function works exactly like RfcGetStructure(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *structHandle A handle to the sub-structure.
/// \out *errorInfo Field does not exist, is of wrong type or out of memory.
/// \return RFC_RC
    pub fn RfcGetStructureByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                  index: ::std::os::raw::c_uint,
                                  structHandle: *mut RFC_STRUCTURE_HANDLE,
                                  errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a handle to a table.
///
///
/// The field specified by name must be of type RFCTYPE_TABLE. If that field has not yet
/// been accessed/filled previously, a new empty structure is created from the metadata of the
/// parent data container ("dataHandle") and returned.
/// \warning The memory of that data container will be released, when the parent container gets
/// destroyed. So don't destroy the returned table handle, nor continue to use it, after the
/// parent has been destroyed!
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *tableHandle A handle to the sub-table.
/// \out *errorInfo Field does not exist, is of wrong type or out of memory.
/// \return RFC_RC
    pub fn RfcGetTable(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       tableHandle: *mut RFC_TABLE_HANDLE,
                       errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a handle to a table.
///
///
/// This function works exactly like RfcGetTable(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *tableHandle A handle to the sub-table.
/// \out *errorInfo Field does not exist, is of wrong type or out of memory.
/// \return RFC_RC
    pub fn RfcGetTableByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              tableHandle: *mut RFC_TABLE_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a handle to an abap object.
///
///
/// The field specified by name must be of type RFCTYPE_ABAPOBJECT. If that field has not yet
/// been filled previously, NULL is returned.
/// \warning The memory of that data container will be released, when the parent container gets
/// destroyed. So don't destroy the returned table handle, nor continue to use it, after the
/// parent has been destroyed!
///
///
/// \in dataHandle A data container (function handle, structure handle, table handle or object handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of the field to read.
/// \out *objHandle A handle to the object.
/// \out *errorInfo Field does not exist, is of wrong type or out of memory.
/// \return RFC_RC
    pub fn RfcGetAbapObject(dataHandle: DATA_CONTAINER_HANDLE,
                            name: *const SAP_UC,
                            objHandle: *mut RFC_ABAP_OBJECT_HANDLE,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns a handle to an abap object.
///
///
/// This function works exactly like RfcGetAbapObject(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle, table handle or object handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of the field to read.
/// \out *objHandle A handle to the object.
/// \out *errorInfo Field does not exist, is of wrong type or out of memory.
/// \return RFC_RC
    pub fn RfcGetAbapObjectByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                   index: ::std::os::raw::c_uint,
                                   objHandle: *mut RFC_ABAP_OBJECT_HANDLE,
                                   errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the length of the value of a STRING or XSTRING parameter.
///
///
/// The field specified by name must be of type RFCTYPE_STRING or RFCTYPE_XSTRING. If that field is
/// of type STRING, the returned length is measured in characters, otherwise in bytes.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in *name The name of a STRING or XSTRING field.
/// \out *stringLength Length of the current field value.
/// \out *errorInfo Wrong field type?
/// \return RFC_RC
    pub fn RfcGetStringLength(dataHandle: DATA_CONTAINER_HANDLE,
                              name: *const SAP_UC,
                              stringLength: *mut ::std::os::raw::c_uint,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the length of the value of a STRING or XSTRING parameter.
///
///
/// This function works exactly like RfcGetStringLength(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will read the field value of the current row.
/// \in index The index of a STRING or XSTRING field.
/// \out *stringLength Length of the current field value.
/// \out *errorInfo Wrong field type?
/// \return RFC_RC
    pub fn RfcGetStringLengthByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                     index: ::std::os::raw::c_uint,
                                     stringLength:
                                         *mut ::std::os::raw::c_uint,
                                     errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets the given char value (charValue/valueLength) into the field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
/// Note: If the target field is a numerical type, the RFC library tries to convert the string
/// to a number. If the target field has type BYTE or XSTRING, the char value will be interpreted as
/// hex encoded string representation of the bytes. Its length needs to be even in that case.\n
/// Example: the 8 characters "CAFEBABE" will be converted to 4 bytes 0xCA 0xFE 0xBA 0xBE.
///
/// If the value cannot be converted to the desired target type, RFC_CONVERSION_ERROR will be
/// returned.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in *charValue The characters to write into the field.
/// \in valueLength The number of characters to read from charValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetChars(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       charValue: *const RFC_CHAR,
                       valueLength: ::std::os::raw::c_uint,
                       errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given char value (charValue/valueLength) into the field.
///
///
/// This function works exactly like `RfcSetChars`, the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in *charValue The characters to write into the field.
/// \in valueLength The number of characters to read from charValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetCharsByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              charValue: *const RFC_CHAR,
                              valueLength: ::std::os::raw::c_uint,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of a NUMC field.
///
///
/// The target field needs to be of type RFCTYPE_NUM.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in *charValue The digits [0..9] to write into the field.
/// \in valueLength The number of characters to read from charValue.
/// \out *errorInfo More information in case the field does not exist or the parameter value is invalid.
/// \return RFC_RC
    pub fn RfcSetNum(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                     charValue: *const RFC_NUM,
                     valueLength: ::std::os::raw::c_uint,
                     errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of a NUMC field.
///
///
/// This function works exactly like RfcSetNum(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in *charValue The digits [0..9] to write into the field.
/// \in valueLength The number of characters to read from charValue.
/// \out *errorInfo More information in case the field does not exist or the parameter value is invalid.
/// \return RFC_RC
    pub fn RfcSetNumByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                            index: ::std::os::raw::c_uint,
                            charValue: *const RFC_NUM,
                            valueLength: ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given string value (stringValue/valueLength) into the field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_NUM
/// - RFCTYPE_DATE
/// - RFCTYPE_TIME
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
/// Note: If the target field is a numerical type, the RFC library tries to convert the string
/// to a number. If the target field has type BYTE or XSTRING, the char value will be interpreted as
/// hex encoded string representation of the bytes. Its length needs to be even in that case.\n
/// Example: the 8 characters "CAFEBABE" will be converted to 4 bytes 0xCA 0xFE 0xBA 0xBE.
///
/// If the value cannot be converted to the desired target type, RFC_CONVERSION_ERROR will be
/// returned.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in *stringValue The characters to write into the field.
/// \in valueLength The number of characters to read from stringValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetString(dataHandle: DATA_CONTAINER_HANDLE,
                        name: *const SAP_UC, stringValue: *const SAP_UC,
                        valueLength: ::std::os::raw::c_uint,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given string value (stringValue/valueLength) into the field.
///
///
/// This function works exactly like RfcSetString(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in *stringValue The characters to write into the field.
/// \in valueLength The number of characters to read from stringValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetStringByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                               index: ::std::os::raw::c_uint,
                               stringValue: *const SAP_UC,
                               valueLength: ::std::os::raw::c_uint,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of a DATE field.
///
///
/// The target field needs to be of type RFCTYPE_DATE.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in date The date value to write into the field.
/// \out *errorInfo Is the field not of type DATE?
/// \return RFC_RC
    pub fn RfcSetDate(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      date: *mut RFC_CHAR, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets the value of a DATE field.
///
///
/// This function works exactly like RfcSetDate(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in date The date value to write into the field.
/// \out *errorInfo Is the field not of type DATE?
/// \return RFC_RC
    pub fn RfcSetDateByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint,
                             date: *mut RFC_CHAR,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of a TIME field.
///
///
/// The target field needs to be of type RFCTYPE_TIME.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in time The time value to write into the field.
/// \out *errorInfo Is the field not of type TIME?
/// \return RFC_RC
    pub fn RfcSetTime(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      time: *mut RFC_CHAR, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets the value of a TIME field.
///
///
/// This function works exactly like RfcSetTime(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in time The time value to write into the field.
/// \out *errorInfo Is the field not of type TIME?
/// \return RFC_RC
    pub fn RfcSetTimeByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint,
                             time: *mut RFC_CHAR,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given byte value (byteValue/valueLength) into the field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
/// \note: If the target field has type CHAR or STRING, the byte value
/// will be stored as a hex representation of the bytes.\n
/// If the target field has a numerical type, the byte value will be
/// assigned only if the given valueLength matches the field length.
/// In order to use this feature, you need to know exactly what you are doing...
/// E.g. when setting 8 bytes into an RFC_FLOAT field, you need to understand the
/// IEEE floating point format. Better only use this function for setting RAW fields.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in *byteValue The byte value to write into the field.
/// \in valueLength The number of bytes to use from byteValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetBytes(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       byteValue: *const SAP_RAW,
                       valueLength: ::std::os::raw::c_uint,
                       errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given byte value (byteValue/valueLength) into the field.
///
///
/// This function works exactly like RfcSetBytes(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in *byteValue The byte value to write into the field.
/// \in valueLength The number of bytes to use from byteValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetBytesByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              byteValue: *const SAP_RAW,
                              valueLength: ::std::os::raw::c_uint,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given byte value (byteValue/valueLength) into the field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_BYTE
/// - RFCTYPE_XSTRING
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_INTx
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_DECFxx
/// \note: If the target field has type CHAR or STRING, the byte value
/// will be stored as a hex representation of the bytes.\n
/// If the target field has a numerical type, the byte value will be
/// assigned only if the given valueLength matches the field length.
/// In order to use this feature, you need to know exactly what you are doing...
/// E.g. when setting 8 bytes into an RFC_FLOAT field, you need to understand the
/// IEEE floating point format. Better only use this function for setting RAW fields.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in *byteValue The byte value to write into the field.
/// \in valueLength The number of bytes to use from byteValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetXString(dataHandle: DATA_CONTAINER_HANDLE,
                         name: *const SAP_UC, byteValue: *const SAP_RAW,
                         valueLength: ::std::os::raw::c_uint,
                         errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the given byte value (byteValue/valueLength) into the field.
///
///
/// This function works exactly like RfcSetXString(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in *byteValue The byte value to write into the field.
/// \in valueLength The number of bytes to use from byteValue.
/// \out *errorInfo More information in case the field does not exist or a conversion fails.
/// \return RFC_RC
    pub fn RfcSetXStringByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                index: ::std::os::raw::c_uint,
                                byteValue: *const SAP_RAW,
                                valueLength: ::std::os::raw::c_uint,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of an INT4 field.
///
///
/// The target field needs to be of type RFCTYPE_INT.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The integer value to set.
/// \out *errorInfo Field does not exist or is not of type INT4?
/// \return RFC_RC
    pub fn RfcSetInt(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                     value: RFC_INT, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets the value of an INT4 field.
///
///
/// This function works exactly like RfcSetInt(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The integer value to set.
/// \out *errorInfo Field does not exist or is not of type INT4?
/// \return RFC_RC
    pub fn RfcSetIntByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                            index: ::std::os::raw::c_uint, value: RFC_INT,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of an INT1 field.
///
///
/// The target field needs to be of type RFCTYPE_INT1.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The integer value to set.
/// \out *errorInfo Field does not exist or is not of type INT1?
/// \return RFC_RC
    pub fn RfcSetInt1(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      value: RFC_INT1, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets the value of an INT1 field.
///
///
/// This function works exactly like RfcSetInt1(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The integer value to set.
/// \out *errorInfo Field does not exist or is not of type INT1?
/// \return RFC_RC
    pub fn RfcSetInt1ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint, value: RFC_INT1,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of an INT2 field.
///
///
/// The target field needs to be of type RFCTYPE_INT2.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The integer value to set.
/// \out *errorInfo Field does not exist or is not of type INT2?
/// \return RFC_RC
    pub fn RfcSetInt2(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                      value: RFC_INT2, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets the value of an INT2 field.
///
///
/// This function works exactly like RfcSetInt2(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The integer value to set.
/// \out *errorInfo Field does not exist or is not of type INT2?
/// \return RFC_RC
    pub fn RfcSetInt2ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                             index: ::std::os::raw::c_uint, value: RFC_INT2,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets a floating point field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_CHAR
/// - RFCTYPE_STRING
/// - RFCTYPE_NUM
/// - RFCTYPE_DECF16
/// - RFCTYPE_DECF34
/// Note: If the target field is CHAR or STRING, the value will be converted to a string in
/// scientific notation. If it is NUMC, it will be truncated to the next integer.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The double value to set.
/// \out *errorInfo Field does not exist or is not of a supported type?
/// \return RFC_RC
    pub fn RfcSetFloat(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       value: RFC_FLOAT, errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Sets a floating point field.
///
///
/// This function works exactly like RfcSetFloat(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The double value to set.
/// \out *errorInfo Field does not exist or is not of a supported type?
/// \return RFC_RC
    pub fn RfcSetFloatByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint, value: RFC_FLOAT,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of an 8 byte decfloat object into a field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_DECF16
/// - RFCTYPE_DECF34
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_STRING
/// - RFCTYPE_BYTE     Needs to be 8 byte long.
/// - RFCTYPE_XSTRING
/// Note: If the target field is CHAR or STRING, the value will be converted to a string in
/// scientific notation. If it is NUMC, it will be truncated to the next integer.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The decfloat value to set.
/// \out *errorInfo Field does not exist or is not of a supported type?
/// \return RFC_RC
    pub fn RfcSetDecF16(dataHandle: DATA_CONTAINER_HANDLE,
                        name: *const SAP_UC, value: RFC_DECF16,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of an 8 byte decfloat object into a field.
///
///
/// This function works exactly like RfcSetDecF16(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The decfloat value to set.
/// \out *errorInfo Field does not exist or is not of a supported type?
/// \return RFC_RC
    pub fn RfcSetDecF16ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                               index: ::std::os::raw::c_uint,
                               value: RFC_DECF16,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of a 16 byte decfloat object into a field.
///
///
/// The field specified by name needs to be of one of the following data types:
/// - RFCTYPE_DECF16
/// - RFCTYPE_DECF34
/// - RFCTYPE_FLOAT
/// - RFCTYPE_BCD
/// - RFCTYPE_INT
/// - RFCTYPE_INT2
/// - RFCTYPE_INT1
/// - RFCTYPE_CHAR
/// - RFCTYPE_NUM
/// - RFCTYPE_STRING
/// - RFCTYPE_BYTE     Needs to be 8 byte long.
/// - RFCTYPE_XSTRING
/// Note: If the target field is CHAR or STRING, the value will be converted to a string in
/// scientific notation. If it is NUMC, it will be truncated to the next integer.
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The decfloat value to set.
/// \out *errorInfo Field does not exist or is not of a supported type?
/// \return RFC_RC
    pub fn RfcSetDecF34(dataHandle: DATA_CONTAINER_HANDLE,
                        name: *const SAP_UC, value: RFC_DECF34,
                        errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the value of a 16 byte decfloat object into a field.
///
///
/// This function works exactly like RfcSetDecF34(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The decfloat value to set.
/// \out *errorInfo Field does not exist or is not of a supported type?
/// \return RFC_RC
    pub fn RfcSetDecF34ByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                               index: ::std::os::raw::c_uint,
                               value: RFC_DECF34,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Copies the given structure into the target structure of the parent container.
///
///
/// The target field needs to be of type RFCTYPE_STRUCTURE.
///
/// Note: If you want to avoid the copy operation, use RfcGetStructure() and set the subfields here,
/// instead of the sequence RfcCreateStructure()/ setting the subfields/ #RfcSetStructure().
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The structure to copy.
/// \out *errorInfo Out of memory, field does not exist or is not of type RFCTYPE_STRUCTURE?
/// \return RFC_RC
    pub fn RfcSetStructure(dataHandle: DATA_CONTAINER_HANDLE,
                           name: *const SAP_UC, value: RFC_STRUCTURE_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Copies the given structure into the target structure of the parent container.
///
///
/// This function works exactly like RfcSetStructure(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The structure to copy.
/// \out *errorInfo Out of memory, field does not exist or is not of type RFCTYPE_STRUCTURE?
/// \return RFC_RC
    pub fn RfcSetStructureByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                  index: ::std::os::raw::c_uint,
                                  value: RFC_STRUCTURE_HANDLE,
                                  errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Copies the given table into the target table of the parent container.
///
///
/// The target field needs to be of type RFCTYPE_TABLE.
///
/// Note: If you want to avoid the copy operation, use RfcGetTable() and set the subfields here,
/// instead of the sequence RfcCreateTable()/ setting the subfields/ #RfcSetTable().
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The table to copy.
/// \out *errorInfo Field does not exist or is not of type RFCTYPE_TABLE?
/// \return RFC_RC
    pub fn RfcSetTable(dataHandle: DATA_CONTAINER_HANDLE, name: *const SAP_UC,
                       value: RFC_TABLE_HANDLE,
                       errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Copies the given table into the target table of the parent container.
///
///
/// This function works exactly like RfcSetTable(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle or table handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The table to copy.
/// \out *errorInfo Field does not exist or is not of type RFCTYPE_TABLE?
/// \return RFC_RC
    pub fn RfcSetTableByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                              index: ::std::os::raw::c_uint,
                              value: RFC_TABLE_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Copies the object into the target object of the parent container.
///
///
/// The target field needs to be of type RFCTYPE_ABAPOBJECT.
///
/// Note: If you want to avoid the copy operation, use RfcGetAbapObject() and if the instance already exists set the subfields here,
/// instead of the sequence RfcCreateAbapObject()/ setting the subfields/ #RfcSetAbapObject().
///
/// \in dataHandle A data container (function handle, structure handle, table handle or object handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *name The name of the field to set.
/// \in value The object to copy.
/// \out *errorInfo Field does not exist or is not of type RFCTYPE_ABAPOBJECT?
/// \return RFC_RC
    pub fn RfcSetAbapObject(dataHandle: DATA_CONTAINER_HANDLE,
                            name: *const SAP_UC,
                            value: RFC_ABAP_OBJECT_HANDLE,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Copies the object into the target object of the parent container.
///
///
/// This function works exactly like RfcSetAbapObject(), the difference being that the field is
/// addressed by its index within the structure/table/function module. The first field has index 0,
/// last field has index n-1, the order of the fields is as defined in the ABAP DDIC.
///
///
/// \in dataHandle A data container (function handle, structure handle, table handle or object handle). If dataHandle
/// is a table handle, the function will set the field value of the current row.
/// \in *index The index of the field to set.
/// \in value The object to copy.
/// \out *errorInfo Field does not exist or is not of type RFCTYPE_ABAPOBJECT?
/// \return RFC_RC
    pub fn RfcSetAbapObjectByIndex(dataHandle: DATA_CONTAINER_HANDLE,
                                   index: ::std::os::raw::c_uint,
                                   value: RFC_ABAP_OBJECT_HANDLE,
                                   errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Gets the ABAP exception object handle from the given function handle.
///
///
/// If a call to #RfcInvoke() returned RFC_ABAP_CLASS_EXCEPTION, the RFC client calls this function afterwards with the original function handle
/// in order to get access to the details of the class exception.
/// \in funcHandle   Function module data container.
/// \out *errorInfo  Should always return successfully.
/// \return A handle to an ABAP class exception object .
    pub fn RfcGetAbapClassException(funcHandle: RFC_FUNCTION_HANDLE,
                                    errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_ABAP_OBJECT_HANDLE;
}
extern "C" {
    /// Sets the ABAP exception object handle to the given function handle.
///
///
/// If an RFC server function wants to throw an ABAP class exception, it calls this function before it returns with RFC_ABAP_CLASS_EXCEPTION.
/// \in funcHandle   Function module data container .
/// \in excpHandle   Object handle to the class exception to be thrown.
/// \in exceptionText  Exception text.
/// \out *errorInfo  Should always return successfully.
/// \return RFC_RC
    pub fn RfcSetAbapClassException(funcHandle: RFC_FUNCTION_HANDLE,
                                    excpHandle: RFC_ABAP_OBJECT_HANDLE,
                                    exceptionText: *const SAP_UC,
                                    errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the metadata description for the given function module.
///
///
///
/// \in funcHandle A function module.
/// \out *errorInfo Can't possibly go wrong...
/// \return The metadata description that had been used when creating the function module container.
    pub fn RfcDescribeFunction(funcHandle: RFC_FUNCTION_HANDLE,
                               errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_FUNCTION_DESC_HANDLE;
}
extern "C" {
    /// Returns the metadata description of the given structure or table (RFC_STRUCTURE_HANDLE or RFC_TABLE_HANDLE).
///
///
///
/// \in dataHandle A structure or table.
/// \out *errorInfo Can't possibly go wrong...
/// \return The type description of the given structure (in case dataHandle is a structure), or the
/// type description of the table line type (in case dataHandle is a table).
    pub fn RfcDescribeType(dataHandle: DATA_CONTAINER_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_TYPE_DESC_HANDLE;
}
extern "C" {
    /// Returns the function description that is valid for the system to which rfcHandle points to.
///
///
/// If the function description is already in the repository cache for that system ID, it will be
/// returned immediately (from the cache), otherwise it will be looked up in the system's DDIC using
/// the rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.
///
/// The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different
/// from R/3 release to R/3 release.
/// This is the main API that should be used.
///
/// \in rfcHandle Open client connection to the R/3 System, for which you need the function module description.
/// \in *funcName Name of the function module to look up.
/// \out *errorInfo More error details in case something goes wrong.
/// \return The metadata description of the given function module.
    pub fn RfcGetFunctionDesc(rfcHandle: RFC_CONNECTION_HANDLE,
                              funcName: *const SAP_UC,
                              errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_FUNCTION_DESC_HANDLE;
}
extern "C" {
    /// Looks for a cached function description.
///
///
/// This API should be used with care and is only for special scenarios, for example:
/// 1. You know for sure, that a function description has already been cached via RfcGetFunctionDesc(),
/// and don't want to open an extra rfcHandle that will never be used.
/// In this case simply use the SAP System ID as the repositoryID.
/// 2. You have created a hard-coded repository via RfcAddFunctionDesc(), which contains function modules
/// that do not exist in the backend's DDIC.
///
/// If repositoryID is NULL, the "default repository" is used.
///
/// \in *repositoryID System ID of R/3 System, for which this function module description has been cached,
/// or NULL in case you want to look for it in the default repository.
/// \in *funcName Name of the function module.
/// \out *errorInfo Requested function name not in cache?
/// \return The requested function description.
    pub fn RfcGetCachedFunctionDesc(repositoryID: *const SAP_UC,
                                    funcName: *const SAP_UC,
                                    errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_FUNCTION_DESC_HANDLE;
}
extern "C" {
    /// Adds a function description to the cache for the specified R/3 System.
///
///
/// This API should be used with care and is only for special scenarios, e.g. if you want to
/// write an RFC server that offers function modules, which do not exist in the R/3 system's DDIC.
/// If repositoryID is NULL, the description is added to the "default repository".
///
///
/// \in *repositoryID System ID of R/3 System, to whose cache you want to add the function description,
/// or NULL for the default repository.
/// \in funcDesc The function description.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcAddFunctionDesc(repositoryID: *const SAP_UC,
                              funcDesc: RFC_FUNCTION_DESC_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Removes a function description from the cache for the specified R/3 System.
///
///
/// This API can be used, e.g. if the signature (imports, exports, etc.) of a function module has
/// been changed in the backend, while the external RFC program is still running. If the RFC library
/// continues using the old cached metadata description, garbage values (if fields have been deleted
/// from the function module) or missing values (if new fields have been added to the function module)
/// will result.
/// If repositoryID is NULL, the description is removed from the "default repository".
///
///
/// \in *repositoryID System ID of R/3 System, to whose cache you want to add the function description,
/// or NULL for the default repository.
/// \in *functionName The name of the function module, whose description is to be removed from the cache.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcRemoveFunctionDesc(repositoryID: *const SAP_UC,
                                 functionName: *const SAP_UC,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the structure description that is valid for the system to which rfcHandle points to.
///
///
/// If the structure description is already in the repository cache for that system ID, it will be
/// returned immediately (from the cache), otherwise it will be looked up in the system's DDIC using
/// the rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.
///
/// The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different
/// from R/3 release to R/3 release.
/// Note: Normally it should not be necessary to lookup separate structure descriptions. They are
/// already looked up as part of the function module, in which they are used.
///
/// \in rfcHandle Open client connection to the R/3 System, for which you need the structure description.
/// \in *typeName Name of a DDIC structure or table.
/// \out *errorInfo More error details in case something goes wrong.
/// \return The metadata description of the given structure/table.
    pub fn RfcGetTypeDesc(rfcHandle: RFC_CONNECTION_HANDLE,
                          typeName: *const SAP_UC,
                          errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_TYPE_DESC_HANDLE;
}
extern "C" {
    /// Looks for a cached structure/table description.
///
///
/// Similar to RfcGetTypeDesc(), but it only looks into the cache. Again it should almost never
/// be necessary to get a metadata description of a single structure.
///
/// \in *repositoryID System ID of R/3 System, for which this type description has been cached,
/// or NULL in case you want to look for it in the default repository.
/// \in *typeName Name of the DDIC structure/table.
/// \out *errorInfo Requested type name not in cache?
/// \return The requested type description.
    pub fn RfcGetCachedTypeDesc(repositoryID: *const SAP_UC,
                                typeName: *const SAP_UC,
                                errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_TYPE_DESC_HANDLE;
}
extern "C" {
    /// Adds a type description to the cache.
///
///
///
/// \in *repositoryID System ID of R/3 System, to whose cache you want to add the type description,
/// or NULL for the default repository.
/// \in typeHandle The type description.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcAddTypeDesc(repositoryID: *const SAP_UC,
                          typeHandle: RFC_TYPE_DESC_HANDLE,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Removes a type description from the cache.
///
///
///
/// \in *repositoryID System ID of R/3 System, from whose cache you want to remove the type description,
/// or NULL for the default repository.
/// \in *typeName The name of the type, whose description is to be removed from the cache.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcRemoveTypeDesc(repositoryID: *const SAP_UC,
                             typeName: *const SAP_UC,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the class description that is valid for the system to which rfcHandle points to.
///
///
/// If the class description is already in the repository cache for that system ID, it will be
/// returned immediately (from the cache), otherwise it will be looked up in the system's DDIC using
/// the rfcHandle. The result from the DDIC lookup will then be placed into the cache for later use.
///
/// The RFC Runtime maintains a cache for every R/3 System ID, as the meta data could be different
/// from R/3 release to R/3 release.
/// This is the main API that should be used.
///
/// \in rfcHandle Open client connection to the R/3 System, for which you need the class description.
/// \in *className Name of the class to look up.
/// \out *errorInfo More error details in case something goes wrong.
/// \return The metadata description of the given function module.
    pub fn RfcGetClassDesc(rfcHandle: RFC_CONNECTION_HANDLE,
                           className: *const SAP_UC,
                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CLASS_DESC_HANDLE;
}
extern "C" {
    /// Looks for a cached class description.
///
///
/// This API should be used with care and is only for special scenarios, for example:
/// 1. You know for sure, that a class description has already been cached via RfcGetClassDesc(),
/// and don't want to open an extra rfcHandle that will never be used.
/// In this case simply use the SAP System ID as the repositoryID.
/// 2. You have created a hard-coded repository via RfcAddClassDesc(), which contains classes
/// that do not exist in the backend's DDIC.
///
/// If repositoryID is NULL, the "default repository" is used.
///
/// \in *repositoryID System ID of R/3 System, for which this class description has been cached,
/// or NULL in case you want to look for it in the default repository.
/// \in *className Name of the class.
/// \out *errorInfo Requested class name not in cache?
/// \return The requested class description.
    pub fn RfcGetCachedClassDesc(repositoryID: *const SAP_UC,
                                 className: *const SAP_UC,
                                 errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CLASS_DESC_HANDLE;
}
extern "C" {
    /// Returns the metadata description of the given ABAP object handle.
///
///
///
/// \in objectHandle An ABAP object.
/// \out *errorInfo Can't possibly go wrong...
/// \return The class description of the given ABAP object.
    pub fn RfcDescribeAbapObject(objectHandle: RFC_ABAP_OBJECT_HANDLE,
                                 errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CLASS_DESC_HANDLE;
}
extern "C" {
    /// Adds a class description to the cache for the specified R/3 System.
///
///
/// This API should be used with care and is only for special scenarios, e.g. if you want to
/// write an RFC server that offers/uses classes, which do not exist in the R/3 system's DDIC.
/// If repositoryID is NULL, the description is added to the "default repository".
///
///
/// \in *repositoryID System ID of R/3 System, to whose cache you want to add the class description,
/// or NULL for the default repository.
/// \in classDesc The class description.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcAddClassDesc(repositoryID: *const SAP_UC,
                           classDesc: RFC_CLASS_DESC_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Removes a class description from the cache for the specified R/3 System.
///
///
/// If repositoryID is NULL, the description is added to the "default repository".
///
///
/// \in *repositoryID System ID of R/3 System, from whose cache you want to remove the class description,
/// or NULL for the default repository.
/// \in *className The name of the ABAP class, whose description you want to remove.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcRemoveClassDesc(repositoryID: *const SAP_UC,
                              className: *const SAP_UC,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Creates an empty type description with the given name.
///
///
/// API for creating hard-coded metadata descriptions, e.g. for function modules that
/// don't exist in the R/3 backend.
/// Add field descriptions to the type description using RfcAddTypeField() and at the end
/// set the total byte length of the structure using RfcSetTypeLength().
/// \warning It is not easy to get the total length right, as you also need to take
/// alignment bytes into account...
///
/// Finished type definitions can then be used for creating data containers (RfcCreateStructure()
/// or RfcCreateTable()) and for adding field/table descriptions to a function module description
/// (in RFC_PARAMETER_DESCs in RfcAddParameter()).
///
/// After the handle was used for creating a container, any modifications are forbidden.
///
/// \in *name An (arbitrary) name for the type.
/// \out *errorInfo Not enough memory?
/// \return The new type description.
    pub fn RfcCreateTypeDesc(name: *const SAP_UC,
                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_TYPE_DESC_HANDLE;
}
extern "C" {
    /// Adds a new field to the type description.
///
///
/// Note: After a type description has been used (e.g. via RfcCreateStructure(), RfcCreateTable() or
/// RfcAddTypeDesc()), it can no longer be modified!
///
/// \in typeHandle
/// \in *fieldDescr
/// \out *errorInfo
/// \return RFC_RC
    pub fn RfcAddTypeField(typeHandle: RFC_TYPE_DESC_HANDLE,
                           fieldDescr: *const RFC_FIELD_DESC,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the total byte length of the type description.
///
///
/// Before a type description can be used, this function needs to be called.
/// The RFC library does not automatically calculate the correct length based on
/// the fields that have been added, because this task is non-trivial and possibly
/// platform dependend. (Especially if the structure contains sub-structures.)\n
/// For integer and floating point types the correct alignments need to be taken into
/// account (start address divisible by 4 or 8), fixed sub-structures are inlined,
/// complex structures are referenced by an 8-byte pointer, etc. In general you will need
/// to do a bit of trial and error, before you get it right.\n
/// If you really need more details/tips for the process of hardcoding metadata, see
/// <A HREF="https://scn.sap.com/docs/DOC-52888">this article</A>.
///
///
/// \in typeHandle The type description.
/// \in nucByteLength Total byte length of the structure in a non-Unicode system (1 byte per CHAR).
/// \in ucByteLength Total byte length of the structure in a Unicode system (2 bytes per CHAR).
/// \out *errorInfo The function returns an error, if the given byte lengths are smaller than
/// the sum of all field lengths, or if the nucByteLength is smaller than the ucByteLength.
/// \return RFC_RC
    pub fn RfcSetTypeLength(typeHandle: RFC_TYPE_DESC_HANDLE,
                            nucByteLength: ::std::os::raw::c_uint,
                            ucByteLength: ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the name of the type.
///
///
///
/// \in typeHandle The type description.
/// \out bufferForName Will receive the null-terminated DDIC name of the structure definition.
/// \out *errorInfo Should always return successfully...
/// \return RFC_RC
    pub fn RfcGetTypeName(typeHandle: RFC_TYPE_DESC_HANDLE,
                          bufferForName: *mut RFC_CHAR,
                          errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the number of fields in a structure definition.
///
///
///
/// \in typeHandle The type description.
/// \out *count The number of (direct) fields of this structure.
/// \out *errorInfo Should always return successfully...
/// \return RFC_RC
    pub fn RfcGetFieldCount(typeHandle: RFC_TYPE_DESC_HANDLE,
                            count: *mut ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads the field description of the structure's ith field.
///
///
/// Useful mostly when looping over the fields of a structure.
///
/// \in typeHandle The type description.
/// \in index The index of the field you are interested in.
/// \out *fieldDescr Will be filled with field's description.
/// \out *errorInfo Index out of bounds?
/// \return RFC_RC
    pub fn RfcGetFieldDescByIndex(typeHandle: RFC_TYPE_DESC_HANDLE,
                                  index: ::std::os::raw::c_uint,
                                  fieldDescr: *mut RFC_FIELD_DESC,
                                  errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads the field description of a field given by name.
///
///
///
/// \in typeHandle The type description.
/// \in *name The name of the field of interest.
/// \out *fieldDescr Will be filled with field's description.
/// \out *errorInfo No such field?
/// \return RFC_RC
    pub fn RfcGetFieldDescByName(typeHandle: RFC_TYPE_DESC_HANDLE,
                                 name: *const SAP_UC,
                                 fieldDescr: *mut RFC_FIELD_DESC,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the total byte length of a structure definition.
///
///
///
/// \in typeHandle The type description.
/// \out nucByteLength Total byte length in a non-Unicode system.
/// \out ucByteLength Total byte length in a Unicode system.
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcGetTypeLength(typeHandle: RFC_TYPE_DESC_HANDLE,
                            nucByteLength: *mut ::std::os::raw::c_uint,
                            ucByteLength: *mut ::std::os::raw::c_uint,
                            errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Deletes the type description and releases the allocated resources.
///
///
/// Only descriptions, which are not stored in a repository cache and not used by the application, can be deleted.
/// Deleting a cached description will cause an error, and deleting a description that is still in use, will lead
/// to a crash.
///
///
/// \inout typeHandle The type description to be deleted.
/// \out *errorInfo
/// \return
    pub fn RfcDestroyTypeDesc(typeHandle: RFC_TYPE_DESC_HANDLE,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Creates an empty function description with the given name.
///
///
/// Add parameter descriptions and exception descriptions to the new RFC_FUNCTION_DESC_HANDLE
/// via RfcAddParameter() and RfcAddException().\n
///
/// After the handle was used for creating a container, any modifications are forbidden.
///
/// \in *name The name of the function module.
/// \out *errorInfo Probably not enough memory left?!
/// \return An empty function description that can be used for constructing hard-coded metadata.
    pub fn RfcCreateFunctionDesc(name: *const SAP_UC,
                                 errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_FUNCTION_DESC_HANDLE;
}
extern "C" {
    /// Returns a function module's DDIC name.
///
///
///
/// \in funcDesc The function module description.
/// \out bufferForName Will receive the function module's DDIC name.
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcGetFunctionName(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                              bufferForName: *mut RFC_CHAR,
                              errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Adds a new parameter (IMPORTING, EXPORTING, CHANGING, TABLES) to the function description.
///
///
/// Note: After the function description has been used via RfcCreateFunction() or RfcAddFunctionDesc(),
/// it can no longer be modified!
///
/// \in funcDesc The function module description.
/// \in *paramDescr Metadata description of the new parameter.
/// \out *errorInfo More details in case something goes wrong.
/// \return RFC_RC
    pub fn RfcAddParameter(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                           paramDescr: *const RFC_PARAMETER_DESC,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the number of parameters in the function module definition.
///
///
///
/// \in funcDesc The function module's metadata description.
/// \out *count The number of parameters (IMPORTING, EXPORTING, CHANGING, TABLES).
/// \out *errorInfo Nothing can go wrong here.
/// \return RFC_RC
    pub fn RfcGetParameterCount(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                count: *mut ::std::os::raw::c_uint,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads the metadata description of the function module's ith parameter.
///
///
/// Note: Mostly be useful when looping over all parameters of a function module.
///
/// \in funcDesc The function module's metadata description.
/// \in index The index of the parameter to describe.
/// \out *paramDesc Metadata description of the specified parameter.
/// \out *errorInfo Index out of bounds?
/// \return RFC_RC
    pub fn RfcGetParameterDescByIndex(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                      index: ::std::os::raw::c_uint,
                                      paramDesc: *mut RFC_PARAMETER_DESC,
                                      errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Reads the metadata description of a function module parameter given by name.
///
///
///
/// \in funcDesc The function module's metadata description.
/// \in *name The name of the parameter to describe.
/// \out *paramDesc Metadata description of the specified parameter.
/// \out *errorInfo No such parameter?
/// \return RFC_RC
    pub fn RfcGetParameterDescByName(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                     name: *const SAP_UC,
                                     paramDesc: *mut RFC_PARAMETER_DESC,
                                     errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Adds a new ABAP Exception to the function description.
///
///
/// Note: After the function description has been used via RfcCreateFunction() or RfcAddFunctionDesc(),
/// it can no longer be modified!
///
///
/// \in funcDesc The function module's metadata description.
/// \in *excDesc The description of the exception to add.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcAddException(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                           excDesc: *const RFC_EXCEPTION_DESC,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the number of ABAP Exceptions of the function module.
///
///
///
/// \in funcDesc The function module's metadata description.
/// \out *count The number of the function module's ABAP Exceptions.
/// \out *errorInfo Not much that can go wrong here.
/// \return RFC_RC
    pub fn RfcGetExceptionCount(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                count: *mut ::std::os::raw::c_uint,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Reads the metadata description of the function module's ith ABAP Exception.
///
///
///
/// \in funcDesc The function module's metadata description.
/// \in index The index of the exception to describe.
/// \out *excDesc The ABAP Exception's metadata description.
/// \out *errorInfo Index out of bounds?
/// \return RFC_RC
    pub fn RfcGetExceptionDescByIndex(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                      index: ::std::os::raw::c_uint,
                                      excDesc: *mut RFC_EXCEPTION_DESC,
                                      errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Reads the metadata description of a function module's ABAP Exception given by name.
///
///
///
/// \in funcDesc The function module's metadata description.
/// \in *name The name of the exception to describe.
/// \out *excDesc The ABAP Exception's metadata description.
/// \out *errorInfo No such ABAP Exception?
/// \return RFC_RC
    pub fn RfcGetExceptionDescByName(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                     name: *const SAP_UC,
                                     excDesc: *mut RFC_EXCEPTION_DESC,
                                     errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Enables this function module for the basXML serialization format.
///
///
/// R/3 Systems from kernel release 7.10 on support a new serialization format: basXML (binary ABAP serialization).
/// Calling %RfcEnableBASXML() allows the RFC library to transport this function module's data via the
/// basXML format, if the target backend supports it.
///
/// \in funcDesc The function module's metadata description.
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcEnableBASXML(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns whether this function module has been enabled for basXML.
///
///
/// See RfcEnableBASXML()
///
/// \in funcDesc The function module's metadata description.
/// \out *isEnabled 0 = false, 1 = true.
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcIsBASXMLSupported(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                isEnabled: *mut ::std::os::raw::c_int,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {

    /// Deletes the function description and releases the allocated resources.
    ///
    /// Only descriptions, which are not stored in a repository cache and not used by the application, can be deleted.
    /// Deleting a cached description will cause an error, and deleting a description that is still in use, will lead
    /// to a crash.
    pub fn RfcDestroyFunctionDesc(funcDesc: RFC_FUNCTION_DESC_HANDLE,
                                  errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Enables this function handle for ABAP class exception support.
///
///
/// R/3 Systems from kernel release 7.11 on support ABAP class exceptions.
/// Calling %RfcEnableAbapClassException() allows an RFC client to inform the ABAP backend that it can handle ABAP class exceptions
/// for the current function call using this function handle. If the ABAP backend supports class-based exceptions as well,
/// it can now safely throw such an exception.\n
/// Needs to be called before the corresponding RfcInvoke().
///
/// \in funcHandle Function module data container.
/// \in rfcHandleRepository RFC connection handle to the repository system from where the missing metadata can be
/// dynamically retrieved during de-serializing the received ABAP class exceptions. This handle can be NULL but should not be
/// the same that is used for the RFC call itself.
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcEnableAbapClassException(funcHandle: RFC_FUNCTION_HANDLE,
                                       rfcHandleRepository:
                                           RFC_CONNECTION_HANDLE,
                                       errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Checks whether this function handle has been enabled for ABAP class exception support.
///
///
/// R/3 Systems from kernel release 7.11 on support ABAP class exception.
/// Typically, an RFC server can use this function in order to find out, whether the function module currently being processed has
/// ABAP class exceptions enabled in the ABAP backend. Only if this is the case, can the RFC Server safely throw an ABAP class exception.
///
/// \in funcHandle Function module data container.
/// \out *isEnabled Flag indicating whether the function handle has been enabled for ABAP class based exception support.
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcIsAbapClassExceptionEnabled(funcHandle: RFC_FUNCTION_HANDLE,
                                          isEnabled:
                                              *mut ::std::os::raw::c_int,
                                          errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Creates an empty class description with the given name.
///
///
/// Add attribute descriptions to the new RFC_CLASS_DESC_HANDLE via RfcAddAttribute().\n
///
/// After the handle was used for creating a container, any modifications are forbidden.
///
/// \in *name The name of the ABAP class.
/// \out *errorInfo Probably not enough memory left?!
/// \return An empty function description that can be used for constructing hard-coded metadata.
    pub fn RfcCreateClassDesc(name: *const SAP_UC,
                              errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_CLASS_DESC_HANDLE;
}
extern "C" {
    /// Returns the class's DDIC name.
///
///
///
/// \in classDesc The class description.
/// \out bufferForName Will receive the function module's DDIC name (zero terminated).
/// \out *errorInfo Should always return successfully.
/// \return RFC_RC
    pub fn RfcGetClassName(classDesc: RFC_CLASS_DESC_HANDLE,
                           bufferForName: *mut RFC_CHAR,
                           errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Adds a new attribute (field, structure, table, method) to the class description.
///
///
/// Note: After the function description has been used via RfcCreateAbapObject() or RfcAddClassDesc(),
/// it can no longer be modified!
///
/// \in classDesc The class description.
/// \in *attrDesc Metadata description of the new class attribute.
/// \out *errorInfo More details in case something goes wrong.
/// \return RFC_RC
    pub fn RfcAddClassAttribute(classDesc: RFC_CLASS_DESC_HANDLE,
                                attrDesc: *const RFC_CLASS_ATTRIBUTE_DESC,
                                errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the number of parameters in the function module definition.
///
///
///
/// \in classDesc The class description.
/// \out *count The number of attributes.
/// \out *errorInfo Nothing can go wrong here.
/// \return RFC_RC
    pub fn RfcGetClassAttributesCount(classDesc: RFC_CLASS_DESC_HANDLE,
                                      count: *mut ::std::os::raw::c_uint,
                                      errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Reads the metadata description of the class attribute.
///
///
/// Note: Is useful mostly when looping over all attributes of a class.
///
/// \in classDesc The class metadata description.
/// \in index The index of the attributes to describe.
/// \out *attrDesc Metadata description of the class attribute.
/// \out *errorInfo Index out of bounds?
/// \return RFC_RC
    pub fn RfcGetClassAttributeDescByIndex(classDesc: RFC_CLASS_DESC_HANDLE,
                                           index: ::std::os::raw::c_uint,
                                           attrDesc:
                                               *mut RFC_CLASS_ATTRIBUTE_DESC,
                                           errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Reads the metadata description of a class attribute given by name.
///
///
///
/// \in classDesc The class metadata description.
/// \in *name The name of the parameter to describe.
/// \out *attrDesc Metadata description of the class attribute.
/// \out *errorInfo No such parameter?
/// \return RFC_RC
    pub fn RfcGetClassAttributeDescByName(classDesc: RFC_CLASS_DESC_HANDLE,
                                          name: *const SAP_UC,
                                          attrDesc:
                                              *mut RFC_CLASS_ATTRIBUTE_DESC,
                                          errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the parent classes of the given class.
///
///
/// \in classDesc The class metadata description.
/// \in name The parent class name.
/// \in index Index of parent class.
/// \out *errorInfo Current class does not inherit from parent class?
/// \return RFC_RC
    pub fn RfcGetParentClassByIndex(classDesc: RFC_CLASS_DESC_HANDLE,
                                    name: *mut RFC_CHAR,
                                    index: ::std::os::raw::c_uint,
                                    errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the number of parent classes of the given class.
///
///
///
/// \in classDesc The class metadata description.
/// \out *parentClassesCount Number of parent classes in the list.
/// \out *errorInfo Should always be successful.
/// \return RFC_RC
    pub fn RfcGetParentClassesCount(classDesc: RFC_CLASS_DESC_HANDLE,
                                    parentClassesCount:
                                        *mut ::std::os::raw::c_uint,
                                    errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Sets the parent classes of the given class.
///
///
///
/// \in classDesc The class metadata description.
/// \in name Parent class name to be added.
/// \out *errorInfo No such parameter?
/// \return RFC_RC
    pub fn RfcAddParentClass(classDesc: RFC_CLASS_DESC_HANDLE,
                             name: *mut RFC_CHAR,
                             errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
extern "C" {
    /// Returns the implemented interfaces of the given class.
///
///
///
/// \in classDesc The class metadata description.
/// \in index Index of the implemented interface.
/// \out name Buffer for the implemented interface's name.
/// \out *errorInfo Index out of bounds?
/// \return RFC_RC
    pub fn RfcGetImplementedInterfaceByIndex(classDesc: RFC_CLASS_DESC_HANDLE,
                                             index: ::std::os::raw::c_uint,
                                             name: *mut RFC_CHAR,
                                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the number of parent interfaces of the given class.
///
///
///
/// \in classDesc The class metadata description.
/// \out *implementedInterfacesCount Number of implemented interfaces.
/// \out *errorInfo Should always be successful.
/// \return RFC_RC
    pub fn RfcGetImplementedInterfacesCount(classDesc: RFC_CLASS_DESC_HANDLE,
                                            implementedInterfacesCount:
                                                *mut ::std::os::raw::c_uint,
                                            errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Adds an interface to the list of implemented interfaces of the given class.
///
///
///
/// \in classDesc The class metadata description.
/// \in name Name of implemented interface to be added.
/// \out *errorInfo Not much can go wrong here except out of memory.
/// \return RFC_RC
    pub fn RfcAddImplementedInterface(classDesc: RFC_CLASS_DESC_HANDLE,
                                      name: *mut RFC_CHAR,
                                      errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Deletes the class description and releases the allocated resources.
///
///
/// Only descriptions, which are not stored in a repository cache and not used by the application, can be deleted.
/// Deleting a cached description will cause an error, and deleting a description that is still in use, will lead
/// to a crash.
///
///
/// \in classHandle The class description to be deleted.
/// \out *errorInfo More details in case the description can not be destroyed.
/// \return RFC_RC
    pub fn RfcDestroyClassDesc(classHandle: RFC_CLASS_DESC_HANDLE,
                               errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}
pub type RFC_METADATA_QUERY_RESULT_HANDLE = *mut ::std::os::raw::c_void;

/// _RFC_METADATA_QUERY_RESULT_ENTRY
///
///
/// Structure containing the error that occurred during the metadata query.
#[repr(C)]
#[derive(Copy)]
pub struct _RFC_METADATA_QUERY_RESULT_ENTRY {
    pub name: RFC_ABAP_NAME,
    pub errorMessage: [SAP_UC; 512usize],
}
#[test]
fn bindgen_test_layout__RFC_METADATA_QUERY_RESULT_ENTRY() {
    assert_eq!(::std::mem::size_of::<_RFC_METADATA_QUERY_RESULT_ENTRY>() ,
               543usize , concat ! (
               "Size of: " , stringify ! ( _RFC_METADATA_QUERY_RESULT_ENTRY )
               ));
    assert_eq! (::std::mem::align_of::<_RFC_METADATA_QUERY_RESULT_ENTRY>() ,
                1usize , concat ! (
                "Alignment of " , stringify ! (
                _RFC_METADATA_QUERY_RESULT_ENTRY ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_METADATA_QUERY_RESULT_ENTRY ) ) .
                name as * const _ as usize } , 0usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_METADATA_QUERY_RESULT_ENTRY ) , "::" , stringify ! ( name
                ) ));
    assert_eq! (unsafe {
                & ( * ( 0 as * const _RFC_METADATA_QUERY_RESULT_ENTRY ) ) .
                errorMessage as * const _ as usize } , 31usize , concat ! (
                "Alignment of field: " , stringify ! (
                _RFC_METADATA_QUERY_RESULT_ENTRY ) , "::" , stringify ! (
                errorMessage ) ));
}
impl Clone for _RFC_METADATA_QUERY_RESULT_ENTRY {
    fn clone(&self) -> Self { *self }
}
impl Default for _RFC_METADATA_QUERY_RESULT_ENTRY {
    fn default() -> Self { unsafe { ::std::mem::zeroed() } }
}
pub type RFC_METADATA_QUERY_RESULT_ENTRY = _RFC_METADATA_QUERY_RESULT_ENTRY;
#[repr(u32)]
/// _RFC_METADATA_OBJ_TYPE
///
///
/// An RFC_METADATA_OBJ_TYPE indicates whether in a call to RfcGetMetadataQueryFailedEntry() or RfcGetMetadataQuerySucceededEntry()
/// you are interested in the error/success message for a function module (_FUNCTION), structure/table (_TYPE) or ABAP Class (_CLASS).
/// It needs to be passed to the above two functions.
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub enum _RFC_METADATA_OBJ_TYPE {
    RFC_METADATA_FUNCTION = 0,
    RFC_METADATA_TYPE = 1,
    RFC_METADATA_CLASS = 2,
}
pub use self::_RFC_METADATA_OBJ_TYPE as RFC_METADATA_OBJ_TYPE;
extern "C" {
    /// Creates the metadata query result
///
///
/// Metadata query results contain the names of functions, types and classes queried successfully, and the corresponding
/// errors, if the query failed.
///
/// \out *errorInfo More details in error case
/// \return Handle to a metadata query result
    pub fn RfcCreateMetadataQueryResult(errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_METADATA_QUERY_RESULT_HANDLE;
}
extern "C" {
    /// Destroys the metadata query result
///
///
/// Releases all resources allocated by the metadata query result.
///
/// \in handle Handle to a metadata query result
/// \out *errorInfo More details in error case
/// \return RFC_RC
    pub fn RfcDestroyMetadataQueryResult(handle:
                                             RFC_METADATA_QUERY_RESULT_HANDLE,
                                         errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Describes the metadata query result
///
///
/// Returns the number of succeeded and failed entries in the metadata query result. The entries' content can be read with
/// RfcGetMetadataQueryFailedEntry() and RfcGetMetadataQuerySucceededEntry().
///
/// \in handle Handle to a metadata query result
/// \in type Type of the metadata objects you are interested in
/// \out *successful Number of metadata objects queried successfully
/// \out *failed Number of metadata objects that could not be queried
/// \out *errorInfo More details in error case
/// \return RFC_RC
    pub fn RfcDescribeMetadataQueryResult(handle:
                                              RFC_METADATA_QUERY_RESULT_HANDLE,
                                          type_: RFC_METADATA_OBJ_TYPE,
                                          successful:
                                              *mut ::std::os::raw::c_uint,
                                          failed: *mut ::std::os::raw::c_uint,
                                          errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns the error entry from the metadata query result
///
///
/// Returns the object name and the error text, if an error occurred during the query.
///
/// \in handle Handle to a metadata query result
/// \in type Type of the requested object
/// \in index Index of the requested object. Must be between 0 and "failed - 1", where "failed" is the value
/// returned from RfcDescribeMetadataQueryResult() for the given RFC_METADATA_OBJ_TYPE.
/// \inout *entry Pointer to the allocated structure to store the name of the metadata object and the error text
/// \out *errorInfo More details in error case
/// \return RFC_RC
    pub fn RfcGetMetadataQueryFailedEntry(handle:
                                              RFC_METADATA_QUERY_RESULT_HANDLE,
                                          type_: RFC_METADATA_OBJ_TYPE,
                                          index: ::std::os::raw::c_uint,
                                          entry:
                                              *mut RFC_METADATA_QUERY_RESULT_ENTRY,
                                          errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Returns a succeeded entry from the metadata query result
///
///
/// Returns the object name of a successfully queried object.
///
/// \in handle Handle to a metadata query result
/// \in type Type of the requested object
/// \in index Index of the requested object. Must be between 0 and "successful - 1", where "successful" is the value
/// returned from RfcDescribeMetadataQueryResult() for the given RFC_METADATA_OBJ_TYPE.
/// \inout *succeedObj Pointer to the allocated buffer to store the name of the metadata object
/// \out *errorInfo More details in error case
/// \return RFC_RC
    pub fn RfcGetMetadataQuerySucceededEntry(handle:
                                                 RFC_METADATA_QUERY_RESULT_HANDLE,
                                             type_: RFC_METADATA_OBJ_TYPE,
                                             index: ::std::os::raw::c_uint,
                                             succeedObj: *mut RFC_CHAR,
                                             errorInfo: *mut RFC_ERROR_INFO)
     -> RFC_RC;
}
extern "C" {
    /// Queries the meta data for function, type and class lists.
///
///
/// Queries the meta data for function, type and class lists. All meta data is fetched using one roundtrip,
/// the result is cached in the repository cache.
///
/// Note: You can use this feature only, if your backend system supports it. SAP Note 1456826 describes the
/// required minimum support package level that the backend system must have. If the backend system supports
/// it, open the RFC_CONNECTION_HANDLE with the additional logon parameter USE_REPOSITORY_ROUNDTRIP_OPTIMIZATION=1,
/// before you pass it to %RfcMetadataBatchQuery().
///
/// \in rfcHandle Open client connection to the R/3 System, for which you need the function module, type or class descriptions.
/// \in *functionNames Names of the function modules to look up
/// \in functionCount Length of the function name list
/// \in *typeNames Names of the types (structures and tables) to look up
/// \in typeCount Length of the type name list
/// \in *classNames Names of the classes to look up
/// \in classCount Length of the class name list
/// \in handle Query result, may be null
/// \out *errorInfo More error details in case something goes wrong
/// \return RFC_RC
    pub fn RfcMetadataBatchQuery(rfcHandle: RFC_CONNECTION_HANDLE,
                                 functionNames: *mut *const SAP_UC,
                                 functionCount: ::std::os::raw::c_uint,
                                 typeNames: *mut *const SAP_UC,
                                 typeCount: ::std::os::raw::c_uint,
                                 classNames: *mut *const SAP_UC,
                                 classCount: ::std::os::raw::c_uint,
                                 handle: RFC_METADATA_QUERY_RESULT_HANDLE,
                                 errorInfo: *mut RFC_ERROR_INFO) -> RFC_RC;
}