agora-rtm 0.1.2

Agora Rtm SDK ffi bindings
Documentation
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
/* automatically generated by rust-bindgen 0.60.1 */

#[allow(non_snake_case, non_camel_case_types, non_upper_case_globals)]
pub mod root {
    #[allow(unused_imports)]
    use self::super::root;
    pub const _LIBCPP_VERSION: u32 = 13000;
    pub const _LIBCPP_ABI_VERSION: u32 = 1;
    pub const _LIBCPP_STD_VER: u32 = 11;
    pub const _LIBCPP_OBJECT_FORMAT_MACHO: u32 = 1;
    pub const _LIBCPP_HIDE_FROM_ABI_PER_TU: u32 = 1;
    pub const _LIBCPP_DEBUG_LEVEL: u32 = 0;
    pub const _LIBCPP_LOCALE__L_EXTENSIONS: u32 = 1;
    pub const __WORDSIZE: u32 = 64;
    pub const __DARWIN_ONLY_64_BIT_INO_T: u32 = 1;
    pub const __DARWIN_ONLY_UNIX_CONFORMANCE: u32 = 1;
    pub const __DARWIN_ONLY_VERS_1050: u32 = 1;
    pub const __DARWIN_UNIX03: u32 = 1;
    pub const __DARWIN_64_BIT_INO_T: u32 = 1;
    pub const __DARWIN_VERS_1050: u32 = 1;
    pub const __DARWIN_NON_CANCELABLE: u32 = 0;
    pub const __DARWIN_SUF_EXTSN: &[u8; 14usize] = b"$DARWIN_EXTSN\0";
    pub const __DARWIN_C_ANSI: u32 = 4096;
    pub const __DARWIN_C_FULL: u32 = 900000;
    pub const __DARWIN_C_LEVEL: u32 = 900000;
    pub const __STDC_WANT_LIB_EXT1__: u32 = 1;
    pub const __DARWIN_NO_LONG_LONG: u32 = 0;
    pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1;
    pub const _DARWIN_FEATURE_ONLY_64_BIT_INODE: u32 = 1;
    pub const _DARWIN_FEATURE_ONLY_VERS_1050: u32 = 1;
    pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1;
    pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3;
    pub const __has_ptrcheck: u32 = 0;
    pub const __PTHREAD_SIZE__: u32 = 8176;
    pub const __PTHREAD_ATTR_SIZE__: u32 = 56;
    pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8;
    pub const __PTHREAD_MUTEX_SIZE__: u32 = 56;
    pub const __PTHREAD_CONDATTR_SIZE__: u32 = 8;
    pub const __PTHREAD_COND_SIZE__: u32 = 40;
    pub const __PTHREAD_ONCE_SIZE__: u32 = 8;
    pub const __PTHREAD_RWLOCK_SIZE__: u32 = 192;
    pub const __PTHREAD_RWLOCKATTR_SIZE__: u32 = 16;
    pub const INT8_MAX: u32 = 127;
    pub const INT16_MAX: u32 = 32767;
    pub const INT32_MAX: u32 = 2147483647;
    pub const INT64_MAX: u64 = 9223372036854775807;
    pub const INT8_MIN: i32 = -128;
    pub const INT16_MIN: i32 = -32768;
    pub const INT32_MIN: i32 = -2147483648;
    pub const INT64_MIN: i64 = -9223372036854775808;
    pub const UINT8_MAX: u32 = 255;
    pub const UINT16_MAX: u32 = 65535;
    pub const UINT32_MAX: u32 = 4294967295;
    pub const UINT64_MAX: i32 = -1;
    pub const INT_LEAST8_MIN: i32 = -128;
    pub const INT_LEAST16_MIN: i32 = -32768;
    pub const INT_LEAST32_MIN: i32 = -2147483648;
    pub const INT_LEAST64_MIN: i64 = -9223372036854775808;
    pub const INT_LEAST8_MAX: u32 = 127;
    pub const INT_LEAST16_MAX: u32 = 32767;
    pub const INT_LEAST32_MAX: u32 = 2147483647;
    pub const INT_LEAST64_MAX: u64 = 9223372036854775807;
    pub const UINT_LEAST8_MAX: u32 = 255;
    pub const UINT_LEAST16_MAX: u32 = 65535;
    pub const UINT_LEAST32_MAX: u32 = 4294967295;
    pub const UINT_LEAST64_MAX: i32 = -1;
    pub const INT_FAST8_MIN: i32 = -128;
    pub const INT_FAST16_MIN: i32 = -32768;
    pub const INT_FAST32_MIN: i32 = -2147483648;
    pub const INT_FAST64_MIN: i64 = -9223372036854775808;
    pub const INT_FAST8_MAX: u32 = 127;
    pub const INT_FAST16_MAX: u32 = 32767;
    pub const INT_FAST32_MAX: u32 = 2147483647;
    pub const INT_FAST64_MAX: u64 = 9223372036854775807;
    pub const UINT_FAST8_MAX: u32 = 255;
    pub const UINT_FAST16_MAX: u32 = 65535;
    pub const UINT_FAST32_MAX: u32 = 4294967295;
    pub const UINT_FAST64_MAX: i32 = -1;
    pub const INTPTR_MAX: u64 = 9223372036854775807;
    pub const INTPTR_MIN: i64 = -9223372036854775808;
    pub const UINTPTR_MAX: i32 = -1;
    pub const SIZE_MAX: i32 = -1;
    pub const RSIZE_MAX: i32 = -1;
    pub const WINT_MIN: i32 = -2147483648;
    pub const WINT_MAX: u32 = 2147483647;
    pub const SIG_ATOMIC_MIN: i32 = -2147483648;
    pub const SIG_ATOMIC_MAX: u32 = 2147483647;
    pub const AGORA_RTM_ENDCALL_PREFIX: &[u8; 45usize] =
        b"AgoraRTMLegacyEndcallCompatibleMessagePrefix\0";
    pub mod std {
        #[allow(unused_imports)]
        use self::super::super::root;
    }
    pub type int_least8_t = i8;
    pub type int_least16_t = i16;
    pub type int_least32_t = i32;
    pub type int_least64_t = i64;
    pub type uint_least8_t = u8;
    pub type uint_least16_t = u16;
    pub type uint_least32_t = u32;
    pub type uint_least64_t = u64;
    pub type int_fast8_t = i8;
    pub type int_fast16_t = i16;
    pub type int_fast32_t = i32;
    pub type int_fast64_t = i64;
    pub type uint_fast8_t = u8;
    pub type uint_fast16_t = u16;
    pub type uint_fast32_t = u32;
    pub type uint_fast64_t = u64;
    pub type __int8_t = ::std::os::raw::c_schar;
    pub type __uint8_t = ::std::os::raw::c_uchar;
    pub type __int16_t = ::std::os::raw::c_short;
    pub type __uint16_t = ::std::os::raw::c_ushort;
    pub type __int32_t = ::std::os::raw::c_int;
    pub type __uint32_t = ::std::os::raw::c_uint;
    pub type __int64_t = ::std::os::raw::c_longlong;
    pub type __uint64_t = ::std::os::raw::c_ulonglong;
    pub type __darwin_intptr_t = ::std::os::raw::c_long;
    pub type __darwin_natural_t = ::std::os::raw::c_uint;
    pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
    #[repr(C)]
    #[derive(Copy, Clone)]
    pub union __mbstate_t {
        pub __mbstate8: [::std::os::raw::c_char; 128usize],
        pub _mbstateL: ::std::os::raw::c_longlong,
    }
    #[test]
    fn bindgen_test_layout___mbstate_t() {
        assert_eq!(
            ::core::mem::size_of::<__mbstate_t>(),
            128usize,
            concat!("Size of: ", stringify!(__mbstate_t))
        );
        assert_eq!(
            ::core::mem::align_of::<__mbstate_t>(),
            8usize,
            concat!("Alignment of ", stringify!(__mbstate_t))
        );
        fn test_field___mbstate8() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<__mbstate_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__mbstate8) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(__mbstate_t),
                    "::",
                    stringify!(__mbstate8)
                )
            );
        }
        test_field___mbstate8();
        fn test_field__mbstateL() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<__mbstate_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr)._mbstateL) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(__mbstate_t),
                    "::",
                    stringify!(_mbstateL)
                )
            );
        }
        test_field__mbstateL();
    }
    pub type __darwin_mbstate_t = __mbstate_t;
    pub type __darwin_ptrdiff_t = ::std::os::raw::c_long;
    pub type __darwin_size_t = ::std::os::raw::c_ulong;
    pub type __darwin_va_list = __builtin_va_list;
    pub type __darwin_wchar_t = ::std::os::raw::c_int;
    pub type __darwin_rune_t = __darwin_wchar_t;
    pub type __darwin_wint_t = ::std::os::raw::c_int;
    pub type __darwin_clock_t = ::std::os::raw::c_ulong;
    pub type __darwin_socklen_t = __uint32_t;
    pub type __darwin_ssize_t = ::std::os::raw::c_long;
    pub type __darwin_time_t = ::std::os::raw::c_long;
    pub type __darwin_blkcnt_t = __int64_t;
    pub type __darwin_blksize_t = __int32_t;
    pub type __darwin_dev_t = __int32_t;
    pub type __darwin_fsblkcnt_t = ::std::os::raw::c_uint;
    pub type __darwin_fsfilcnt_t = ::std::os::raw::c_uint;
    pub type __darwin_gid_t = __uint32_t;
    pub type __darwin_id_t = __uint32_t;
    pub type __darwin_ino64_t = __uint64_t;
    pub type __darwin_ino_t = __darwin_ino64_t;
    pub type __darwin_mach_port_name_t = __darwin_natural_t;
    pub type __darwin_mach_port_t = __darwin_mach_port_name_t;
    pub type __darwin_mode_t = __uint16_t;
    pub type __darwin_off_t = __int64_t;
    pub type __darwin_pid_t = __int32_t;
    pub type __darwin_sigset_t = __uint32_t;
    pub type __darwin_suseconds_t = __int32_t;
    pub type __darwin_uid_t = __uint32_t;
    pub type __darwin_useconds_t = __uint32_t;
    pub type __darwin_uuid_t = [::std::os::raw::c_uchar; 16usize];
    pub type __darwin_uuid_string_t = [::std::os::raw::c_char; 37usize];
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct __darwin_pthread_handler_rec {
        pub __routine: ::core::option::Option<unsafe extern "C" fn(arg1: *mut ::core::ffi::c_void)>,
        pub __arg: *mut ::core::ffi::c_void,
        pub __next: *mut __darwin_pthread_handler_rec,
    }
    #[test]
    fn bindgen_test_layout___darwin_pthread_handler_rec() {
        assert_eq!(
            ::core::mem::size_of::<__darwin_pthread_handler_rec>(),
            24usize,
            concat!("Size of: ", stringify!(__darwin_pthread_handler_rec))
        );
        assert_eq!(
            ::core::mem::align_of::<__darwin_pthread_handler_rec>(),
            8usize,
            concat!("Alignment of ", stringify!(__darwin_pthread_handler_rec))
        );
        fn test_field___routine() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<__darwin_pthread_handler_rec>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__routine) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(__darwin_pthread_handler_rec),
                    "::",
                    stringify!(__routine)
                )
            );
        }
        test_field___routine();
        fn test_field___arg() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<__darwin_pthread_handler_rec>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__arg) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(__darwin_pthread_handler_rec),
                    "::",
                    stringify!(__arg)
                )
            );
        }
        test_field___arg();
        fn test_field___next() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<__darwin_pthread_handler_rec>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__next) as usize - ptr as usize
                },
                16usize,
                concat!(
                    "Offset of field: ",
                    stringify!(__darwin_pthread_handler_rec),
                    "::",
                    stringify!(__next)
                )
            );
        }
        test_field___next();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_attr_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 56usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_attr_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_attr_t>(),
            64usize,
            concat!("Size of: ", stringify!(_opaque_pthread_attr_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_attr_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_attr_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_attr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_attr_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_attr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_attr_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_cond_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 40usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_cond_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_cond_t>(),
            48usize,
            concat!("Size of: ", stringify!(_opaque_pthread_cond_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_cond_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_cond_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_cond_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_cond_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_cond_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_cond_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_condattr_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 8usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_condattr_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_condattr_t>(),
            16usize,
            concat!("Size of: ", stringify!(_opaque_pthread_condattr_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_condattr_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_condattr_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_condattr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_condattr_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_condattr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_condattr_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_mutex_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 56usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_mutex_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_mutex_t>(),
            64usize,
            concat!("Size of: ", stringify!(_opaque_pthread_mutex_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_mutex_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_mutex_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_mutex_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_mutex_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_mutex_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_mutex_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_mutexattr_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 8usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_mutexattr_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_mutexattr_t>(),
            16usize,
            concat!("Size of: ", stringify!(_opaque_pthread_mutexattr_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_mutexattr_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_mutexattr_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_mutexattr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_mutexattr_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_mutexattr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_mutexattr_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_once_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 8usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_once_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_once_t>(),
            16usize,
            concat!("Size of: ", stringify!(_opaque_pthread_once_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_once_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_once_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_once_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_once_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_once_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_once_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_rwlock_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 192usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_rwlock_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_rwlock_t>(),
            200usize,
            concat!("Size of: ", stringify!(_opaque_pthread_rwlock_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_rwlock_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_rwlock_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_rwlock_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_rwlock_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_rwlock_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_rwlock_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_rwlockattr_t {
        pub __sig: ::std::os::raw::c_long,
        pub __opaque: [::std::os::raw::c_char; 16usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_rwlockattr_t>(),
            24usize,
            concat!("Size of: ", stringify!(_opaque_pthread_rwlockattr_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_rwlockattr_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_rwlockattr_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_rwlockattr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_rwlockattr_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_rwlockattr_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_rwlockattr_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    #[repr(C)]
    #[derive(Debug, Copy, Clone)]
    pub struct _opaque_pthread_t {
        pub __sig: ::std::os::raw::c_long,
        pub __cleanup_stack: *mut __darwin_pthread_handler_rec,
        pub __opaque: [::std::os::raw::c_char; 8176usize],
    }
    #[test]
    fn bindgen_test_layout__opaque_pthread_t() {
        assert_eq!(
            ::core::mem::size_of::<_opaque_pthread_t>(),
            8192usize,
            concat!("Size of: ", stringify!(_opaque_pthread_t))
        );
        assert_eq!(
            ::core::mem::align_of::<_opaque_pthread_t>(),
            8usize,
            concat!("Alignment of ", stringify!(_opaque_pthread_t))
        );
        fn test_field___sig() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__sig) as usize - ptr as usize
                },
                0usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_t),
                    "::",
                    stringify!(__sig)
                )
            );
        }
        test_field___sig();
        fn test_field___cleanup_stack() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__cleanup_stack) as usize - ptr as usize
                },
                8usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_t),
                    "::",
                    stringify!(__cleanup_stack)
                )
            );
        }
        test_field___cleanup_stack();
        fn test_field___opaque() {
            assert_eq!(
                unsafe {
                    let uninit = ::core::mem::MaybeUninit::<_opaque_pthread_t>::uninit();
                    let ptr = uninit.as_ptr();
                    ::core::ptr::addr_of!((*ptr).__opaque) as usize - ptr as usize
                },
                16usize,
                concat!(
                    "Offset of field: ",
                    stringify!(_opaque_pthread_t),
                    "::",
                    stringify!(__opaque)
                )
            );
        }
        test_field___opaque();
    }
    pub type __darwin_pthread_attr_t = _opaque_pthread_attr_t;
    pub type __darwin_pthread_cond_t = _opaque_pthread_cond_t;
    pub type __darwin_pthread_condattr_t = _opaque_pthread_condattr_t;
    pub type __darwin_pthread_key_t = ::std::os::raw::c_ulong;
    pub type __darwin_pthread_mutex_t = _opaque_pthread_mutex_t;
    pub type __darwin_pthread_mutexattr_t = _opaque_pthread_mutexattr_t;
    pub type __darwin_pthread_once_t = _opaque_pthread_once_t;
    pub type __darwin_pthread_rwlock_t = _opaque_pthread_rwlock_t;
    pub type __darwin_pthread_rwlockattr_t = _opaque_pthread_rwlockattr_t;
    pub type __darwin_pthread_t = *mut _opaque_pthread_t;
    pub type u_int8_t = ::std::os::raw::c_uchar;
    pub type u_int16_t = ::std::os::raw::c_ushort;
    pub type u_int32_t = ::std::os::raw::c_uint;
    pub type u_int64_t = ::std::os::raw::c_ulonglong;
    pub type register_t = i64;
    pub type user_addr_t = u_int64_t;
    pub type user_size_t = u_int64_t;
    pub type user_ssize_t = i64;
    pub type user_long_t = i64;
    pub type user_ulong_t = u_int64_t;
    pub type user_time_t = i64;
    pub type user_off_t = i64;
    pub type syscall_arg_t = u_int64_t;
    pub type intmax_t = ::std::os::raw::c_long;
    pub type uintmax_t = ::std::os::raw::c_ulong;
    pub mod agora {
        #[allow(unused_imports)]
        use self::super::super::root;
        pub mod rtm {
            #[allow(unused_imports)]
            use self::super::super::super::root;
            pub mod INIT_ERR_CODE {
                #[doc = "@brief Error codes related to Initialization."]
                pub type Type = u32;
                #[doc = "0: Initialization succeeds."]
                pub const INIT_ERR_OK: Type = 0;
                #[doc = "1: A common failure occurs during initialization."]
                pub const INIT_ERR_FAILURE: Type = 1;
                #[doc = "2: The SDK is already initialized."]
                pub const INIT_ERR_ALREADY_INITIALIZED: Type = 2;
                #[doc = "3: The App ID is invalid."]
                pub const INIT_ERR_INVALID_APP_ID: Type = 3;
                #[doc = "4: The event handler is empty."]
                pub const INIT_ERR_INVALID_ARGUMENT: Type = 4;
            }
            pub mod LOGIN_ERR_CODE {
                #[doc = "@brief Error codes related to login."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or login succeeds."]
                pub const LOGIN_ERR_OK: Type = 0;
                #[doc = "1: Login fails. The reason is unknown."]
                pub const LOGIN_ERR_UNKNOWN: Type = 1;
                #[doc = "2: Login is rejected by the server."]
                pub const LOGIN_ERR_REJECTED: Type = 2;
                #[doc = "3: Invalid login argument."]
                pub const LOGIN_ERR_INVALID_ARGUMENT: Type = 3;
                #[doc = "4: The App ID is invalid."]
                pub const LOGIN_ERR_INVALID_APP_ID: Type = 4;
                #[doc = "5: The token is invalid."]
                pub const LOGIN_ERR_INVALID_TOKEN: Type = 5;
                #[doc = "6: The token has expired, and hence login is rejected."]
                pub const LOGIN_ERR_TOKEN_EXPIRED: Type = 6;
                #[doc = "7: Unauthorized login."]
                pub const LOGIN_ERR_NOT_AUTHORIZED: Type = 7;
                #[doc = "8: The user has already logged in or is logging in the Agora RTM system, or the user has not called the \\ref agora::rtm::IRtmService::logout \"logout\" method to leave the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" state."]
                pub const LOGIN_ERR_ALREADY_LOGGED_IN: Type = 8;
                #[doc = "9: The login times out. The current timeout is set as 12 seconds. You need to log in again."]
                pub const LOGIN_ERR_TIMEOUT: Type = 9;
                #[doc = "10: The call frequency of the \\ref agora::rtm::IRtmService::login \"login\" method exceeds the limit of two queries per second."]
                pub const LOGIN_ERR_TOO_OFTEN: Type = 10;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const LOGIN_ERR_NOT_INITIALIZED: Type = 101;
            }
            pub mod LOGOUT_ERR_CODE {
                #[doc = "@brief Error codes related to logout."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or logout succeeds."]
                pub const LOGOUT_ERR_OK: Type = 0;
                #[doc = "1: **RESERVED FOR FUTURE USE**"]
                pub const LOGOUT_ERR_REJECTED: Type = 1;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const LOGOUT_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before the user logs out of the Agora RTM system."]
                pub const LOGOUT_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod RENEW_TOKEN_ERR_CODE {
                #[doc = "@brief Error codes related to renewing the RTM Token."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the renewing operation succeeds."]
                pub const RENEW_TOKEN_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to renew the token."]
                pub const RENEW_TOKEN_ERR_FAILURE: Type = 1;
                #[doc = "2: The method call fails. The argument is invalid."]
                pub const RENEW_TOKEN_ERR_INVALID_ARGUMENT: Type = 2;
                #[doc = "3: **RESERVED FOR FUTURE USE**"]
                pub const RENEW_TOKEN_ERR_REJECTED: Type = 3;
                #[doc = "4: The method call frequency exceeds the limit of two queries per second."]
                pub const RENEW_TOKEN_ERR_TOO_OFTEN: Type = 4;
                #[doc = "5: The token has expired."]
                pub const RENEW_TOKEN_ERR_TOKEN_EXPIRED: Type = 5;
                #[doc = "6: The token is invalid."]
                pub const RENEW_TOKEN_ERR_INVALID_TOKEN: Type = 6;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const RENEW_TOKEN_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before renewing the token."]
                pub const RENEW_TOKEN_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod CONNECTION_STATE {
                #[doc = "@brief Connection states between the SDK and the Agora RTM system."]
                pub type Type = u32;
                #[doc = "1: The initial state. The SDK is disconnected from the Agora RTM system."]
                #[doc = ""]
                #[doc = "When the user calls the \\ref agora::rtm::IRtmService::login \"login\" method, the SDK starts to log in the Agora RTM system, triggers the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback, and switches to the \\ref agora::rtm::CONNECTION_STATE_CONNECTING \"CONNECTION_STATE_CONNECTING\" state."]
                pub const CONNECTION_STATE_DISCONNECTED: Type = 1;
                #[doc = "2: The SDK is logging in the Agora RTM system."]
                #[doc = ""]
                #[doc = "- If the user successfully logs in the Agora RTM system and receives the \\ref agora::rtm::IRtmServiceEventHandler::onLoginSuccess \"onLoginSuccess\" callback, the SDK triggers the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback and switches to the \\ref agora::rtm::CONNECTION_STATE_CONNECTED \"CONNECTION_STATE_CONNECTED\" state."]
                #[doc = "- If the user fails to login the Agora RTM system and receives the \\ref agora::rtm::IRtmServiceEventHandler::onLoginFailure \"onLoginFailure\" callback, the SDK triggers the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback and switches to the \\ref agora::rtm::CONNECTION_STATE_DISCONNECTED \"CONNECTION_STATE_DISCONNECTED\" state."]
                pub const CONNECTION_STATE_CONNECTING: Type = 2;
                #[doc = "3: The SDK has logged in the Agora RTM system."]
                #[doc = ""]
                #[doc = "- If the connection state between the SDK and the Agora RTM system is interrupted because of network issues, the SDK triggers the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback and switches to the \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                #[doc = "- If the login is banned by the server because, for example, another instance logs in the Agora RTM system with the same user ID, the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback is triggered, and the SDK is switched to the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" state."]
                #[doc = "- If the user calls the \\ref agora::rtm::IRtmService::logout \"logout\" method to log out of the Agora RTM system and receives the \\ref agora::rtm::IRtmServiceEventHandler::onLogout \"onLogout\" callback (error code = `LOGOUT_ERR_OK`), the SDK triggers the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback and switches to the \\ref agora::rtm::CONNECTION_STATE_DISCONNECTED \"CONNECTION_STATE_DISCONNECTED\" state."]
                pub const CONNECTION_STATE_CONNECTED: Type = 3;
                #[doc = "4: The connection state between the SDK and the Agora RTM system is interrupted due to network issues, and the SDK keeps re-logging in the Agora RTM system."]
                #[doc = ""]
                #[doc = "- If the SDK successfully re-logs in the Agora RTM system, the SDK triggers the \\ref agora::rtm::IRtmServiceEventHandler::onConnectionStateChanged \"onConnectionStateChanged\" callback and switches to the \\ref agora::rtm::CONNECTION_STATE_CONNECTED \"CONNECTION_STATE_CONNECTED\" state. The SDK automatically adds the user back to the channels he or she was in when the connection was interrupted, and synchronizes the local user's attributes with the server."]
                #[doc = "- If the SDK cannot re-log in the Agora RTM system, it stays in the \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state and keeps re-logging in the system."]
                pub const CONNECTION_STATE_RECONNECTING: Type = 4;
                #[doc = "5: The SDK gives up logging in the Agora RTM system, mainly because another instance has logged in the Agora RTM system with the same user ID."]
                #[doc = ""]
                #[doc = "You must call the \\ref agora::rtm::IRtmService::logout \"logout\" method to leave this state before calling the \\ref agora::rtm::IRtmService::login \"login\" method again."]
                pub const CONNECTION_STATE_ABORTED: Type = 5;
            }
            pub mod CONNECTION_CHANGE_REASON {
                #[doc = "@brief Reasons for a connection state change."]
                pub type Type = u32;
                #[doc = "1: The SDK is logging in the Agora RTM system."]
                pub const CONNECTION_CHANGE_REASON_LOGIN: Type = 1;
                #[doc = "2: The SDK has logged in the Agora RTM system."]
                pub const CONNECTION_CHANGE_REASON_LOGIN_SUCCESS: Type = 2;
                #[doc = "3: The SDK fails to log in the Agora RTM system."]
                pub const CONNECTION_CHANGE_REASON_LOGIN_FAILURE: Type = 3;
                #[doc = "4: The SDK fails to log in the Agora RTM system within 12 seconds and gives up."]
                pub const CONNECTION_CHANGE_REASON_LOGIN_TIMEOUT: Type = 4;
                #[doc = "5: The connection between the SDK and the Agora RTM system is interrupted. The system defines an interruption when the SDK loses connection with the Agora RTM system for network reasons and cannot recover in four seconds."]
                pub const CONNECTION_CHANGE_REASON_INTERRUPTED: Type = 5;
                #[doc = "6: The user has called the \\ref agora::rtm::IRtmService::logout \"logout\" method to log out of the Agora RTM system."]
                pub const CONNECTION_CHANGE_REASON_LOGOUT: Type = 6;
                #[doc = "7: The SDK login to the Agora RTM system is banned by Agora."]
                pub const CONNECTION_CHANGE_REASON_BANNED_BY_SERVER: Type = 7;
                #[doc = "8: Another user is logging in the Agora RTM system with the same User ID."]
                pub const CONNECTION_CHANGE_REASON_REMOTE_LOGIN: Type = 8;
                #[doc = "9: The token has expired."]
                pub const CONNECTION_CHANGE_REASON_TOKEN_EXPIRED: Type = 9;
            }
            pub mod PEER_MESSAGE_ERR_CODE {
                #[doc = "@brief Error codes related to sending a peer-to-peer message."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the specified user receives the peer-to-peer message."]
                pub const PEER_MESSAGE_ERR_OK: Type = 0;
                #[doc = "1: The sender fails to send the peer-to-peer message."]
                pub const PEER_MESSAGE_ERR_FAILURE: Type = 1;
                #[doc = "2: A timeout occurs when sending the peer-to-peer message. The current timeout is set as 10 seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const PEER_MESSAGE_ERR_SENT_TIMEOUT: Type = 2;
                #[doc = "3: The specified user is offline and does not receive this peer-to-peer message."]
                pub const PEER_MESSAGE_ERR_PEER_UNREACHABLE: Type = 3;
                #[doc = "4: The receiver is offline and does not receive this offline peer-to-peer message, but the server has cached it and will re-send it once he/she is back online."]
                pub const PEER_MESSAGE_ERR_CACHED_BY_SERVER: Type = 4;
                #[doc = "5: The method call frequency exceeds the limit of (RTM SDK for Windows C++) 180 calls every three seconds or (RTM SDK for Linux C++) 1500 calls every three seconds, with channel and peer messages taken together.."]
                pub const PEER_MESSAGE_ERR_TOO_OFTEN: Type = 5;
                #[doc = "6: The user ID is invalid."]
                pub const PEER_MESSAGE_ERR_INVALID_USERID: Type = 6;
                #[doc = "7: The message is null or exceeds 32 KB in length."]
                pub const PEER_MESSAGE_ERR_INVALID_MESSAGE: Type = 7;
                #[doc = "8: The message receiver‘s SDK is of an earlier version and hence cannot recognize this message."]
                pub const PEER_MESSAGE_ERR_IMCOMPATIBLE_MESSAGE: Type = 8;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const PEER_MESSAGE_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The sender does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before sending the peer-to-peer message."]
                pub const PEER_MESSAGE_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod JOIN_CHANNEL_ERR {
                #[doc = "@brief Error codes related to joining a channel."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the user joins the channel successfully."]
                pub const JOIN_CHANNEL_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to join the channel."]
                pub const JOIN_CHANNEL_ERR_FAILURE: Type = 1;
                #[doc = "2: For v1.0.0 and earlier, the SDK returns this error when you try to join a channel that you have already joined. The SDK does not return this error code after v1.0.0."]
                pub const JOIN_CHANNEL_ERR_REJECTED: Type = 2;
                #[doc = "3: The user fails to join the channel because the argument is invalid."]
                pub const JOIN_CHANNEL_ERR_INVALID_ARGUMENT: Type = 3;
                #[doc = "4: A timeout occurs when joining the channel. The current timeout is set as five seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const JOIN_CHANNEL_TIMEOUT: Type = 4;
                #[doc = "5: The number of the RTM channels you are in exceeds the limit of 20."]
                pub const JOIN_CHANNEL_ERR_EXCEED_LIMIT: Type = 5;
                #[doc = "6: The user is joining or has joined the channel."]
                pub const JOIN_CHANNEL_ERR_ALREADY_JOINED: Type = 6;
                #[doc = "7: The method call frequency exceeds 50 queries every three seconds."]
                pub const JOIN_CHANNEL_ERR_TOO_OFTEN: Type = 7;
                #[doc = "8: The frequency of joining the same channel exceeds two times every five seconds."]
                pub const JOIN_CHANNEL_ERR_JOIN_SAME_CHANNEL_TOO_OFTEN: Type = 8;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const JOIN_CHANNEL_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before joining the channel."]
                pub const JOIN_CHANNEL_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod LEAVE_CHANNEL_ERR {
                #[doc = "@brief Error codes related to leaving a channel."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the user leaves the channel successfully."]
                pub const LEAVE_CHANNEL_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to leave the channel."]
                pub const LEAVE_CHANNEL_ERR_FAILURE: Type = 1;
                #[doc = "2: **RESERVED FOR FUTURE USE**"]
                pub const LEAVE_CHANNEL_ERR_REJECTED: Type = 2;
                #[doc = "3: The user is not in the channel."]
                pub const LEAVE_CHANNEL_ERR_NOT_IN_CHANNEL: Type = 3;
                #[doc = "4: The user is banned to join the channel."]
                pub const LEAVE_CHANNEL_ERR_KICKED: Type = 4;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const LEAVE_CHANNEL_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before calling the \\ref agora::rtm::IChannel::leave \"leave\" method."]
                pub const LEAVE_CHANNEL_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod LEAVE_CHANNEL_REASON {
                #[doc = "@brief Reasons why a user leaves the channel."]
                pub type Type = u32;
                #[doc = "1: The user has quit the call."]
                pub const LEAVE_CHANNEL_REASON_QUIT: Type = 1;
                #[doc = "2: The user is banned by the server."]
                pub const LEAVE_CHANNEL_REASON_KICKED: Type = 2;
            }
            pub mod CHANNEL_MESSAGE_ERR_CODE {
                #[doc = "@brief Error codes related to sending a channel message."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the server receives the channel message."]
                pub const CHANNEL_MESSAGE_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to send the channel message."]
                pub const CHANNEL_MESSAGE_ERR_FAILURE: Type = 1;
                #[doc = "2: The SDK does not receive a response from the server in 10 seconds. The current timeout is set as 10 seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const CHANNEL_MESSAGE_ERR_SENT_TIMEOUT: Type = 2;
                #[doc = "3: The method call frequency exceeds the limit of (RTM SDK for Windows C++) 180 calls every three seconds or (RTM SDK for Linux C++) 1500 calls every three seconds, with channel and peer messages taken together.."]
                pub const CHANNEL_MESSAGE_ERR_TOO_OFTEN: Type = 3;
                #[doc = "4: The message is null or exceeds 32 KB in length."]
                pub const CHANNEL_MESSAGE_ERR_INVALID_MESSAGE: Type = 4;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const CHANNEL_MESSAGE_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before sending out a channel message."]
                pub const CHANNEL_MESSAGE_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod GET_MEMBERS_ERR {
                #[doc = "@brief Error codes related to retrieving a channel member list."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the operation succeeds."]
                pub const GET_MEMBERS_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to retrieve a member list of the channel."]
                pub const GET_MEMBERS_ERR_FAILURE: Type = 1;
                #[doc = "2: **RESERVED FOR FUTURE USE**"]
                pub const GET_MEMBERS_ERR_REJECTED: Type = 2;
                #[doc = "3: A timeout occurs when retrieving a member list of the channel. The current timeout is set as five seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const GET_MEMBERS_ERR_TIMEOUT: Type = 3;
                #[doc = "4: The method call frequency exceeds the limit of five queries every two seconds."]
                pub const GET_MEMBERS_ERR_TOO_OFTEN: Type = 4;
                #[doc = "5: The user is not in channel."]
                pub const GET_MEMBERS_ERR_NOT_IN_CHANNEL: Type = 5;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const GET_MEMBERS_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before retrieving a member list."]
                pub const GET_MEMBERS_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod QUERY_PEERS_ONLINE_STATUS_ERR {
                #[doc = "@brief Error codes related to querying the online status of the specified peers."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the operation succeeds."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to query the online status of the specified peers."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_FAILURE: Type = 1;
                #[doc = "2: The method call fails. The argument is invalid."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_INVALID_ARGUMENT: Type = 2;
                #[doc = "3: **RESERVED FOR FUTURE USE**"]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_REJECTED: Type = 3;
                #[doc = "4: The SDK fails to receive a response from the server in 10 seconds. The current timeout is set as 10 seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_TIMEOUT: Type = 4;
                #[doc = "5: The method call frequency exceeds the limit of (RTM SDK for Windows C++) 10 calls every five seconds or (RTM SDK for Linux C++) 100 calls every five seconds."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_TOO_OFTEN: Type = 5;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before querying the online status."]
                pub const QUERY_PEERS_ONLINE_STATUS_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod PEER_ONLINE_STATE {
                #[doc = "@brief The online states of a peer."]
                pub type Type = u32;
                #[doc = "0: The peer is online (the SDK has logged in the Agora RTM system)."]
                pub const PEER_ONLINE_STATE_ONLINE: Type = 0;
                #[doc = "1: The peer is temporarily unreachable (the server has not received a packet from the SDK for more than six seconds)."]
                pub const PEER_ONLINE_STATE_UNREACHABLE: Type = 1;
                #[doc = "2: The peer is offline (the SDK has not logged in the Agora RTM system, or it has logged out of the system, or the server has not received a packet from the SDK for more than 30 seconds)."]
                pub const PEER_ONLINE_STATE_OFFLINE: Type = 2;
            }
            pub mod PEER_SUBSCRIPTION_OPTION {
                #[doc = "@brief Subscription types."]
                pub type Type = u32;
                #[doc = "0: Takes out a subscription to the online status of specified users."]
                pub const PEER_SUBSCRIPTION_OPTION_ONLINE_STATUS: Type = 0;
            }
            pub mod PEER_SUBSCRIPTION_STATUS_ERR {
                #[doc = "@brief Error codes related to subscribing to or unsubscribing from the status of specified peers."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the operation succeeds."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to subscribe to or unsubscribe from the status of the specified peers."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_FAILURE: Type = 1;
                #[doc = "2: The method call fails. The argument is invalid."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_INVALID_ARGUMENT: Type = 2;
                #[doc = "3: **RESERVED FOR FUTURE USE**"]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_REJECTED: Type = 3;
                #[doc = "4: The SDK fails to receive a response from the server within 10 seconds. The current timeout is set as 10 seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_TIMEOUT: Type = 4;
                #[doc = "5: The method call frequency exceeds the limit of 10 queries every five seconds."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_TOO_OFTEN: Type = 5;
                #[doc = "6: The number of peers, to whom you subscribe, exceeds the limit of 512."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_OVERFLOW: Type = 6;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before this operation."]
                pub const PEER_SUBSCRIPTION_STATUS_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR {
                #[doc = "@brief Error codes related to getting a list of the peers by subscription option type."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the operation succeeds."]
                pub const QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_OK: Type = 0;
                #[doc = "1: Common failure. The user fails to query peers by subscription option type."]
                pub const QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_FAILURE: Type = 1;
                #[doc = "2: The SDK fails to receive a response from the server within 5 seconds. The current timeout is set as 5 seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_TIMEOUT: Type = 2;
                #[doc = "3: The method call frequency exceeds the limit of 10 queries every five seconds."]
                pub const QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_TOO_OFTEN: Type = 3;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before the query."]
                pub const QUERY_PEERS_BY_SUBSCRIPTION_OPTION_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod ATTRIBUTE_OPERATION_ERR {
                #[doc = "@brief Error codes related to attrubute operations."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the attribute operation succeeds."]
                pub const ATTRIBUTE_OPERATION_ERR_OK: Type = 0;
                #[doc = "1: @deprecated"]
                pub const ATTRIBUTE_OPERATION_ERR_NOT_READY: Type = 1;
                #[doc = "2: Common failure. The attribute operation fails."]
                pub const ATTRIBUTE_OPERATION_ERR_FAILURE: Type = 2;
                #[doc = "3: The argument you put for this attribute operation is invalid. For example, you cannot set a user or channel attribute as \"\"."]
                pub const ATTRIBUTE_OPERATION_ERR_INVALID_ARGUMENT: Type = 3;
                #[doc = "4: The attribute size exceeds the limit."]
                #[doc = ""]
                #[doc = "- For user attribute operations: The user's overall attribute size would exceed the limit of 16 KB, one of the user's attributes would exceeds 8 KB in size, or the number of this user's attributes would exceed 32 after this attribute operation."]
                #[doc = "- For channel attribute operations: The channel's overall attribute size would exceed the limit of 32 KB, one of the channel attributes would exceed 8 KB in size, or the number of this channel's attributes would exceed 32 after this attribute operation."]
                pub const ATTRIBUTE_OPERATION_ERR_SIZE_OVERFLOW: Type = 4;
                #[doc = "5: The method call frequency exceeds the limit."]
                #[doc = ""]
                #[doc = "- For \\ref agora::rtm::IRtmService::setLocalUserAttributes \"setLocalUserAttributes\", \\ref agora::rtm::IRtmService::addOrUpdateLocalUserAttributes \"addOrUpdateLocalUserAttributes\", \\ref agora::rtm::IRtmService::deleteLocalUserAttributesByKeys \"deleteLocalUserAttributesByKeys\" and \\ref agora::rtm::IRtmService::clearLocalUserAttributes \"clearLocalUserAttributes\" taken together: the maximum call frequency is (RTM SDK for Windows C++) 10 calls every five seconds or (RTM SDK for Linux C++) 100 calls every five seconds."]
                #[doc = "- For \\ref agora::rtm::IRtmService::getUserAttributes \"getUserAttributes\" and \\ref agora::rtm::IRtmService::getUserAttributesByKeys \"getUserAttributesByKeys\" taken together, the maximum call frequency is (RTM SDK for Windows C++) 40 calls every five seconds or (RTM SDK for Linux C++) 400 calls every five seconds."]
                #[doc = "- For \\ref agora::rtm::IRtmService::setChannelAttributes \"setChannelAttributes\", \\ref agora::rtm::IRtmService::addOrUpdateChannelAttributes \"addOrUpdateChannelAttributes\", \\ref agora::rtm::IRtmService::deleteChannelAttributesByKeys \"deleteChannelAttributesByKeys\" and \\ref agora::rtm::IRtmService::clearChannelAttributes \"clearChannelAttributes\" taken together: the maximum call frequency is (RTM SDK for Windows C++) 10 calls every five seconds or (RTM SDK for Linux C++) 100 calls every five seconds."]
                #[doc = "- For \\ref agora::rtm::IRtmService::getChannelAttributes \"getChannelAttributes\" and \\ref agora::rtm::IRtmService::getChannelAttributesByKeys \"getChannelAttributesByKeys\" taken together, the maximum call frequency is (RTM SDK for Windows C++) 10 calls every five seconds or (RTM SDK for Linux C++) 400 calls every five seconds."]
                pub const ATTRIBUTE_OPERATION_ERR_TOO_OFTEN: Type = 5;
                #[doc = "6: The specified user is not found, either because the user is offline or because the user does not exist."]
                pub const ATTRIBUTE_OPERATION_ERR_USER_NOT_FOUND: Type = 6;
                #[doc = "7: A timeout occurs during the attribute operation. The current timeout is set as five seconds. Possible reasons: The user is in the \\ref agora::rtm::CONNECTION_STATE_ABORTED \"CONNECTION_STATE_ABORTED\" or \\ref agora::rtm::CONNECTION_STATE_RECONNECTING \"CONNECTION_STATE_RECONNECTING\" state."]
                pub const ATTRIBUTE_OPERATION_ERR_TIMEOUT: Type = 7;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const ATTRIBUTE_OPERATION_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before the attribute operation."]
                pub const ATTRIBUTE_OPERATION_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod GET_CHANNEL_MEMBER_COUNT_ERR_CODE {
                #[doc = "@brief Error codes related to retrieving the channel member count of specified channels."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds, or the operation succeeds."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_OK: Type = 0;
                #[doc = "1: Unknown common failure."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_FAILURE: Type = 1;
                #[doc = "2: One or several of your channel IDs is invalid, or @p channelCount &lt; 0."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_INVALID_ARGUMENT: Type = 2;
                #[doc = "3: The method call frequency exceeds the limit of one query per second."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_TOO_OFTEN: Type = 3;
                #[doc = "4: A timeout occurs during this operation. The current timeout is set as five seconds."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_TIMEOUT: Type = 4;
                #[doc = "5:@p channelCount is greater than 32."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_EXCEED_LIMIT: Type = 5;
                #[doc = "101: \\ref agora::rtm::IRtmService \"IRtmService\" is not initialized."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_NOT_INITIALIZED: Type = 101;
                #[doc = "102: The user does not call the \\ref agora::rtm::IRtmService::login \"login\" method, or the method call of \\ref agora::rtm::IRtmService::login \"login\" does not succeed before this operation."]
                pub const GET_CHANNEL_MEMBER_COUNT_ERR_USER_NOT_LOGGED_IN: Type = 102;
            }
            pub mod MESSAGE_TYPE {
                #[doc = "@brief Message types."]
                pub type Type = u32;
                #[doc = "0: The message type is undefined."]
                pub const MESSAGE_TYPE_UNDEFINED: Type = 0;
                #[doc = "1: A text message."]
                pub const MESSAGE_TYPE_TEXT: Type = 1;
                #[doc = "2: A raw message. A raw message is a binary message whose size does not exceed 32 KB."]
                pub const MESSAGE_TYPE_RAW: Type = 2;
                #[doc = "3: A file message. The size of a file message must be less than 32 KB."]
                pub const MESSAGE_TYPE_FILE: Type = 3;
                #[doc = "4: An image message. The size of an image message must be less than 32 KB."]
                pub const MESSAGE_TYPE_IMAGE: Type = 4;
            }
            #[doc = "@brief Message sending options."]
            #[repr(C)]
            #[derive(Debug, Copy, Clone)]
            pub struct SendMessageOptions {
                pub _address: u8,
            }
            #[test]
            fn bindgen_test_layout_SendMessageOptions() {
                assert_eq!(
                    ::core::mem::size_of::<SendMessageOptions>(),
                    1usize,
                    concat!("Size of: ", stringify!(SendMessageOptions))
                );
                assert_eq!(
                    ::core::mem::align_of::<SendMessageOptions>(),
                    1usize,
                    concat!("Alignment of ", stringify!(SendMessageOptions))
                );
            }
            #[doc = "@brief A data structure holding a user attribute key and its value."]
            #[repr(C)]
            #[derive(Debug, Copy, Clone)]
            pub struct RtmAttribute {
                #[doc = "User attribute name. Must be visible characters and not exceed 32 Bytes."]
                pub key: *const ::std::os::raw::c_char,
                #[doc = "Value of the user attribute. Must not exceed 8 KB."]
                pub value: *const ::std::os::raw::c_char,
            }
            #[test]
            fn bindgen_test_layout_RtmAttribute() {
                assert_eq!(
                    ::core::mem::size_of::<RtmAttribute>(),
                    16usize,
                    concat!("Size of: ", stringify!(RtmAttribute))
                );
                assert_eq!(
                    ::core::mem::align_of::<RtmAttribute>(),
                    8usize,
                    concat!("Alignment of ", stringify!(RtmAttribute))
                );
                fn test_field_key() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<RtmAttribute>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).key) as usize - ptr as usize
                        },
                        0usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(RtmAttribute),
                            "::",
                            stringify!(key)
                        )
                    );
                }
                test_field_key();
                fn test_field_value() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<RtmAttribute>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).value) as usize - ptr as usize
                        },
                        8usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(RtmAttribute),
                            "::",
                            stringify!(value)
                        )
                    );
                }
                test_field_value();
            }
            #[repr(C)]
            pub struct IRtmChannelAttribute__bindgen_vtable {
                pub setKey: unsafe extern "C" fn(
                    this: *mut IRtmChannelAttribute,
                    key: *const ::std::os::raw::c_char,
                ),
                pub getKey: unsafe extern "C" fn(
                    this: *const IRtmChannelAttribute,
                ) -> *const ::std::os::raw::c_char,
                pub setValue: unsafe extern "C" fn(
                    this: *mut IRtmChannelAttribute,
                    value: *const ::std::os::raw::c_char,
                ),
                pub getValue: unsafe extern "C" fn(
                    this: *const IRtmChannelAttribute,
                )
                    -> *const ::std::os::raw::c_char,
                pub getLastUpdateUserId: unsafe extern "C" fn(
                    this: *const IRtmChannelAttribute,
                )
                    -> *const ::std::os::raw::c_char,
                pub getLastUpdateTs: unsafe extern "C" fn(
                    this: *const IRtmChannelAttribute,
                )
                    -> ::std::os::raw::c_longlong,
                pub release: unsafe extern "C" fn(this: *mut IRtmChannelAttribute),
            }
            #[doc = "@brief The class for setting or getting attributes of a channel."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IRtmChannelAttribute {
                pub vtable_: *const IRtmChannelAttribute__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IRtmChannelAttribute() {
                assert_eq!(
                    ::core::mem::size_of::<IRtmChannelAttribute>(),
                    8usize,
                    concat!("Size of: ", stringify!(IRtmChannelAttribute))
                );
                assert_eq!(
                    ::core::mem::align_of::<IRtmChannelAttribute>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IRtmChannelAttribute))
                );
            }
            #[doc = "@brief Data structure holding channel attribute-specific options."]
            #[repr(C)]
            #[derive(Debug, Copy, Clone)]
            pub struct ChannelAttributeOptions {
                #[doc = "Indicates whether or not to notify all channel members of a channel attribute change."]
                #[doc = ""]
                #[doc = "@note This flag is valid only within the current method call."]
                #[doc = ""]
                #[doc = "- true: Notify all channel members of a channel attribute change."]
                #[doc = "- false: (Default) Do not notify all channel members of a channel attribute change."]
                pub enableNotificationToChannelMembers: bool,
            }
            #[test]
            fn bindgen_test_layout_ChannelAttributeOptions() {
                assert_eq!(
                    ::core::mem::size_of::<ChannelAttributeOptions>(),
                    1usize,
                    concat!("Size of: ", stringify!(ChannelAttributeOptions))
                );
                assert_eq!(
                    ::core::mem::align_of::<ChannelAttributeOptions>(),
                    1usize,
                    concat!("Alignment of ", stringify!(ChannelAttributeOptions))
                );
                fn test_field_enableNotificationToChannelMembers() {
                    assert_eq!(
                        unsafe {
                            let uninit =
                                ::core::mem::MaybeUninit::<ChannelAttributeOptions>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).enableNotificationToChannelMembers)
                                as usize
                                - ptr as usize
                        },
                        0usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(ChannelAttributeOptions),
                            "::",
                            stringify!(enableNotificationToChannelMembers)
                        )
                    );
                }
                test_field_enableNotificationToChannelMembers();
            }
            #[repr(C)]
            pub struct IMessage__bindgen_vtable {
                pub getMessageId:
                    unsafe extern "C" fn(this: *const IMessage) -> ::std::os::raw::c_longlong,
                pub getMessageType:
                    unsafe extern "C" fn(this: *const IMessage) -> MESSAGE_TYPE::Type,
                pub setText:
                    unsafe extern "C" fn(this: *mut IMessage, str_: *const ::std::os::raw::c_char),
                pub getText:
                    unsafe extern "C" fn(this: *const IMessage) -> *const ::std::os::raw::c_char,
                pub getRawMessageData:
                    unsafe extern "C" fn(this: *const IMessage) -> *const ::std::os::raw::c_char,
                pub getRawMessageLength:
                    unsafe extern "C" fn(this: *const IMessage) -> ::std::os::raw::c_int,
                pub getServerReceivedTs:
                    unsafe extern "C" fn(this: *const IMessage) -> ::std::os::raw::c_longlong,
                pub isOfflineMessage: unsafe extern "C" fn(this: *const IMessage) -> bool,
                pub release: unsafe extern "C" fn(this: *mut IMessage),
            }
            #[doc = "@brief The class for setting and retrieving attributes of a channel or peer-to-peer message."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IMessage {
                pub vtable_: *const IMessage__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IMessage() {
                assert_eq!(
                    ::core::mem::size_of::<IMessage>(),
                    8usize,
                    concat!("Size of: ", stringify!(IMessage))
                );
                assert_eq!(
                    ::core::mem::align_of::<IMessage>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IMessage))
                );
            }
            #[repr(C)]
            pub struct IChannelMember__bindgen_vtable {
                pub getUserId: unsafe extern "C" fn(
                    this: *const IChannelMember,
                )
                    -> *const ::std::os::raw::c_char,
                pub getChannelId: unsafe extern "C" fn(
                    this: *const IChannelMember,
                )
                    -> *const ::std::os::raw::c_char,
                pub release: unsafe extern "C" fn(this: *mut IChannelMember),
            }
            #[doc = "@brief The class for retrieving the attributes of a channel member."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IChannelMember {
                pub vtable_: *const IChannelMember__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IChannelMember() {
                assert_eq!(
                    ::core::mem::size_of::<IChannelMember>(),
                    8usize,
                    concat!("Size of: ", stringify!(IChannelMember))
                );
                assert_eq!(
                    ::core::mem::align_of::<IChannelMember>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IChannelMember))
                );
            }
            #[doc = "@brief The data structure holding an RTM user and the user's online status."]
            #[repr(C)]
            #[derive(Debug, Copy, Clone)]
            pub struct PeerOnlineStatus {
                #[doc = "The user ID of the peer."]
                pub peerId: *const ::std::os::raw::c_char,
                #[doc = "@deprecated Deprecated as of v1.2.0. Use \\ref agora::rtm::PeerOnlineStatus::onlineState \"onlineState\" instead."]
                #[doc = ""]
                #[doc = "The online status of the peer."]
                #[doc = ""]
                #[doc = "- true: The user is online (the user has logged in the Agora RTM system)."]
                #[doc = "- false: The user is offline (the user has logged out of the Agora RTM system, has not logged in, or has failed to logged in)."]
                pub isOnline: bool,
                #[doc = "The online state of the peer. See #PEER_ONLINE_STATE."]
                #[doc = ""]
                #[doc = "@note"]
                #[doc = "- The server will never return the `unreachable` state, if you <i>query</i> the online status of specified peers (\\ref agora::rtm::IRtmService::queryPeersOnlineStatus \"queryPeersOnlineStatus\"). See also: \\ref agora::rtm::IRtmServiceEventHandler::onQueryPeersOnlineStatusResult \"onQueryPeersOnlineStatusResult\"."]
                #[doc = "- The server may return the `unreachable` state, if you <i>subscribe to</i> the online status of specified peers (\\ref agora::rtm::IRtmService::subscribePeersOnlineStatus \"subscribePeersOnlineStatus\"). See also: \\ref agora::rtm::IRtmServiceEventHandler::onPeersOnlineStatusChanged \"onPeersOnlineStatusChanged\"."]
                pub onlineState: PEER_ONLINE_STATE::Type,
            }
            #[test]
            fn bindgen_test_layout_PeerOnlineStatus() {
                assert_eq!(
                    ::core::mem::size_of::<PeerOnlineStatus>(),
                    16usize,
                    concat!("Size of: ", stringify!(PeerOnlineStatus))
                );
                assert_eq!(
                    ::core::mem::align_of::<PeerOnlineStatus>(),
                    8usize,
                    concat!("Alignment of ", stringify!(PeerOnlineStatus))
                );
                fn test_field_peerId() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<PeerOnlineStatus>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).peerId) as usize - ptr as usize
                        },
                        0usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(PeerOnlineStatus),
                            "::",
                            stringify!(peerId)
                        )
                    );
                }
                test_field_peerId();
                fn test_field_isOnline() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<PeerOnlineStatus>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).isOnline) as usize - ptr as usize
                        },
                        8usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(PeerOnlineStatus),
                            "::",
                            stringify!(isOnline)
                        )
                    );
                }
                test_field_isOnline();
                fn test_field_onlineState() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<PeerOnlineStatus>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).onlineState) as usize - ptr as usize
                        },
                        12usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(PeerOnlineStatus),
                            "::",
                            stringify!(onlineState)
                        )
                    );
                }
                test_field_onlineState();
            }
            #[doc = "@brief The data structure holding a channel ID and the current channel member count."]
            #[repr(C)]
            #[derive(Debug, Copy, Clone)]
            pub struct ChannelMemberCount {
                #[doc = "The ID of the channel."]
                pub channelId: *const ::std::os::raw::c_char,
                #[doc = "The current member count of the channel."]
                #[doc = ""]
                #[doc = "@note @p count is 0, if a channel with the specified @p channelId is not found."]
                pub count: ::std::os::raw::c_int,
            }
            #[test]
            fn bindgen_test_layout_ChannelMemberCount() {
                assert_eq!(
                    ::core::mem::size_of::<ChannelMemberCount>(),
                    16usize,
                    concat!("Size of: ", stringify!(ChannelMemberCount))
                );
                assert_eq!(
                    ::core::mem::align_of::<ChannelMemberCount>(),
                    8usize,
                    concat!("Alignment of ", stringify!(ChannelMemberCount))
                );
                fn test_field_channelId() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<ChannelMemberCount>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).channelId) as usize - ptr as usize
                        },
                        0usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(ChannelMemberCount),
                            "::",
                            stringify!(channelId)
                        )
                    );
                }
                test_field_channelId();
                fn test_field_count() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<ChannelMemberCount>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).count) as usize - ptr as usize
                        },
                        8usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(ChannelMemberCount),
                            "::",
                            stringify!(count)
                        )
                    );
                }
                test_field_count();
            }
            #[repr(C)]
            pub struct IChannelEventHandler__bindgen_vtable {}
            #[doc = "@brief Callbacks for the Agora RTM channel methods."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IChannelEventHandler {
                pub vtable_: *const IChannelEventHandler__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IChannelEventHandler() {
                assert_eq!(
                    ::core::mem::size_of::<IChannelEventHandler>(),
                    8usize,
                    concat!("Size of: ", stringify!(IChannelEventHandler))
                );
                assert_eq!(
                    ::core::mem::align_of::<IChannelEventHandler>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IChannelEventHandler))
                );
            }
            #[repr(C)]
            pub struct IChannel__bindgen_vtable {
                pub join: unsafe extern "C" fn(this: *mut IChannel) -> ::std::os::raw::c_int,
                pub leave: unsafe extern "C" fn(this: *mut IChannel) -> ::std::os::raw::c_int,
                pub sendMessage: unsafe extern "C" fn(
                    this: *mut IChannel,
                    message: *const IMessage,
                ) -> ::std::os::raw::c_int,
                pub sendMessage1: unsafe extern "C" fn(
                    this: *mut IChannel,
                    message: *const IMessage,
                    options: *const SendMessageOptions,
                ) -> ::std::os::raw::c_int,
                pub getId:
                    unsafe extern "C" fn(this: *const IChannel) -> *const ::std::os::raw::c_char,
                pub getMembers: unsafe extern "C" fn(this: *mut IChannel) -> ::std::os::raw::c_int,
                pub release: unsafe extern "C" fn(this: *mut IChannel),
            }
            #[doc = "@brief Agora RTM channel methods."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IChannel {
                pub vtable_: *const IChannel__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IChannel() {
                assert_eq!(
                    ::core::mem::size_of::<IChannel>(),
                    8usize,
                    concat!("Size of: ", stringify!(IChannel))
                );
                assert_eq!(
                    ::core::mem::align_of::<IChannel>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IChannel))
                );
            }
            #[repr(C)]
            pub struct IRtmServiceEventHandler__bindgen_vtable {}
            #[repr(C)]
            #[derive(Debug)]
            pub struct IRtmServiceEventHandler {
                pub vtable_: *const IRtmServiceEventHandler__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IRtmServiceEventHandler() {
                assert_eq!(
                    ::core::mem::size_of::<IRtmServiceEventHandler>(),
                    8usize,
                    concat!("Size of: ", stringify!(IRtmServiceEventHandler))
                );
                assert_eq!(
                    ::core::mem::align_of::<IRtmServiceEventHandler>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IRtmServiceEventHandler))
                );
            }
            pub mod LOG_FILTER_TYPE {
                #[doc = "@brief Output log filter level."]
                pub type Type = u32;
                #[doc = "0: Do not output any log information."]
                pub const LOG_FILTER_OFF: Type = 0;
                #[doc = "0x000f: Output CRITICAL, ERROR, WARNING, and INFO level log information."]
                pub const LOG_FILTER_INFO: Type = 15;
                #[doc = "0x000e: Output CRITICAL, ERROR, and WARNING level log information."]
                pub const LOG_FILTER_WARN: Type = 14;
                #[doc = "0x000c: Output CRITICAL and ERROR level log information."]
                pub const LOG_FILTER_ERROR: Type = 12;
                #[doc = "0x0008: Output CRITICAL level log information."]
                pub const LOG_FILTER_CRITICAL: Type = 8;
                #[doc = "Reserved for future use."]
                pub const LOG_FILTER_MASK: Type = 2063;
            }
            #[repr(C)]
            pub struct IRtmService__bindgen_vtable {
                pub initialize: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    appId: *const ::std::os::raw::c_char,
                    eventHandler: *mut IRtmServiceEventHandler,
                ) -> ::std::os::raw::c_int,
                pub addEventHandler: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    eventHandler: *mut IRtmServiceEventHandler,
                ),
                pub removeEventHandler: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    eventHandler: *mut IRtmServiceEventHandler,
                ),
                pub release: unsafe extern "C" fn(this: *mut IRtmService, sync: bool),
                pub login: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    token: *const ::std::os::raw::c_char,
                    userId: *const ::std::os::raw::c_char,
                ) -> ::std::os::raw::c_int,
                pub logout: unsafe extern "C" fn(this: *mut IRtmService) -> ::std::os::raw::c_int,
                pub renewToken: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    token: *const ::std::os::raw::c_char,
                ) -> ::std::os::raw::c_int,
                pub sendMessageToPeer: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    peerId: *const ::std::os::raw::c_char,
                    message: *const IMessage,
                )
                    -> ::std::os::raw::c_int,
                pub sendMessageToPeer1: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    peerId: *const ::std::os::raw::c_char,
                    message: *const IMessage,
                    options: *const SendMessageOptions,
                )
                    -> ::std::os::raw::c_int,
                pub createChannel: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    eventHandler: *mut IChannelEventHandler,
                ) -> *mut IChannel,
                pub getRtmCallManager: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    eventHandler: *mut IRtmCallEventHandler,
                )
                    -> *mut IRtmCallManager,
                pub createMessage: unsafe extern "C" fn(this: *mut IRtmService) -> *mut IMessage,
                pub createMessage1: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    message: *const ::std::os::raw::c_char,
                ) -> *mut IMessage,
                pub createMessage2: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    rawData: *const u8,
                    length: ::std::os::raw::c_int,
                ) -> *mut IMessage,
                pub createMessage3: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    rawData: *const u8,
                    length: ::std::os::raw::c_int,
                    description: *const ::std::os::raw::c_char,
                ) -> *mut IMessage,
                pub createChannelAttribute:
                    unsafe extern "C" fn(this: *mut IRtmService) -> *mut IRtmChannelAttribute,
                pub setParameters: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    parameters: *const ::std::os::raw::c_char,
                ) -> ::std::os::raw::c_int,
                pub queryPeersOnlineStatus: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    peerIds: *mut *const ::std::os::raw::c_char,
                    peerCount: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub subscribePeersOnlineStatus: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    peerIds: *mut *const ::std::os::raw::c_char,
                    peerCount: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub unsubscribePeersOnlineStatus: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    peerIds: *mut *const ::std::os::raw::c_char,
                    peerCount: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub queryPeersBySubscriptionOption: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    option: PEER_SUBSCRIPTION_OPTION::Type,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub setLocalUserAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    attributes: *const RtmAttribute,
                    numberOfAttributes: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub addOrUpdateLocalUserAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    attributes: *const RtmAttribute,
                    numberOfAttributes: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub deleteLocalUserAttributesByKeys: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    attributeKeys: *mut *const ::std::os::raw::c_char,
                    numberOfKeys: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub clearLocalUserAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub getUserAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    userId: *const ::std::os::raw::c_char,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub getUserAttributesByKeys: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    userId: *const ::std::os::raw::c_char,
                    attributeKeys: *mut *const ::std::os::raw::c_char,
                    numberOfKeys: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub setChannelAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    attributes: *mut *const IRtmChannelAttribute,
                    numberOfAttributes: ::std::os::raw::c_int,
                    options: *const ChannelAttributeOptions,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub addOrUpdateChannelAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    attributes: *mut *const IRtmChannelAttribute,
                    numberOfAttributes: ::std::os::raw::c_int,
                    options: *const ChannelAttributeOptions,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub deleteChannelAttributesByKeys: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    attributeKeys: *mut *const ::std::os::raw::c_char,
                    numberOfKeys: ::std::os::raw::c_int,
                    options: *const ChannelAttributeOptions,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub clearChannelAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    options: *const ChannelAttributeOptions,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub getChannelAttributes: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub getChannelAttributesByKeys: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelId: *const ::std::os::raw::c_char,
                    attributeKeys: *mut *const ::std::os::raw::c_char,
                    numberOfKeys: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub getChannelMemberCount: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    channelIds: *mut *const ::std::os::raw::c_char,
                    channelCount: ::std::os::raw::c_int,
                    requestId: *mut ::std::os::raw::c_longlong,
                )
                    -> ::std::os::raw::c_int,
                pub setLogFile: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    logfile: *const ::std::os::raw::c_char,
                ) -> ::std::os::raw::c_int,
                pub setLogFilter: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    filter: LOG_FILTER_TYPE::Type,
                ) -> ::std::os::raw::c_int,
                pub setLogFileSize: unsafe extern "C" fn(
                    this: *mut IRtmService,
                    fileSizeInKBytes: ::std::os::raw::c_int,
                ) -> ::std::os::raw::c_int,
            }
            #[repr(C)]
            #[derive(Debug)]
            pub struct IRtmService {
                pub vtable_: *const IRtmService__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IRtmService() {
                assert_eq!(
                    ::core::mem::size_of::<IRtmService>(),
                    8usize,
                    concat!("Size of: ", stringify!(IRtmService))
                );
                assert_eq!(
                    ::core::mem::align_of::<IRtmService>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IRtmService))
                );
            }
            extern "C" {
                #[doc = "Creates an \\ref agora::rtm::IRtmService \"IRtmService\" instance."]
                #[doc = ""]
                #[doc = "@note When you no longer need an \\ref agora::rtm::IRtmService \"IRtmService\" instance, ensure that you call the \\ref agora::rtm::IRtmService::release \"release\" method to release all resources that it uses."]
                #[doc = ""]
                #[doc = "@return An \\ref agora::rtm::IRtmService \"IRtmService\" instance."]
                pub fn createRtmService() -> *mut IRtmService;
            }
            extern "C" {
                #[doc = "Gets the version of the Agora RTM SDK."]
                #[doc = ""]
                #[doc = "@return The version of the Agora RTM SDK."]
                pub fn getRtmSdkVersion() -> *const ::std::os::raw::c_char;
            }
            pub mod RTM_AREA_CODE {
                #[doc = "Region for the Agora RTM service. After setting a region, the RTM SDK can only connect to the Agora RTM service in the specified region."]
                pub type Type = u32;
                #[doc = " Mainland China."]
                pub const AREA_CODE_CN: Type = 1;
                #[doc = " North America."]
                pub const AREA_CODE_NA: Type = 2;
                #[doc = " Europe."]
                pub const AREA_CODE_EU: Type = 4;
                #[doc = " Asia excluding Mainland China."]
                pub const AREA_CODE_AS: Type = 8;
                #[doc = " Japan."]
                pub const AREA_CODE_JP: Type = 16;
                #[doc = " India."]
                pub const AREA_CODE_IN: Type = 32;
                #[doc = " (Default) Global."]
                pub const AREA_CODE_GLOB: Type = 4294967295;
            }
            pub mod RTM_CLOUD_PROXY_TYPE {
                pub type Type = u32;
                #[doc = " No cloud proxy."]
                pub const RTM_NONE_PROXY: Type = 0;
                #[doc = " TLS cloud proxy."]
                pub const RTM_TCP_PROXY: Type = 1;
            }
            #[doc = "Context of the `%IRtmService` instance."]
            #[repr(C)]
            #[derive(Debug, Copy, Clone)]
            pub struct RtmServiceContext {
                #[doc = " Region for the Agora RTM service. The default is #AREA_CODE_GLOB."]
                pub areaCode: ::std::os::raw::c_int,
                #[doc = " Type of the cloud proxy. The default is `RTM_NONE_PROXY`. See #RTM_CLOUD_PROXY_TYPE."]
                pub proxyType: RTM_CLOUD_PROXY_TYPE::Type,
            }
            #[test]
            fn bindgen_test_layout_RtmServiceContext() {
                assert_eq!(
                    ::core::mem::size_of::<RtmServiceContext>(),
                    8usize,
                    concat!("Size of: ", stringify!(RtmServiceContext))
                );
                assert_eq!(
                    ::core::mem::align_of::<RtmServiceContext>(),
                    4usize,
                    concat!("Alignment of ", stringify!(RtmServiceContext))
                );
                fn test_field_areaCode() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<RtmServiceContext>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).areaCode) as usize - ptr as usize
                        },
                        0usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(RtmServiceContext),
                            "::",
                            stringify!(areaCode)
                        )
                    );
                }
                test_field_areaCode();
                fn test_field_proxyType() {
                    assert_eq!(
                        unsafe {
                            let uninit = ::core::mem::MaybeUninit::<RtmServiceContext>::uninit();
                            let ptr = uninit.as_ptr();
                            ::core::ptr::addr_of!((*ptr).proxyType) as usize - ptr as usize
                        },
                        4usize,
                        concat!(
                            "Offset of field: ",
                            stringify!(RtmServiceContext),
                            "::",
                            stringify!(proxyType)
                        )
                    );
                }
                test_field_proxyType();
            }
            pub mod SET_RTM_SERVICE_CONTEXT_ERR_CODE {
                #[doc = "Error codes returned by \\ref agora::rtm::setRtmServiceContext \"setRtmServiceContext\". See #RTM_AREA_CODE."]
                pub type Type = u32;
                #[doc = "0: Successfully configured the context for the Agora RTM service."]
                pub const SET_RTM_SERVICE_CONTEXT_ERR_OK: Type = 0;
                #[doc = "1: Failed to configure the context for the Agora RTM service because at least one \\ref agora::rtm::IRtmService \"IRtmService\" instance already exists. Call \\ref agora::rtm::IRtmService::release \"release\" to destroy any existing `%IRtmService` instance before configuring the context for the Agora RTM service."]
                pub const SET_RTM_SERVICE_CONTEXT_ERR_FAILURE: Type = 1;
            }
            extern "C" {
                #[doc = "Sets the context of all `IRtmService` instances. All `%IRtmservice` instances you create after calling this method match the context."]
                #[doc = ""]
                #[doc = "@note You must call this method before calling #createRtmService to create an `%IRtmservice` instance or after destroying any existing `%IRtmservice` instance. Otherwise, this method returns the #SET_RTM_SERVICE_CONTEXT_ERR_FAILURE error code."]
                #[doc = ""]
                #[doc = "@param context Context of the `%IRtmservice` instance, including geofencing and cloud proxy. See \\ref agora::rtm::RtmServiceContext \"RtmServiceContext\"."]
                #[doc = ""]
                #[doc = "@return #SET_RTM_SERVICE_CONTEXT_ERR_CODE."]
                pub fn setRtmServiceContext(
                    context: *const RtmServiceContext,
                ) -> SET_RTM_SERVICE_CONTEXT_ERR_CODE::Type;
            }
            pub mod LOCAL_INVITATION_STATE {
                #[doc = "@brief <b>RETURNED TO THE CALLER.</b> States of an outgoing call invitation."]
                pub type Type = u32;
                #[doc = "0: <b>RETURNED TO THE CALLER.</b> The initial state of a call invitation (idle)."]
                pub const LOCAL_INVITATION_STATE_IDLE: Type = 0;
                #[doc = "1: <b>RETURNED TO THE CALLER.</b> The call invitation is sent to the callee."]
                pub const LOCAL_INVITATION_STATE_SENT_TO_REMOTE: Type = 1;
                #[doc = "2: <b>RETURNED TO THE CALLER.</b> The call invitation is received by the callee."]
                pub const LOCAL_INVITATION_STATE_RECEIVED_BY_REMOTE: Type = 2;
                #[doc = "3: <b>RETURNED TO THE CALLER.</b> The call invitation is accepted by the callee."]
                pub const LOCAL_INVITATION_STATE_ACCEPTED_BY_REMOTE: Type = 3;
                #[doc = "4: <b>RETURNED TO THE CALLER.</b> The call invitation is declined by the callee."]
                pub const LOCAL_INVITATION_STATE_REFUSED_BY_REMOTE: Type = 4;
                #[doc = "5: <b>RETURNED TO THE CALLER.</b> You have canceled the call invitation."]
                pub const LOCAL_INVITATION_STATE_CANCELED: Type = 5;
                #[doc = "6: <b>RETURNED TO THE CALLER.</b> The call invitation fails."]
                pub const LOCAL_INVITATION_STATE_FAILURE: Type = 6;
            }
            pub mod REMOTE_INVITATION_STATE {
                #[doc = "@brief <b>RETURNED TO THE CALLEE.</b> States of an incoming call invitation."]
                pub type Type = u32;
                #[doc = "0: <b>RETURNED TO THE CALLEE.</b> The initial state of a call invitation (idle)."]
                pub const REMOTE_INVITATION_STATE_IDLE: Type = 0;
                #[doc = "1: <b>RETURNED TO THE CALLEE.</b> A call invitation from a remote caller is received."]
                pub const REMOTE_INVITATION_STATE_INVITATION_RECEIVED: Type = 1;
                #[doc = "2: <b>RETURNED TO THE CALLEE.</b> The message is sent to the caller that the call invitation is accepted."]
                pub const REMOTE_INVITATION_STATE_ACCEPT_SENT_TO_LOCAL: Type = 2;
                #[doc = "3: <b>RETURNED TO THE CALLEE.</b> You have declined the call invitation."]
                pub const REMOTE_INVITATION_STATE_REFUSED: Type = 3;
                #[doc = "4: <b>RETURNED TO THE CALLEE.</b> You have accepted the call invitation."]
                pub const REMOTE_INVITATION_STATE_ACCEPTED: Type = 4;
                #[doc = "5: <b>RETURNED TO THE CALLEE.</b> The call invitation is canceled by the remote caller."]
                pub const REMOTE_INVITATION_STATE_CANCELED: Type = 5;
                #[doc = "6: <b>RETURNED TO THE CALLEE.</b> The call invitation fails."]
                pub const REMOTE_INVITATION_STATE_FAILURE: Type = 6;
            }
            pub mod LOCAL_INVITATION_ERR_CODE {
                #[doc = "@brief <b>RETURNED TO THE CALLER.</b> Error codes of an outgoing call invitation."]
                pub type Type = u32;
                #[doc = "0: <b>RETURNED TO THE CALLER.</b> The outgoing invitation succeeds."]
                pub const LOCAL_INVITATION_ERR_OK: Type = 0;
                #[doc = "1: <b>RETURNED TO THE CALLER.</b> The callee is offline."]
                #[doc = ""]
                #[doc = "The SDK performs the following:"]
                #[doc = "- Keeps resending the call invitation to the callee, if the callee is offline."]
                #[doc = "- Returns this error code, if the callee is still offline 30 seconds since the call invitation is sent."]
                pub const LOCAL_INVITATION_ERR_PEER_OFFLINE: Type = 1;
                #[doc = "2: <b>RETURNED TO THE CALLER.</b> The callee is online but has not ACKed to the call invitation 30 seconds since it is sent."]
                pub const LOCAL_INVITATION_ERR_PEER_NO_RESPONSE: Type = 2;
                #[doc = "3: <b>RETURNED TO THE CALLER. SAVED FOR FUTURE USE.</b> The call invitation expires 60 seconds since it is sent, if the callee ACKs to the call invitation but neither the caller or callee takes any further action (cancel, accpet, or decline it)."]
                pub const LOCAL_INVITATION_ERR_INVITATION_EXPIRE: Type = 3;
                #[doc = "4: <b>RETURNED TO THE CALLER.</b> The caller is not logged in."]
                pub const LOCAL_INVITATION_ERR_NOT_LOGGEDIN: Type = 4;
            }
            pub mod REMOTE_INVITATION_ERR_CODE {
                #[doc = "@brief <b>RETURNED TO THE CALLEE.</b> Error codes of an incoming call invitation."]
                pub type Type = u32;
                #[doc = "0: <b>RETURNED TO THE CALLEE.</b> The incoming calll invitation succeeds."]
                pub const REMOTE_INVITATION_ERR_OK: Type = 0;
                #[doc = "1: <b>RETURNED TO THE CALLEE.</b> The call invitation received by the callee fails: the callee is not online."]
                pub const REMOTE_INVITATION_ERR_PEER_OFFLINE: Type = 1;
                #[doc = "2: <b>RETURNED TO THE CALLEE.</b> The call invitation received by callee fails: The callee does not ACK within a set time after the callee accepts the call invitation. This is usually a result of a network interruption."]
                pub const REMOTE_INVITATION_ERR_ACCEPT_FAILURE: Type = 2;
                #[doc = "3: <b>RETURNED TO THE CALLEE.</b> The call invitation expires 60 seconds since it is sent, if the callee ACKs to the call invitation but neither the caller or callee takes any further action (cancel, accpet, or decline it)."]
                pub const REMOTE_INVITATION_ERR_INVITATION_EXPIRE: Type = 3;
            }
            pub mod INVITATION_API_CALL_ERR_CODE {
                #[doc = "@brief Error codes of the call invitation methods."]
                pub type Type = u32;
                #[doc = "0: The method call succeeds."]
                pub const INVITATION_API_CALL_ERR_OK: Type = 0;
                #[doc = "1: The method call fails. The argument is invalid, for example, the value of the @p content parameter exceeds 8K bytes."]
                pub const INVITATION_API_CALL_ERR_INVALID_ARGUMENT: Type = 1;
                #[doc = "2: The method call fails. The call invitation has not started."]
                pub const INVITATION_API_CALL_ERR_NOT_STARTED: Type = 2;
                #[doc = "3: The method call fails. The call invitation has ended."]
                pub const INVITATION_API_CALL_ERR_ALREADY_END: Type = 3;
                #[doc = "4: The method call fails. The call invitation is already accepted."]
                pub const INVITATION_API_CALL_ERR_ALREADY_ACCEPT: Type = 4;
                #[doc = "5: The method call fails. The call invitation is already sent."]
                pub const INVITATION_API_CALL_ERR_ALREADY_SENT: Type = 5;
            }
            #[repr(C)]
            pub struct ILocalCallInvitation__bindgen_vtable {
                pub getCalleeId: unsafe extern "C" fn(
                    this: *const ILocalCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub setContent: unsafe extern "C" fn(
                    this: *mut ILocalCallInvitation,
                    content: *const ::std::os::raw::c_char,
                ),
                pub getContent: unsafe extern "C" fn(
                    this: *const ILocalCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub setChannelId: unsafe extern "C" fn(
                    this: *mut ILocalCallInvitation,
                    channelId: *const ::std::os::raw::c_char,
                ),
                pub getChannelId: unsafe extern "C" fn(
                    this: *const ILocalCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub getResponse: unsafe extern "C" fn(
                    this: *const ILocalCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub getState: unsafe extern "C" fn(
                    this: *const ILocalCallInvitation,
                ) -> LOCAL_INVITATION_STATE::Type,
                pub release: unsafe extern "C" fn(this: *mut ILocalCallInvitation),
            }
            #[doc = "The class allowing the caller to retrieve the attributes of an outgoing call invitation."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct ILocalCallInvitation {
                pub vtable_: *const ILocalCallInvitation__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_ILocalCallInvitation() {
                assert_eq!(
                    ::core::mem::size_of::<ILocalCallInvitation>(),
                    8usize,
                    concat!("Size of: ", stringify!(ILocalCallInvitation))
                );
                assert_eq!(
                    ::core::mem::align_of::<ILocalCallInvitation>(),
                    8usize,
                    concat!("Alignment of ", stringify!(ILocalCallInvitation))
                );
            }
            #[repr(C)]
            pub struct IRemoteCallInvitation__bindgen_vtable {
                pub getCallerId: unsafe extern "C" fn(
                    this: *const IRemoteCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub getContent: unsafe extern "C" fn(
                    this: *const IRemoteCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub setResponse: unsafe extern "C" fn(
                    this: *mut IRemoteCallInvitation,
                    response: *const ::std::os::raw::c_char,
                ),
                pub getResponse: unsafe extern "C" fn(
                    this: *const IRemoteCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub getChannelId: unsafe extern "C" fn(
                    this: *const IRemoteCallInvitation,
                )
                    -> *const ::std::os::raw::c_char,
                pub getState: unsafe extern "C" fn(
                    this: *const IRemoteCallInvitation,
                )
                    -> REMOTE_INVITATION_STATE::Type,
                pub release: unsafe extern "C" fn(this: *mut IRemoteCallInvitation),
            }
            #[doc = "The class allowing the callee to retrieve the attributes of an incoming call invitation."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IRemoteCallInvitation {
                pub vtable_: *const IRemoteCallInvitation__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IRemoteCallInvitation() {
                assert_eq!(
                    ::core::mem::size_of::<IRemoteCallInvitation>(),
                    8usize,
                    concat!("Size of: ", stringify!(IRemoteCallInvitation))
                );
                assert_eq!(
                    ::core::mem::align_of::<IRemoteCallInvitation>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IRemoteCallInvitation))
                );
            }
            #[repr(C)]
            pub struct IRtmCallEventHandler__bindgen_vtable {}
            #[doc = "Callbacks for the call invitation methods."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IRtmCallEventHandler {
                pub vtable_: *const IRtmCallEventHandler__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IRtmCallEventHandler() {
                assert_eq!(
                    ::core::mem::size_of::<IRtmCallEventHandler>(),
                    8usize,
                    concat!("Size of: ", stringify!(IRtmCallEventHandler))
                );
                assert_eq!(
                    ::core::mem::align_of::<IRtmCallEventHandler>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IRtmCallEventHandler))
                );
            }
            #[repr(C)]
            pub struct IRtmCallManager__bindgen_vtable {
                pub sendLocalInvitation: unsafe extern "C" fn(
                    this: *mut IRtmCallManager,
                    invitation: *mut ILocalCallInvitation,
                )
                    -> ::std::os::raw::c_int,
                pub acceptRemoteInvitation: unsafe extern "C" fn(
                    this: *mut IRtmCallManager,
                    invitation: *mut IRemoteCallInvitation,
                )
                    -> ::std::os::raw::c_int,
                pub refuseRemoteInvitation: unsafe extern "C" fn(
                    this: *mut IRtmCallManager,
                    invitation: *mut IRemoteCallInvitation,
                )
                    -> ::std::os::raw::c_int,
                pub cancelLocalInvitation: unsafe extern "C" fn(
                    this: *mut IRtmCallManager,
                    invitation: *mut ILocalCallInvitation,
                )
                    -> ::std::os::raw::c_int,
                pub createLocalCallInvitation: unsafe extern "C" fn(
                    this: *mut IRtmCallManager,
                    calleeId: *const ::std::os::raw::c_char,
                )
                    -> *mut ILocalCallInvitation,
                pub release: unsafe extern "C" fn(this: *mut IRtmCallManager),
            }
            #[doc = "RTM call manager methods."]
            #[repr(C)]
            #[derive(Debug)]
            pub struct IRtmCallManager {
                pub vtable_: *const IRtmCallManager__bindgen_vtable,
            }
            #[test]
            fn bindgen_test_layout_IRtmCallManager() {
                assert_eq!(
                    ::core::mem::size_of::<IRtmCallManager>(),
                    8usize,
                    concat!("Size of: ", stringify!(IRtmCallManager))
                );
                assert_eq!(
                    ::core::mem::align_of::<IRtmCallManager>(),
                    8usize,
                    concat!("Alignment of ", stringify!(IRtmCallManager))
                );
            }
        }
    }
    pub type __builtin_va_list = *mut ::std::os::raw::c_char;
}