-
Notifications
You must be signed in to change notification settings - Fork 195
Expand file tree
/
Copy pathrcl_bindings_generated_rolling.rs
More file actions
9220 lines (9219 loc) · 351 KB
/
rcl_bindings_generated_rolling.rs
File metadata and controls
9220 lines (9219 loc) · 351 KB
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
/* automatically generated by rust-bindgen 0.72.1 */
pub type rcutils_ret_t = ::std::os::raw::c_int;
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_allocator_s {
pub allocate: ::std::option::Option<
unsafe extern "C" fn(
size: usize,
state: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>,
pub deallocate: ::std::option::Option<
unsafe extern "C" fn(
pointer: *mut ::std::os::raw::c_void,
state: *mut ::std::os::raw::c_void,
),
>,
pub reallocate: ::std::option::Option<
unsafe extern "C" fn(
pointer: *mut ::std::os::raw::c_void,
size: usize,
state: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>,
pub zero_allocate: ::std::option::Option<
unsafe extern "C" fn(
number_of_elements: usize,
size_of_element: usize,
state: *mut ::std::os::raw::c_void,
) -> *mut ::std::os::raw::c_void,
>,
pub state: *mut ::std::os::raw::c_void,
}
pub type rcutils_allocator_t = rcutils_allocator_s;
extern "C" {
pub fn rcutils_get_zero_initialized_allocator() -> rcutils_allocator_t;
}
extern "C" {
pub fn rcutils_get_default_allocator() -> rcutils_allocator_t;
}
extern "C" {
pub fn rcutils_allocator_is_valid(allocator: *const rcutils_allocator_t) -> bool;
}
extern "C" {
pub fn rcutils_reallocf(
pointer: *mut ::std::os::raw::c_void,
size: usize,
allocator: *mut rcutils_allocator_t,
) -> *mut ::std::os::raw::c_void;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_array_list_impl_s {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_array_list_s {
pub impl_: *mut rcutils_array_list_impl_s,
}
pub type rcutils_array_list_t = rcutils_array_list_s;
extern "C" {
pub fn rcutils_get_zero_initialized_array_list() -> rcutils_array_list_t;
}
extern "C" {
pub fn rcutils_array_list_init(
array_list: *mut rcutils_array_list_t,
initial_capacity: usize,
data_size: usize,
allocator: *const rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_array_list_fini(array_list: *mut rcutils_array_list_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_array_list_add(
array_list: *mut rcutils_array_list_t,
data: *const ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_array_list_set(
array_list: *mut rcutils_array_list_t,
index: usize,
data: *const ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_array_list_remove(
array_list: *mut rcutils_array_list_t,
index: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_array_list_get(
array_list: *const rcutils_array_list_t,
index: usize,
data: *mut ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_array_list_get_size(
array_list: *const rcutils_array_list_t,
size: *mut usize,
) -> rcutils_ret_t;
}
pub type va_list = __builtin_va_list;
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_char_array_s {
pub buffer: *mut ::std::os::raw::c_char,
pub owns_buffer: bool,
pub buffer_length: usize,
pub buffer_capacity: usize,
pub allocator: rcutils_allocator_t,
}
pub type rcutils_char_array_t = rcutils_char_array_s;
extern "C" {
pub fn rcutils_get_zero_initialized_char_array() -> rcutils_char_array_t;
}
extern "C" {
pub fn rcutils_char_array_init(
char_array: *mut rcutils_char_array_t,
buffer_capacity: usize,
allocator: *const rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_fini(char_array: *mut rcutils_char_array_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_resize(
char_array: *mut rcutils_char_array_t,
new_size: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_expand_as_needed(
char_array: *mut rcutils_char_array_t,
new_size: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_vsprintf(
char_array: *mut rcutils_char_array_t,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_strncat(
char_array: *mut rcutils_char_array_t,
src: *const ::std::os::raw::c_char,
n: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_strcat(
char_array: *mut rcutils_char_array_t,
src: *const ::std::os::raw::c_char,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_memcpy(
char_array: *mut rcutils_char_array_t,
src: *const ::std::os::raw::c_char,
n: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_char_array_strcpy(
char_array: *mut rcutils_char_array_t,
src: *const ::std::os::raw::c_char,
) -> rcutils_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_hash_map_impl_s {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_hash_map_s {
pub impl_: *mut rcutils_hash_map_impl_s,
}
pub type rcutils_hash_map_t = rcutils_hash_map_s;
pub type rcutils_hash_map_key_hasher_t =
::std::option::Option<unsafe extern "C" fn(key: *const ::std::os::raw::c_void) -> usize>;
pub type rcutils_hash_map_key_cmp_t = ::std::option::Option<
unsafe extern "C" fn(
val1: *const ::std::os::raw::c_void,
val2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>;
extern "C" {
pub fn rcutils_hash_map_string_hash_func(key_str: *const ::std::os::raw::c_void) -> usize;
}
extern "C" {
pub fn rcutils_hash_map_string_cmp_func(
val1: *const ::std::os::raw::c_void,
val2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_get_zero_initialized_hash_map() -> rcutils_hash_map_t;
}
extern "C" {
pub fn rcutils_hash_map_init(
hash_map: *mut rcutils_hash_map_t,
initial_capacity: usize,
key_size: usize,
data_size: usize,
key_hashing_func: rcutils_hash_map_key_hasher_t,
key_cmp_func: rcutils_hash_map_key_cmp_t,
allocator: *const rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_fini(hash_map: *mut rcutils_hash_map_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_get_capacity(
hash_map: *const rcutils_hash_map_t,
capacity: *mut usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_get_size(
hash_map: *const rcutils_hash_map_t,
size: *mut usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_set(
hash_map: *mut rcutils_hash_map_t,
key: *const ::std::os::raw::c_void,
value: *const ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_unset(
hash_map: *mut rcutils_hash_map_t,
key: *const ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_key_exists(
hash_map: *const rcutils_hash_map_t,
key: *const ::std::os::raw::c_void,
) -> bool;
}
extern "C" {
pub fn rcutils_hash_map_get(
hash_map: *const rcutils_hash_map_t,
key: *const ::std::os::raw::c_void,
data: *mut ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_hash_map_get_next_key_and_data(
hash_map: *const rcutils_hash_map_t,
previous_key: *const ::std::os::raw::c_void,
key: *mut ::std::os::raw::c_void,
data: *mut ::std::os::raw::c_void,
) -> rcutils_ret_t;
}
pub type __uint16_t = ::std::os::raw::c_ushort;
pub type __int64_t = ::std::os::raw::c_long;
pub type __uint_least16_t = __uint16_t;
pub type __int_least64_t = __int64_t;
pub type int_least64_t = __int_least64_t;
extern "C" {
pub fn rcutils_snprintf(
buffer: *mut ::std::os::raw::c_char,
buffer_size: usize,
format: *const ::std::os::raw::c_char,
...
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_vsnprintf(
buffer: *mut ::std::os::raw::c_char,
buffer_size: usize,
format: *const ::std::os::raw::c_char,
args: *mut __va_list_tag,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_strnlen(s: *const ::std::os::raw::c_char, maxlen: usize) -> usize;
}
extern "C" {
pub fn rcutils_fault_injection_is_test_complete() -> bool;
}
extern "C" {
pub fn rcutils_fault_injection_set_count(count: int_least64_t);
}
extern "C" {
pub fn rcutils_fault_injection_get_count() -> int_least64_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_error_string_s {
pub str_: [::std::os::raw::c_char; 1024usize],
}
pub type rcutils_error_string_t = rcutils_error_string_s;
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_error_state_s {
pub message: [::std::os::raw::c_char; 768usize],
pub file: [::std::os::raw::c_char; 229usize],
pub line_number: u64,
}
pub type rcutils_error_state_t = rcutils_error_state_s;
extern "C" {
pub fn rcutils_initialize_error_handling_thread_local_storage(
allocator: rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_set_error_state(
error_string: *const ::std::os::raw::c_char,
file: *const ::std::os::raw::c_char,
line_number: usize,
);
}
extern "C" {
pub fn rcutils_error_is_set() -> bool;
}
extern "C" {
pub fn rcutils_get_error_state() -> *const rcutils_error_state_t;
}
extern "C" {
pub fn rcutils_get_error_string() -> rcutils_error_string_t;
}
extern "C" {
pub fn rcutils_reset_error();
}
extern "C" {
pub fn rcutils_qsort(
ptr: *mut ::std::os::raw::c_void,
count: usize,
size: usize,
comp: ::std::option::Option<
unsafe extern "C" fn(
arg1: *const ::std::os::raw::c_void,
arg2: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int,
>,
) -> rcutils_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_string_array_s {
pub size: usize,
pub data: *mut *mut ::std::os::raw::c_char,
pub allocator: rcutils_allocator_t,
}
pub type rcutils_string_array_t = rcutils_string_array_s;
extern "C" {
pub fn rcutils_get_zero_initialized_string_array() -> rcutils_string_array_t;
}
extern "C" {
pub fn rcutils_string_array_init(
string_array: *mut rcutils_string_array_t,
size: usize,
allocator: *const rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_array_fini(string_array: *mut rcutils_string_array_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_array_cmp(
lhs: *const rcutils_string_array_t,
rhs: *const rcutils_string_array_t,
res: *mut ::std::os::raw::c_int,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_array_resize(
string_array: *mut rcutils_string_array_t,
new_size: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_array_sort_compare(
lhs: *const ::std::os::raw::c_void,
rhs: *const ::std::os::raw::c_void,
) -> ::std::os::raw::c_int;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_string_map_impl_s {
_unused: [u8; 0],
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_string_map_s {
pub impl_: *mut rcutils_string_map_impl_s,
}
pub type rcutils_string_map_t = rcutils_string_map_s;
extern "C" {
pub fn rcutils_get_zero_initialized_string_map() -> rcutils_string_map_t;
}
extern "C" {
pub fn rcutils_string_map_init(
string_map: *mut rcutils_string_map_t,
initial_capacity: usize,
allocator: rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_fini(string_map: *mut rcutils_string_map_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_get_capacity(
string_map: *const rcutils_string_map_t,
capacity: *mut usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_get_size(
string_map: *const rcutils_string_map_t,
size: *mut usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_reserve(
string_map: *mut rcutils_string_map_t,
capacity: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_clear(string_map: *mut rcutils_string_map_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_set(
string_map: *mut rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_set_no_resize(
string_map: *mut rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
value: *const ::std::os::raw::c_char,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_unset(
string_map: *mut rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_string_map_key_exists(
string_map: *const rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
) -> bool;
}
extern "C" {
pub fn rcutils_string_map_key_existsn(
string_map: *const rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
key_length: usize,
) -> bool;
}
extern "C" {
pub fn rcutils_string_map_get(
string_map: *const rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rcutils_string_map_getn(
string_map: *const rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
key_length: usize,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rcutils_string_map_get_next_key(
string_map: *const rcutils_string_map_t,
key: *const ::std::os::raw::c_char,
) -> *const ::std::os::raw::c_char;
}
extern "C" {
pub fn rcutils_string_map_copy(
src_string_map: *const rcutils_string_map_t,
dst_string_map: *mut rcutils_string_map_t,
) -> rcutils_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_uint8_array_s {
pub buffer: *mut u8,
pub buffer_length: usize,
pub buffer_capacity: usize,
pub allocator: rcutils_allocator_t,
}
pub type rcutils_uint8_array_t = rcutils_uint8_array_s;
extern "C" {
pub fn rcutils_get_zero_initialized_uint8_array() -> rcutils_uint8_array_t;
}
extern "C" {
pub fn rcutils_uint8_array_init(
uint8_array: *mut rcutils_uint8_array_t,
buffer_capacity: usize,
allocator: *const rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_uint8_array_fini(uint8_array: *mut rcutils_uint8_array_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_uint8_array_resize(
uint8_array: *mut rcutils_uint8_array_t,
new_size: usize,
) -> rcutils_ret_t;
}
pub type rcutils_time_point_value_t = i64;
pub type rcutils_duration_value_t = i64;
extern "C" {
pub fn rcutils_system_time_now(now: *mut rcutils_time_point_value_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_steady_time_now(now: *mut rcutils_time_point_value_t) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_time_point_value_as_nanoseconds_string(
time_point: *const rcutils_time_point_value_t,
str_: *mut ::std::os::raw::c_char,
str_size: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_time_point_value_as_date_string(
time_point: *const rcutils_time_point_value_t,
str_: *mut ::std::os::raw::c_char,
str_size: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_time_point_value_as_seconds_string(
time_point: *const rcutils_time_point_value_t,
str_: *mut ::std::os::raw::c_char,
str_size: usize,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_logging_initialize_with_allocator(
allocator: rcutils_allocator_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_logging_initialize() -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_logging_shutdown() -> rcutils_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rcutils_log_location_s {
pub function_name: *const ::std::os::raw::c_char,
pub file_name: *const ::std::os::raw::c_char,
pub line_number: usize,
}
pub type rcutils_log_location_t = rcutils_log_location_s;
#[repr(u32)]
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub enum RCUTILS_LOG_SEVERITY {
RCUTILS_LOG_SEVERITY_UNSET = 0,
RCUTILS_LOG_SEVERITY_DEBUG = 10,
RCUTILS_LOG_SEVERITY_INFO = 20,
RCUTILS_LOG_SEVERITY_WARN = 30,
RCUTILS_LOG_SEVERITY_ERROR = 40,
RCUTILS_LOG_SEVERITY_FATAL = 50,
}
extern "C" {
pub fn rcutils_logging_severity_level_from_string(
severity_string: *const ::std::os::raw::c_char,
allocator: rcutils_allocator_t,
severity: *mut ::std::os::raw::c_int,
) -> rcutils_ret_t;
}
pub type rcutils_logging_output_handler_t = ::std::option::Option<
unsafe extern "C" fn(
location: *const rcutils_log_location_t,
severity: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
timestamp: rcutils_time_point_value_t,
format: *const ::std::os::raw::c_char,
args: *mut va_list,
),
>;
extern "C" {
pub fn rcutils_logging_get_output_handler() -> rcutils_logging_output_handler_t;
}
extern "C" {
pub fn rcutils_logging_set_output_handler(function: rcutils_logging_output_handler_t);
}
extern "C" {
pub fn rcutils_logging_format_message(
location: *const rcutils_log_location_t,
severity: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
timestamp: rcutils_time_point_value_t,
msg: *const ::std::os::raw::c_char,
logging_output: *mut rcutils_char_array_t,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_logging_get_default_logger_level() -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_logging_set_default_logger_level(level: ::std::os::raw::c_int);
}
extern "C" {
pub fn rcutils_logging_get_logger_level(
name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_logging_get_logger_leveln(
name: *const ::std::os::raw::c_char,
name_length: usize,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_logging_set_logger_level(
name: *const ::std::os::raw::c_char,
level: ::std::os::raw::c_int,
) -> rcutils_ret_t;
}
extern "C" {
pub fn rcutils_logging_logger_is_enabled_for(
name: *const ::std::os::raw::c_char,
severity: ::std::os::raw::c_int,
) -> bool;
}
extern "C" {
pub fn rcutils_logging_get_logger_effective_level(
name: *const ::std::os::raw::c_char,
) -> ::std::os::raw::c_int;
}
extern "C" {
pub fn rcutils_log_internal(
location: *const rcutils_log_location_t,
severity: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn rcutils_log(
location: *const rcutils_log_location_t,
severity: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
format: *const ::std::os::raw::c_char,
...
);
}
extern "C" {
pub fn rcutils_logging_console_output_handler(
location: *const rcutils_log_location_t,
severity: ::std::os::raw::c_int,
name: *const ::std::os::raw::c_char,
timestamp: rcutils_time_point_value_t,
format: *const ::std::os::raw::c_char,
args: *mut va_list,
);
}
#[repr(u32)]
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub enum rmw_qos_policy_kind_e {
RMW_QOS_POLICY_INVALID = 1,
RMW_QOS_POLICY_DURABILITY = 2,
RMW_QOS_POLICY_DEADLINE = 4,
RMW_QOS_POLICY_LIVELINESS = 8,
RMW_QOS_POLICY_RELIABILITY = 16,
RMW_QOS_POLICY_HISTORY = 32,
RMW_QOS_POLICY_LIFESPAN = 64,
RMW_QOS_POLICY_DEPTH = 128,
RMW_QOS_POLICY_LIVELINESS_LEASE_DURATION = 256,
RMW_QOS_POLICY_AVOID_ROS_NAMESPACE_CONVENTIONS = 512,
}
pub use self::rmw_qos_policy_kind_e as rmw_qos_policy_kind_t;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_qos_incompatible_event_status_s {
pub total_count: i32,
pub total_count_change: i32,
pub last_policy_kind: rmw_qos_policy_kind_t,
}
pub type rmw_qos_incompatible_event_status_t = rmw_qos_incompatible_event_status_s;
pub type rmw_requested_qos_incompatible_event_status_t = rmw_qos_incompatible_event_status_t;
pub type rmw_offered_qos_incompatible_event_status_t = rmw_qos_incompatible_event_status_t;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_incompatible_type_status_s {
pub total_count: i32,
pub total_count_change: i32,
}
pub type rmw_incompatible_type_status_t = rmw_incompatible_type_status_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_liveliness_changed_status_s {
pub alive_count: i32,
pub not_alive_count: i32,
pub alive_count_change: i32,
pub not_alive_count_change: i32,
}
pub type rmw_liveliness_changed_status_t = rmw_liveliness_changed_status_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_liveliness_lost_status_s {
pub total_count: i32,
pub total_count_change: i32,
}
pub type rmw_liveliness_lost_status_t = rmw_liveliness_lost_status_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_matched_status_s {
pub total_count: usize,
pub total_count_change: usize,
pub current_count: usize,
pub current_count_change: i32,
}
pub type rmw_matched_status_t = rmw_matched_status_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_message_lost_status_s {
pub total_count: usize,
pub total_count_change: usize,
}
pub type rmw_message_lost_status_t = rmw_message_lost_status_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_offered_deadline_missed_status_s {
pub total_count: i32,
pub total_count_change: i32,
}
pub type rmw_offered_deadline_missed_status_t = rmw_offered_deadline_missed_status_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_requested_deadline_missed_status_s {
pub total_count: i32,
pub total_count_change: i32,
}
pub type rmw_requested_deadline_missed_status_t = rmw_requested_deadline_missed_status_s;
pub type rmw_ret_t = i32;
#[repr(u32)]
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub enum rmw_automatic_discovery_range_e {
RMW_AUTOMATIC_DISCOVERY_RANGE_NOT_SET = 0,
RMW_AUTOMATIC_DISCOVERY_RANGE_OFF = 1,
RMW_AUTOMATIC_DISCOVERY_RANGE_LOCALHOST = 2,
RMW_AUTOMATIC_DISCOVERY_RANGE_SUBNET = 3,
RMW_AUTOMATIC_DISCOVERY_RANGE_SYSTEM_DEFAULT = 4,
}
pub use self::rmw_automatic_discovery_range_e as rmw_automatic_discovery_range_t;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_peer_address_s {
pub peer_address: [::std::os::raw::c_char; 256usize],
}
pub type rmw_peer_address_t = rmw_peer_address_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_discovery_options_s {
pub automatic_discovery_range: rmw_automatic_discovery_range_t,
pub static_peers: *mut rmw_peer_address_t,
pub static_peers_count: usize,
pub allocator: rcutils_allocator_t,
}
pub type rmw_discovery_options_t = rmw_discovery_options_s;
extern "C" {
pub fn rmw_get_zero_initialized_discovery_options() -> rmw_discovery_options_t;
}
extern "C" {
pub fn rmw_discovery_options_init(
discovery_options: *mut rmw_discovery_options_t,
size: usize,
allocator: *mut rcutils_allocator_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_discovery_options_equal(
left: *const rmw_discovery_options_t,
right: *const rmw_discovery_options_t,
result: *mut bool,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_discovery_options_copy(
src: *const rmw_discovery_options_t,
allocator: *mut rcutils_allocator_t,
dst: *mut rmw_discovery_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_discovery_options_fini(discovery_options: *mut rmw_discovery_options_t)
-> rmw_ret_t;
}
extern "C" {
pub fn rmw_enclave_options_copy(
src: *const ::std::os::raw::c_char,
allocator: *const rcutils_allocator_t,
dst: *mut *mut ::std::os::raw::c_char,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_enclave_options_fini(
enclave_options: *mut ::std::os::raw::c_char,
allocator: *const rcutils_allocator_t,
) -> rmw_ret_t;
}
#[repr(u32)]
#[derive(Debug, Clone, Hash, PartialEq, Eq)]
pub enum rmw_security_enforcement_policy_e {
RMW_SECURITY_ENFORCEMENT_PERMISSIVE = 0,
RMW_SECURITY_ENFORCEMENT_ENFORCE = 1,
}
pub use self::rmw_security_enforcement_policy_e as rmw_security_enforcement_policy_t;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_security_options_s {
pub enforce_security: rmw_security_enforcement_policy_t,
pub security_root_path: *mut ::std::os::raw::c_char,
}
pub type rmw_security_options_t = rmw_security_options_s;
extern "C" {
pub fn rmw_get_zero_initialized_security_options() -> rmw_security_options_t;
}
extern "C" {
pub fn rmw_get_default_security_options() -> rmw_security_options_t;
}
extern "C" {
pub fn rmw_security_options_copy(
src: *const rmw_security_options_t,
allocator: *const rcutils_allocator_t,
dst: *mut rmw_security_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_security_options_set_root_path(
security_root_path: *const ::std::os::raw::c_char,
allocator: *const rcutils_allocator_t,
security_options: *mut rmw_security_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_security_options_fini(
security_options: *mut rmw_security_options_t,
allocator: *const rcutils_allocator_t,
) -> rmw_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rmw_init_options_impl_s {
_unused: [u8; 0],
}
pub type rmw_init_options_impl_t = rmw_init_options_impl_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_init_options_s {
pub instance_id: u64,
pub implementation_identifier: *const ::std::os::raw::c_char,
pub domain_id: usize,
pub security_options: rmw_security_options_t,
pub discovery_options: rmw_discovery_options_t,
pub enclave: *mut ::std::os::raw::c_char,
pub allocator: rcutils_allocator_t,
pub impl_: *mut rmw_init_options_impl_t,
}
pub type rmw_init_options_t = rmw_init_options_s;
extern "C" {
pub fn rmw_get_zero_initialized_init_options() -> rmw_init_options_t;
}
extern "C" {
pub fn rmw_init_options_init(
init_options: *mut rmw_init_options_t,
allocator: rcutils_allocator_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_init_options_copy(
src: *const rmw_init_options_t,
dst: *mut rmw_init_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_init_options_fini(init_options: *mut rmw_init_options_t) -> rmw_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rmw_context_impl_s {
_unused: [u8; 0],
}
pub type rmw_context_impl_t = rmw_context_impl_s;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_context_s {
pub instance_id: u64,
pub implementation_identifier: *const ::std::os::raw::c_char,
pub options: rmw_init_options_t,
pub actual_domain_id: usize,
pub impl_: *mut rmw_context_impl_t,
}
pub type rmw_context_t = rmw_context_s;
extern "C" {
pub fn rmw_get_zero_initialized_context() -> rmw_context_t;
}
extern "C" {
pub fn rmw_init(options: *const rmw_init_options_t, context: *mut rmw_context_t) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_shutdown(context: *mut rmw_context_t) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_context_fini(context: *mut rmw_context_t) -> rmw_ret_t;
}
pub type rmw_serialized_message_t = rcutils_uint8_array_t;
#[repr(C)]
#[derive(Debug)]
pub struct rmw_subscription_content_filter_options_s {
pub filter_expression: *mut ::std::os::raw::c_char,
pub expression_parameters: rcutils_string_array_t,
}
pub type rmw_subscription_content_filter_options_t = rmw_subscription_content_filter_options_s;
extern "C" {
pub fn rmw_get_zero_initialized_content_filter_options(
) -> rmw_subscription_content_filter_options_t;
}
extern "C" {
pub fn rmw_subscription_content_filter_options_init(
filter_expression: *const ::std::os::raw::c_char,
expression_parameters_argc: usize,
expression_parameter_argv: *mut *const ::std::os::raw::c_char,
allocator: *const rcutils_allocator_t,
options: *mut rmw_subscription_content_filter_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_subscription_content_filter_options_set(
filter_expression: *const ::std::os::raw::c_char,
expression_parameters_argc: usize,
expression_parameter_argv: *mut *const ::std::os::raw::c_char,
allocator: *const rcutils_allocator_t,
options: *mut rmw_subscription_content_filter_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_subscription_content_filter_options_copy(
src: *const rmw_subscription_content_filter_options_t,
allocator: *const rcutils_allocator_t,
dst: *mut rmw_subscription_content_filter_options_t,
) -> rmw_ret_t;
}
extern "C" {
pub fn rmw_subscription_content_filter_options_fini(
options: *mut rmw_subscription_content_filter_options_t,
allocator: *const rcutils_allocator_t,
) -> rmw_ret_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rmw_time_s {
pub sec: u64,
pub nsec: u64,
}
pub type rmw_time_t = rmw_time_s;
pub type rmw_time_point_value_t = rcutils_time_point_value_t;
pub type rmw_duration_t = rcutils_duration_value_t;
extern "C" {
pub fn rmw_time_equal(left: rmw_time_t, right: rmw_time_t) -> bool;
}
extern "C" {
pub fn rmw_time_total_nsec(time: rmw_time_t) -> rmw_duration_t;
}
extern "C" {
pub fn rmw_time_from_nsec(nanoseconds: rmw_duration_t) -> rmw_time_t;
}
extern "C" {
pub fn rmw_time_normalize(time: rmw_time_t) -> rmw_time_t;
}
#[repr(C)]
#[derive(Debug)]
pub struct rmw_node_s {
pub implementation_identifier: *const ::std::os::raw::c_char,
pub data: *mut ::std::os::raw::c_void,
pub name: *const ::std::os::raw::c_char,
pub namespace_: *const ::std::os::raw::c_char,
pub context: *mut rmw_context_t,
}
pub type rmw_node_t = rmw_node_s;