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
pub const NT_DEFAULT_PORT : u32 = 1735 ;
pub type NT_Bool = :: std :: os :: raw :: c_int ; pub type NT_Handle = :: std :: os :: raw :: c_uint ; pub type NT_ConnectionListener = NT_Handle ; pub type NT_ConnectionListenerPoller = NT_Handle ; pub type NT_Entry = NT_Handle ; pub type NT_EntryListener = NT_Handle ; pub type NT_EntryListenerPoller = NT_Handle ; pub type NT_Inst = NT_Handle ; pub type NT_Logger = NT_Handle ; pub type NT_LoggerPoller = NT_Handle ; pub type NT_RpcCall = NT_Handle ; pub type NT_RpcCallPoller = NT_Handle ; pub const NT_Type_NT_UNASSIGNED : NT_Type = 0 ; pub const NT_Type_NT_BOOLEAN : NT_Type = 1 ; pub const NT_Type_NT_DOUBLE : NT_Type = 2 ; pub const NT_Type_NT_STRING : NT_Type = 4 ; pub const NT_Type_NT_RAW : NT_Type = 8 ; pub const NT_Type_NT_BOOLEAN_ARRAY : NT_Type = 16 ; pub const NT_Type_NT_DOUBLE_ARRAY : NT_Type = 32 ; pub const NT_Type_NT_STRING_ARRAY : NT_Type = 64 ; pub const NT_Type_NT_RPC : NT_Type = 128 ;
pub type NT_Type = u32 ; pub const NT_EntryFlags_NT_PERSISTENT : NT_EntryFlags = 1 ;
pub type NT_EntryFlags = u32 ; pub const NT_LogLevel_NT_LOG_CRITICAL : NT_LogLevel = 50 ; pub const NT_LogLevel_NT_LOG_ERROR : NT_LogLevel = 40 ; pub const NT_LogLevel_NT_LOG_WARNING : NT_LogLevel = 30 ; pub const NT_LogLevel_NT_LOG_INFO : NT_LogLevel = 20 ; pub const NT_LogLevel_NT_LOG_DEBUG : NT_LogLevel = 10 ; pub const NT_LogLevel_NT_LOG_DEBUG1 : NT_LogLevel = 9 ; pub const NT_LogLevel_NT_LOG_DEBUG2 : NT_LogLevel = 8 ; pub const NT_LogLevel_NT_LOG_DEBUG3 : NT_LogLevel = 7 ; pub const NT_LogLevel_NT_LOG_DEBUG4 : NT_LogLevel = 6 ;
pub type NT_LogLevel = u32 ; pub const NT_NotifyKind_NT_NOTIFY_NONE : NT_NotifyKind = 0 ; pub const NT_NotifyKind_NT_NOTIFY_IMMEDIATE : NT_NotifyKind = 1 ; pub const NT_NotifyKind_NT_NOTIFY_LOCAL : NT_NotifyKind = 2 ; pub const NT_NotifyKind_NT_NOTIFY_NEW : NT_NotifyKind = 4 ; pub const NT_NotifyKind_NT_NOTIFY_DELETE : NT_NotifyKind = 8 ; pub const NT_NotifyKind_NT_NOTIFY_UPDATE : NT_NotifyKind = 16 ; pub const NT_NotifyKind_NT_NOTIFY_FLAGS : NT_NotifyKind = 32 ;
pub type NT_NotifyKind = u32 ; pub const NT_NetworkMode_NT_NET_MODE_NONE : NT_NetworkMode = 0 ; pub const NT_NetworkMode_NT_NET_MODE_SERVER : NT_NetworkMode = 1 ; pub const NT_NetworkMode_NT_NET_MODE_CLIENT : NT_NetworkMode = 2 ; pub const NT_NetworkMode_NT_NET_MODE_STARTING : NT_NetworkMode = 4 ; pub const NT_NetworkMode_NT_NET_MODE_FAILURE : NT_NetworkMode = 8 ;
pub type NT_NetworkMode = u32 ;
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_String {
pub str : * mut :: std :: os :: raw :: c_char ,
pub len : usize , } # [ test ] fn bindgen_test_layout_NT_String ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_String > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( NT_String ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_String > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_String ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_String > ( ) ) ) . str as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_String ) , "::" , stringify ! ( str ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_String > ( ) ) ) . len as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_String ) , "::" , stringify ! ( len ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct NT_Value { pub type_ : NT_Type , pub last_change : u64 , pub data : NT_Value__bindgen_ty_1 , } # [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub union NT_Value__bindgen_ty_1 { pub v_boolean : NT_Bool , pub v_double : f64 , pub v_string : NT_String , pub v_raw : NT_String , pub arr_boolean : NT_Value__bindgen_ty_1__bindgen_ty_1 , pub arr_double : NT_Value__bindgen_ty_1__bindgen_ty_2 , pub arr_string : NT_Value__bindgen_ty_1__bindgen_ty_3 , _bindgen_union_align : [ u64 ; 2usize ] , } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_Value__bindgen_ty_1__bindgen_ty_1 { pub arr : * mut NT_Bool , pub size : usize , } # [ test ] fn bindgen_test_layout_NT_Value__bindgen_ty_1__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_Value__bindgen_ty_1__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_Value__bindgen_ty_1__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . arr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( arr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1__bindgen_ty_1 > ( ) ) ) . size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_1 ) , "::" , stringify ! ( size ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_Value__bindgen_ty_1__bindgen_ty_2 { pub arr : * mut f64 , pub size : usize , } # [ test ] fn bindgen_test_layout_NT_Value__bindgen_ty_1__bindgen_ty_2 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_Value__bindgen_ty_1__bindgen_ty_2 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_Value__bindgen_ty_1__bindgen_ty_2 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_2 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . arr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( arr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1__bindgen_ty_2 > ( ) ) ) . size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_2 ) , "::" , stringify ! ( size ) ) ) ; } # [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_Value__bindgen_ty_1__bindgen_ty_3 { pub arr : * mut NT_String , pub size : usize , } # [ test ] fn bindgen_test_layout_NT_Value__bindgen_ty_1__bindgen_ty_3 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_Value__bindgen_ty_1__bindgen_ty_3 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_Value__bindgen_ty_1__bindgen_ty_3 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_3 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . arr as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( arr ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1__bindgen_ty_3 > ( ) ) ) . size as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1__bindgen_ty_3 ) , "::" , stringify ! ( size ) ) ) ; } # [ test ] fn bindgen_test_layout_NT_Value__bindgen_ty_1 ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_Value__bindgen_ty_1 > ( ) , 16usize , concat ! ( "Size of: " , stringify ! ( NT_Value__bindgen_ty_1 ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_Value__bindgen_ty_1 > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_Value__bindgen_ty_1 ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . v_boolean as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( v_boolean ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . v_double as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( v_double ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . v_string as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( v_string ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . v_raw as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( v_raw ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . arr_boolean as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( arr_boolean ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . arr_double as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( arr_double ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value__bindgen_ty_1 > ( ) ) ) . arr_string as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value__bindgen_ty_1 ) , "::" , stringify ! ( arr_string ) ) ) ; } # [ test ] fn bindgen_test_layout_NT_Value ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_Value > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( NT_Value ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_Value > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_Value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value > ( ) ) ) . type_ as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value > ( ) ) ) . last_change as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value ) , "::" , stringify ! ( last_change ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_Value > ( ) ) ) . data as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( NT_Value ) , "::" , stringify ! ( data ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_EntryInfo {
pub entry : NT_Entry ,
pub name : NT_String ,
pub type_ : NT_Type ,
pub flags : :: std :: os :: raw :: c_uint ,
pub last_change : u64 , } # [ test ] fn bindgen_test_layout_NT_EntryInfo ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_EntryInfo > ( ) , 40usize , concat ! ( "Size of: " , stringify ! ( NT_EntryInfo ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_EntryInfo > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_EntryInfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryInfo > ( ) ) ) . entry as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryInfo ) , "::" , stringify ! ( entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryInfo > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryInfo ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryInfo > ( ) ) ) . type_ as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryInfo ) , "::" , stringify ! ( type_ ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryInfo > ( ) ) ) . flags as * const _ as usize } , 28usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryInfo ) , "::" , stringify ! ( flags ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryInfo > ( ) ) ) . last_change as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryInfo ) , "::" , stringify ! ( last_change ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_ConnectionInfo {
pub remote_id : NT_String ,
pub remote_ip : NT_String ,
pub remote_port : :: std :: os :: raw :: c_uint ,
pub last_update : u64 ,
pub protocol_version : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_NT_ConnectionInfo ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_ConnectionInfo > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( NT_ConnectionInfo ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_ConnectionInfo > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_ConnectionInfo ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionInfo > ( ) ) ) . remote_id as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionInfo ) , "::" , stringify ! ( remote_id ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionInfo > ( ) ) ) . remote_ip as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionInfo ) , "::" , stringify ! ( remote_ip ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionInfo > ( ) ) ) . remote_port as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionInfo ) , "::" , stringify ! ( remote_port ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionInfo > ( ) ) ) . last_update as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionInfo ) , "::" , stringify ! ( last_update ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionInfo > ( ) ) ) . protocol_version as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionInfo ) , "::" , stringify ! ( protocol_version ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct NT_RpcParamDef { pub name : NT_String , pub def_value : NT_Value , } # [ test ] fn bindgen_test_layout_NT_RpcParamDef ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_RpcParamDef > ( ) , 48usize , concat ! ( "Size of: " , stringify ! ( NT_RpcParamDef ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_RpcParamDef > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_RpcParamDef ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcParamDef > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcParamDef ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcParamDef > ( ) ) ) . def_value as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcParamDef ) , "::" , stringify ! ( def_value ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_RpcResultDef { pub name : NT_String , pub type_ : NT_Type , } # [ test ] fn bindgen_test_layout_NT_RpcResultDef ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_RpcResultDef > ( ) , 24usize , concat ! ( "Size of: " , stringify ! ( NT_RpcResultDef ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_RpcResultDef > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_RpcResultDef ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcResultDef > ( ) ) ) . name as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcResultDef ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcResultDef > ( ) ) ) . type_ as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcResultDef ) , "::" , stringify ! ( type_ ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_RpcDefinition { pub version : :: std :: os :: raw :: c_uint , pub name : NT_String , pub num_params : usize , pub params : * mut NT_RpcParamDef , pub num_results : usize , pub results : * mut NT_RpcResultDef , } # [ test ] fn bindgen_test_layout_NT_RpcDefinition ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_RpcDefinition > ( ) , 56usize , concat ! ( "Size of: " , stringify ! ( NT_RpcDefinition ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_RpcDefinition > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_RpcDefinition ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcDefinition > ( ) ) ) . version as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcDefinition ) , "::" , stringify ! ( version ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcDefinition > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcDefinition ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcDefinition > ( ) ) ) . num_params as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcDefinition ) , "::" , stringify ! ( num_params ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcDefinition > ( ) ) ) . params as * const _ as usize } , 32usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcDefinition ) , "::" , stringify ! ( params ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcDefinition > ( ) ) ) . num_results as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcDefinition ) , "::" , stringify ! ( num_results ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcDefinition > ( ) ) ) . results as * const _ as usize } , 48usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcDefinition ) , "::" , stringify ! ( results ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_RpcAnswer { pub entry : NT_Entry , pub call : NT_RpcCall , pub name : NT_String , pub params : NT_String , pub conn : NT_ConnectionInfo , } # [ test ] fn bindgen_test_layout_NT_RpcAnswer ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_RpcAnswer > ( ) , 96usize , concat ! ( "Size of: " , stringify ! ( NT_RpcAnswer ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_RpcAnswer > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_RpcAnswer ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcAnswer > ( ) ) ) . entry as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcAnswer ) , "::" , stringify ! ( entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcAnswer > ( ) ) ) . call as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcAnswer ) , "::" , stringify ! ( call ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcAnswer > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcAnswer ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcAnswer > ( ) ) ) . params as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcAnswer ) , "::" , stringify ! ( params ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_RpcAnswer > ( ) ) ) . conn as * const _ as usize } , 40usize , concat ! ( "Offset of field: " , stringify ! ( NT_RpcAnswer ) , "::" , stringify ! ( conn ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Copy , Clone ) ] pub struct NT_EntryNotification {
pub listener : NT_EntryListener ,
pub entry : NT_Entry ,
pub name : NT_String ,
pub value : NT_Value ,
pub flags : :: std :: os :: raw :: c_uint , } # [ test ] fn bindgen_test_layout_NT_EntryNotification ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_EntryNotification > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( NT_EntryNotification ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_EntryNotification > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_EntryNotification ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryNotification > ( ) ) ) . listener as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryNotification ) , "::" , stringify ! ( listener ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryNotification > ( ) ) ) . entry as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryNotification ) , "::" , stringify ! ( entry ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryNotification > ( ) ) ) . name as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryNotification ) , "::" , stringify ! ( name ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryNotification > ( ) ) ) . value as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryNotification ) , "::" , stringify ! ( value ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_EntryNotification > ( ) ) ) . flags as * const _ as usize } , 56usize , concat ! ( "Offset of field: " , stringify ! ( NT_EntryNotification ) , "::" , stringify ! ( flags ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_ConnectionNotification {
pub listener : NT_ConnectionListener ,
pub connected : NT_Bool ,
pub conn : NT_ConnectionInfo , } # [ test ] fn bindgen_test_layout_NT_ConnectionNotification ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_ConnectionNotification > ( ) , 64usize , concat ! ( "Size of: " , stringify ! ( NT_ConnectionNotification ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_ConnectionNotification > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_ConnectionNotification ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionNotification > ( ) ) ) . listener as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionNotification ) , "::" , stringify ! ( listener ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionNotification > ( ) ) ) . connected as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionNotification ) , "::" , stringify ! ( connected ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_ConnectionNotification > ( ) ) ) . conn as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_ConnectionNotification ) , "::" , stringify ! ( conn ) ) ) ; }
# [ repr ( C ) ] # [ derive ( Debug , Copy , Clone ) ] pub struct NT_LogMessage {
pub logger : NT_Logger ,
pub level : :: std :: os :: raw :: c_uint ,
pub filename : * const :: std :: os :: raw :: c_char ,
pub line : :: std :: os :: raw :: c_uint ,
pub message : * mut :: std :: os :: raw :: c_char , } # [ test ] fn bindgen_test_layout_NT_LogMessage ( ) { assert_eq ! ( :: std :: mem :: size_of :: < NT_LogMessage > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( NT_LogMessage ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < NT_LogMessage > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( NT_LogMessage ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_LogMessage > ( ) ) ) . logger as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( NT_LogMessage ) , "::" , stringify ! ( logger ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_LogMessage > ( ) ) ) . level as * const _ as usize } , 4usize , concat ! ( "Offset of field: " , stringify ! ( NT_LogMessage ) , "::" , stringify ! ( level ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_LogMessage > ( ) ) ) . filename as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( NT_LogMessage ) , "::" , stringify ! ( filename ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_LogMessage > ( ) ) ) . line as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( NT_LogMessage ) , "::" , stringify ! ( line ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < NT_LogMessage > ( ) ) ) . message as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( NT_LogMessage ) , "::" , stringify ! ( message ) ) ) ; } extern "C" {
pub fn NT_GetDefaultInstance ( ) -> NT_Inst ; } extern "C" {
pub fn NT_CreateInstance ( ) -> NT_Inst ; } extern "C" {
pub fn NT_DestroyInstance ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_GetInstanceFromHandle ( handle : NT_Handle ) -> NT_Inst ; } extern "C" {
pub fn NT_GetEntry ( inst : NT_Inst , name : * const :: std :: os :: raw :: c_char , name_len : usize ) -> NT_Entry ; } extern "C" {
pub fn NT_GetEntries ( inst : NT_Inst , prefix : * const :: std :: os :: raw :: c_char , prefix_len : usize , types : :: std :: os :: raw :: c_uint , count : * mut usize ) -> * mut NT_Entry ; } extern "C" {
pub fn NT_GetEntryName ( entry : NT_Entry , name_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_GetEntryType ( entry : NT_Entry ) -> NT_Type ; } extern "C" {
pub fn NT_GetEntryLastChange ( entry : NT_Entry ) -> u64 ; } extern "C" {
pub fn NT_GetEntryValue ( entry : NT_Entry , value : * mut NT_Value ) ; } extern "C" {
pub fn NT_SetDefaultEntryValue ( entry : NT_Entry , default_value : * const NT_Value ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryValue ( entry : NT_Entry , value : * const NT_Value ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryTypeValue ( entry : NT_Entry , value : * const NT_Value ) ; } extern "C" {
pub fn NT_SetEntryFlags ( entry : NT_Entry , flags : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_GetEntryFlags ( entry : NT_Entry ) -> :: std :: os :: raw :: c_uint ; } extern "C" {
pub fn NT_DeleteEntry ( entry : NT_Entry ) ; } extern "C" {
pub fn NT_DeleteAllEntries ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_GetEntryInfo ( inst : NT_Inst , prefix : * const :: std :: os :: raw :: c_char , prefix_len : usize , types : :: std :: os :: raw :: c_uint , count : * mut usize ) -> * mut NT_EntryInfo ; } extern "C" {
pub fn NT_GetEntryInfoHandle ( entry : NT_Entry , info : * mut NT_EntryInfo ) -> NT_Bool ; }
pub type NT_EntryListenerCallback = :: std :: option :: Option < unsafe extern "C" fn ( data : * mut :: std :: os :: raw :: c_void , event : * const NT_EntryNotification ) > ; extern "C" {
pub fn NT_AddEntryListener ( inst : NT_Inst , prefix : * const :: std :: os :: raw :: c_char , prefix_len : usize , data : * mut :: std :: os :: raw :: c_void , callback : NT_EntryListenerCallback , flags : :: std :: os :: raw :: c_uint ) -> NT_EntryListener ; } extern "C" {
pub fn NT_AddEntryListenerSingle ( entry : NT_Entry , data : * mut :: std :: os :: raw :: c_void , callback : NT_EntryListenerCallback , flags : :: std :: os :: raw :: c_uint ) -> NT_EntryListener ; } extern "C" {
pub fn NT_CreateEntryListenerPoller ( inst : NT_Inst ) -> NT_EntryListenerPoller ; } extern "C" {
pub fn NT_DestroyEntryListenerPoller ( poller : NT_EntryListenerPoller ) ; } extern "C" {
pub fn NT_AddPolledEntryListener ( poller : NT_EntryListenerPoller , prefix : * const :: std :: os :: raw :: c_char , prefix_len : usize , flags : :: std :: os :: raw :: c_uint ) -> NT_EntryListener ; } extern "C" {
pub fn NT_AddPolledEntryListenerSingle ( poller : NT_EntryListenerPoller , entry : NT_Entry , flags : :: std :: os :: raw :: c_uint ) -> NT_EntryListener ; } extern "C" {
pub fn NT_PollEntryListener ( poller : NT_EntryListenerPoller , len : * mut usize ) -> * mut NT_EntryNotification ; } extern "C" {
pub fn NT_PollEntryListenerTimeout ( poller : NT_EntryListenerPoller , len : * mut usize , timeout : f64 , timed_out : * mut NT_Bool ) -> * mut NT_EntryNotification ; } extern "C" {
pub fn NT_CancelPollEntryListener ( poller : NT_EntryListenerPoller ) ; } extern "C" {
pub fn NT_RemoveEntryListener ( entry_listener : NT_EntryListener ) ; } extern "C" {
pub fn NT_WaitForEntryListenerQueue ( inst : NT_Inst , timeout : f64 ) -> NT_Bool ; }
pub type NT_ConnectionListenerCallback = :: std :: option :: Option < unsafe extern "C" fn ( data : * mut :: std :: os :: raw :: c_void , event : * const NT_ConnectionNotification ) > ; extern "C" {
pub fn NT_AddConnectionListener ( inst : NT_Inst , data : * mut :: std :: os :: raw :: c_void , callback : NT_ConnectionListenerCallback , immediate_notify : NT_Bool ) -> NT_ConnectionListener ; } extern "C" {
pub fn NT_CreateConnectionListenerPoller ( inst : NT_Inst ) -> NT_ConnectionListenerPoller ; } extern "C" {
pub fn NT_DestroyConnectionListenerPoller ( poller : NT_ConnectionListenerPoller ) ; } extern "C" {
pub fn NT_AddPolledConnectionListener ( poller : NT_ConnectionListenerPoller , immediate_notify : NT_Bool ) -> NT_ConnectionListener ; } extern "C" {
pub fn NT_PollConnectionListener ( poller : NT_ConnectionListenerPoller , len : * mut usize ) -> * mut NT_ConnectionNotification ; } extern "C" {
pub fn NT_PollConnectionListenerTimeout ( poller : NT_ConnectionListenerPoller , len : * mut usize , timeout : f64 , timed_out : * mut NT_Bool ) -> * mut NT_ConnectionNotification ; } extern "C" {
pub fn NT_CancelPollConnectionListener ( poller : NT_ConnectionListenerPoller ) ; } extern "C" {
pub fn NT_RemoveConnectionListener ( conn_listener : NT_ConnectionListener ) ; } extern "C" {
pub fn NT_WaitForConnectionListenerQueue ( inst : NT_Inst , timeout : f64 ) -> NT_Bool ; }
pub type NT_RpcCallback = :: std :: option :: Option < unsafe extern "C" fn ( data : * mut :: std :: os :: raw :: c_void , call : * const NT_RpcAnswer ) > ; extern "C" {
pub fn NT_CreateRpc ( entry : NT_Entry , def : * const :: std :: os :: raw :: c_char , def_len : usize , data : * mut :: std :: os :: raw :: c_void , callback : NT_RpcCallback ) ; } extern "C" {
pub fn NT_CreateRpcCallPoller ( inst : NT_Inst ) -> NT_RpcCallPoller ; } extern "C" {
pub fn NT_DestroyRpcCallPoller ( poller : NT_RpcCallPoller ) ; } extern "C" {
pub fn NT_CreatePolledRpc ( entry : NT_Entry , def : * const :: std :: os :: raw :: c_char , def_len : usize , poller : NT_RpcCallPoller ) ; } extern "C" {
pub fn NT_PollRpc ( poller : NT_RpcCallPoller , len : * mut usize ) -> * mut NT_RpcAnswer ; } extern "C" {
pub fn NT_PollRpcTimeout ( poller : NT_RpcCallPoller , len : * mut usize , timeout : f64 , timed_out : * mut NT_Bool ) -> * mut NT_RpcAnswer ; } extern "C" {
pub fn NT_CancelPollRpc ( poller : NT_RpcCallPoller ) ; } extern "C" {
pub fn NT_WaitForRpcCallQueue ( inst : NT_Inst , timeout : f64 ) -> NT_Bool ; } extern "C" {
pub fn NT_PostRpcResponse ( entry : NT_Entry , call : NT_RpcCall , result : * const :: std :: os :: raw :: c_char , result_len : usize ) ; } extern "C" {
pub fn NT_CallRpc ( entry : NT_Entry , params : * const :: std :: os :: raw :: c_char , params_len : usize ) -> NT_RpcCall ; } extern "C" {
pub fn NT_GetRpcResult ( entry : NT_Entry , call : NT_RpcCall , result_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_GetRpcResultTimeout ( entry : NT_Entry , call : NT_RpcCall , result_len : * mut usize , timeout : f64 , timed_out : * mut NT_Bool ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_CancelRpcResult ( entry : NT_Entry , call : NT_RpcCall ) ; } extern "C" {
pub fn NT_PackRpcDefinition ( def : * const NT_RpcDefinition , packed_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_UnpackRpcDefinition ( packed : * const :: std :: os :: raw :: c_char , packed_len : usize , def : * mut NT_RpcDefinition ) -> NT_Bool ; } extern "C" {
pub fn NT_PackRpcValues ( values : * mut * const NT_Value , values_len : usize , packed_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_UnpackRpcValues ( packed : * const :: std :: os :: raw :: c_char , packed_len : usize , types : * const NT_Type , types_len : usize ) -> * mut * mut NT_Value ; } extern "C" {
pub fn NT_SetNetworkIdentity ( inst : NT_Inst , name : * const :: std :: os :: raw :: c_char , name_len : usize ) ; } extern "C" {
pub fn NT_GetNetworkMode ( inst : NT_Inst ) -> :: std :: os :: raw :: c_uint ; } extern "C" {
pub fn NT_StartServer ( inst : NT_Inst , persist_filename : * const :: std :: os :: raw :: c_char , listen_address : * const :: std :: os :: raw :: c_char , port : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_StopServer ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_StartClientNone ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_StartClient ( inst : NT_Inst , server_name : * const :: std :: os :: raw :: c_char , port : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_StartClientMulti ( inst : NT_Inst , count : usize , server_names : * mut * const :: std :: os :: raw :: c_char , ports : * const :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_StartClientTeam ( inst : NT_Inst , team : :: std :: os :: raw :: c_uint , port : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_StopClient ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_SetServer ( inst : NT_Inst , server_name : * const :: std :: os :: raw :: c_char , port : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_SetServerMulti ( inst : NT_Inst , count : usize , server_names : * mut * const :: std :: os :: raw :: c_char , ports : * const :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_SetServerTeam ( inst : NT_Inst , team : :: std :: os :: raw :: c_uint , port : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_StartDSClient ( inst : NT_Inst , port : :: std :: os :: raw :: c_uint ) ; } extern "C" {
pub fn NT_StopDSClient ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_SetUpdateRate ( inst : NT_Inst , interval : f64 ) ; } extern "C" {
pub fn NT_Flush ( inst : NT_Inst ) ; } extern "C" {
pub fn NT_GetConnections ( inst : NT_Inst , count : * mut usize ) -> * mut NT_ConnectionInfo ; } extern "C" {
pub fn NT_IsConnected ( inst : NT_Inst ) -> NT_Bool ; } extern "C" {
pub fn NT_SavePersistent ( inst : NT_Inst , filename : * const :: std :: os :: raw :: c_char ) -> * const :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_LoadPersistent ( inst : NT_Inst , filename : * const :: std :: os :: raw :: c_char , warn : :: std :: option :: Option < unsafe extern "C" fn ( line : usize , msg : * const :: std :: os :: raw :: c_char ) > ) -> * const :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_SaveEntries ( inst : NT_Inst , filename : * const :: std :: os :: raw :: c_char , prefix : * const :: std :: os :: raw :: c_char , prefix_len : usize ) -> * const :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_LoadEntries ( inst : NT_Inst , filename : * const :: std :: os :: raw :: c_char , prefix : * const :: std :: os :: raw :: c_char , prefix_len : usize , warn : :: std :: option :: Option < unsafe extern "C" fn ( line : usize , msg : * const :: std :: os :: raw :: c_char ) > ) -> * const :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_DisposeValue ( value : * mut NT_Value ) ; } extern "C" {
pub fn NT_InitValue ( value : * mut NT_Value ) ; } extern "C" {
pub fn NT_DisposeString ( str : * mut NT_String ) ; } extern "C" {
pub fn NT_InitString ( str : * mut NT_String ) ; } extern "C" {
pub fn NT_DisposeEntryArray ( arr : * mut NT_Entry , count : usize ) ; } extern "C" {
pub fn NT_DisposeConnectionInfoArray ( arr : * mut NT_ConnectionInfo , count : usize ) ; } extern "C" {
pub fn NT_DisposeEntryInfoArray ( arr : * mut NT_EntryInfo , count : usize ) ; } extern "C" {
pub fn NT_DisposeEntryInfo ( info : * mut NT_EntryInfo ) ; } extern "C" {
pub fn NT_DisposeRpcDefinition ( def : * mut NT_RpcDefinition ) ; } extern "C" {
pub fn NT_DisposeRpcAnswerArray ( arr : * mut NT_RpcAnswer , count : usize ) ; } extern "C" {
pub fn NT_DisposeRpcAnswer ( answer : * mut NT_RpcAnswer ) ; } extern "C" {
pub fn NT_DisposeEntryNotificationArray ( arr : * mut NT_EntryNotification , count : usize ) ; } extern "C" {
pub fn NT_DisposeEntryNotification ( info : * mut NT_EntryNotification ) ; } extern "C" {
pub fn NT_DisposeConnectionNotificationArray ( arr : * mut NT_ConnectionNotification , count : usize ) ; } extern "C" {
pub fn NT_DisposeConnectionNotification ( info : * mut NT_ConnectionNotification ) ; } extern "C" {
pub fn NT_DisposeLogMessageArray ( arr : * mut NT_LogMessage , count : usize ) ; } extern "C" {
pub fn NT_DisposeLogMessage ( info : * mut NT_LogMessage ) ; } extern "C" {
pub fn NT_Now ( ) -> u64 ; }
pub type NT_LogFunc = :: std :: option :: Option < unsafe extern "C" fn ( data : * mut :: std :: os :: raw :: c_void , msg : * const NT_LogMessage ) > ; extern "C" {
pub fn NT_AddLogger ( inst : NT_Inst , data : * mut :: std :: os :: raw :: c_void , func : NT_LogFunc , min_level : :: std :: os :: raw :: c_uint , max_level : :: std :: os :: raw :: c_uint ) -> NT_Logger ; } extern "C" {
pub fn NT_CreateLoggerPoller ( inst : NT_Inst ) -> NT_LoggerPoller ; } extern "C" {
pub fn NT_DestroyLoggerPoller ( poller : NT_LoggerPoller ) ; } extern "C" {
pub fn NT_AddPolledLogger ( poller : NT_LoggerPoller , min_level : :: std :: os :: raw :: c_uint , max_level : :: std :: os :: raw :: c_uint ) -> NT_Logger ; } extern "C" {
pub fn NT_PollLogger ( poller : NT_LoggerPoller , len : * mut usize ) -> * mut NT_LogMessage ; } extern "C" {
pub fn NT_PollLoggerTimeout ( poller : NT_LoggerPoller , len : * mut usize , timeout : f64 , timed_out : * mut NT_Bool ) -> * mut NT_LogMessage ; } extern "C" {
pub fn NT_CancelPollLogger ( poller : NT_LoggerPoller ) ; } extern "C" {
pub fn NT_RemoveLogger ( logger : NT_Logger ) ; } extern "C" {
pub fn NT_WaitForLoggerQueue ( inst : NT_Inst , timeout : f64 ) -> NT_Bool ; } extern "C" {
pub fn NT_AllocateCharArray ( size : usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_AllocateBooleanArray ( size : usize ) -> * mut NT_Bool ; } extern "C" {
pub fn NT_AllocateDoubleArray ( size : usize ) -> * mut f64 ; } extern "C" {
pub fn NT_AllocateStringArray ( size : usize ) -> * mut NT_String ; } extern "C" {
pub fn NT_FreeCharArray ( v_char : * mut :: std :: os :: raw :: c_char ) ; } extern "C" {
pub fn NT_FreeDoubleArray ( v_double : * mut f64 ) ; } extern "C" {
pub fn NT_FreeBooleanArray ( v_boolean : * mut NT_Bool ) ; } extern "C" {
pub fn NT_FreeStringArray ( v_string : * mut NT_String , arr_size : usize ) ; } extern "C" {
pub fn NT_GetValueType ( value : * const NT_Value ) -> NT_Type ; } extern "C" {
pub fn NT_GetValueBoolean ( value : * const NT_Value , last_change : * mut u64 , v_boolean : * mut NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_GetValueDouble ( value : * const NT_Value , last_change : * mut u64 , v_double : * mut f64 ) -> NT_Bool ; } extern "C" {
pub fn NT_GetValueString ( value : * const NT_Value , last_change : * mut u64 , str_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_GetValueRaw ( value : * const NT_Value , last_change : * mut u64 , raw_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_GetValueBooleanArray ( value : * const NT_Value , last_change : * mut u64 , arr_size : * mut usize ) -> * mut NT_Bool ; } extern "C" {
pub fn NT_GetValueDoubleArray ( value : * const NT_Value , last_change : * mut u64 , arr_size : * mut usize ) -> * mut f64 ; } extern "C" {
pub fn NT_GetValueStringArray ( value : * const NT_Value , last_change : * mut u64 , arr_size : * mut usize ) -> * mut NT_String ; } extern "C" {
pub fn NT_GetEntryBoolean ( entry : NT_Entry , last_change : * mut u64 , v_boolean : * mut NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_GetEntryDouble ( entry : NT_Entry , last_change : * mut u64 , v_double : * mut f64 ) -> NT_Bool ; } extern "C" {
pub fn NT_GetEntryString ( entry : NT_Entry , last_change : * mut u64 , str_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_GetEntryRaw ( entry : NT_Entry , last_change : * mut u64 , raw_len : * mut usize ) -> * mut :: std :: os :: raw :: c_char ; } extern "C" {
pub fn NT_GetEntryBooleanArray ( entry : NT_Entry , last_change : * mut u64 , arr_size : * mut usize ) -> * mut NT_Bool ; } extern "C" {
pub fn NT_GetEntryDoubleArray ( entry : NT_Entry , last_change : * mut u64 , arr_size : * mut usize ) -> * mut f64 ; } extern "C" {
pub fn NT_GetEntryStringArray ( entry : NT_Entry , last_change : * mut u64 , arr_size : * mut usize ) -> * mut NT_String ; } extern "C" {
pub fn NT_SetDefaultEntryBoolean ( entry : NT_Entry , time : u64 , default_boolean : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetDefaultEntryDouble ( entry : NT_Entry , time : u64 , default_double : f64 ) -> NT_Bool ; } extern "C" {
pub fn NT_SetDefaultEntryString ( entry : NT_Entry , time : u64 , default_value : * const :: std :: os :: raw :: c_char , default_len : usize ) -> NT_Bool ; } extern "C" {
pub fn NT_SetDefaultEntryRaw ( entry : NT_Entry , time : u64 , default_value : * const :: std :: os :: raw :: c_char , default_len : usize ) -> NT_Bool ; } extern "C" {
pub fn NT_SetDefaultEntryBooleanArray ( entry : NT_Entry , time : u64 , default_value : * const :: std :: os :: raw :: c_int , default_size : usize ) -> NT_Bool ; } extern "C" {
pub fn NT_SetDefaultEntryDoubleArray ( entry : NT_Entry , time : u64 , default_value : * const f64 , default_size : usize ) -> NT_Bool ; } extern "C" {
pub fn NT_SetDefaultEntryStringArray ( entry : NT_Entry , time : u64 , default_value : * const NT_String , default_size : usize ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryBoolean ( entry : NT_Entry , time : u64 , v_boolean : NT_Bool , force : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryDouble ( entry : NT_Entry , time : u64 , v_double : f64 , force : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryString ( entry : NT_Entry , time : u64 , str : * const :: std :: os :: raw :: c_char , str_len : usize , force : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryRaw ( entry : NT_Entry , time : u64 , raw : * const :: std :: os :: raw :: c_char , raw_len : usize , force : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryBooleanArray ( entry : NT_Entry , time : u64 , arr : * const :: std :: os :: raw :: c_int , size : usize , force : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryDoubleArray ( entry : NT_Entry , time : u64 , arr : * const f64 , size : usize , force : NT_Bool ) -> NT_Bool ; } extern "C" {
pub fn NT_SetEntryStringArray ( entry : NT_Entry , time : u64 , arr : * const NT_String , size : usize , force : NT_Bool ) -> NT_Bool ; }