Repository navigation
Expand file tree
/
Copy pathgenerated_bindings.dart
More file actions
3677 lines (3171 loc) · 90.7 KB
/
Copy pathgenerated_bindings.dart
File metadata and controls
3677 lines (3171 loc) · 90.7 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
// ignore_for_file: unused_element, unused_field
// AUTO GENERATED FILE, DO NOT EDIT.
//
// Generated by `package:ffigen`.
import 'dart:ffi' as ffi;
/// Bindings to libfuse
class DartFuse {
/// Holds the Dynamic library.
final ffi.DynamicLibrary _dylib;
/// The symbols are looked up in [dynamicLibrary].
DartFuse(ffi.DynamicLibrary dynamicLibrary) : _dylib = dynamicLibrary;
/// Create a FUSE mountpoint
///
/// Returns a control file descriptor suitable for passing to
/// fuse_new()
///
/// @param mountpoint the mount point path
/// @param args argument vector
/// @return the communication channel on success, NULL on failure
ffi.Pointer<fuse_chan> fuse_mount(
ffi.Pointer<ffi.Int8> mountpoint,
ffi.Pointer<fuse_args> args,
) {
return (_fuse_mount ??=
_dylib.lookupFunction<_c_fuse_mount, _dart_fuse_mount>('fuse_mount'))(
mountpoint,
args,
);
}
_dart_fuse_mount? _fuse_mount;
/// Umount a FUSE mountpoint
///
/// @param mountpoint the mount point path
/// @param ch the communication channel
void fuse_unmount(
ffi.Pointer<ffi.Int8> mountpoint,
ffi.Pointer<fuse_chan> ch,
) {
return (_fuse_unmount ??= _dylib
.lookupFunction<_c_fuse_unmount, _dart_fuse_unmount>('fuse_unmount'))(
mountpoint,
ch,
);
}
_dart_fuse_unmount? _fuse_unmount;
/// Parse common options
///
/// The following options are parsed:
///
/// '-f' foreground
/// '-d' '-odebug' foreground, but keep the debug option
/// '-s' single threaded
/// '-h' '--help' help
/// '-ho' help without header
/// '-ofsname=..' file system name, if not present, then set to the program
/// name
///
/// All parameters may be NULL
///
/// @param args argument vector
/// @param mountpoint the returned mountpoint, should be freed after use
/// @param multithreaded set to 1 unless the '-s' option is present
/// @param foreground set to 1 if one of the relevant options is present
/// @return 0 on success, -1 on failure
int fuse_parse_cmdline(
ffi.Pointer<fuse_args> args,
ffi.Pointer<ffi.Pointer<ffi.Int8>> mountpoint,
ffi.Pointer<ffi.Int32> multithreaded,
ffi.Pointer<ffi.Int32> foreground,
) {
return (_fuse_parse_cmdline ??=
_dylib.lookupFunction<_c_fuse_parse_cmdline, _dart_fuse_parse_cmdline>(
'fuse_parse_cmdline'))(
args,
mountpoint,
multithreaded,
foreground,
);
}
_dart_fuse_parse_cmdline? _fuse_parse_cmdline;
/// Go into the background
///
/// @param foreground if true, stay in the foreground
/// @return 0 on success, -1 on failure
int fuse_daemonize(
int foreground,
) {
return (_fuse_daemonize ??=
_dylib.lookupFunction<_c_fuse_daemonize, _dart_fuse_daemonize>(
'fuse_daemonize'))(
foreground,
);
}
_dart_fuse_daemonize? _fuse_daemonize;
/// Get the version of the library
///
/// @return the version
int fuse_version() {
return (_fuse_version ??= _dylib
.lookupFunction<_c_fuse_version, _dart_fuse_version>('fuse_version'))();
}
_dart_fuse_version? _fuse_version;
/// Destroy poll handle
///
/// @param ph the poll handle
void fuse_pollhandle_destroy(
ffi.Pointer<fuse_pollhandle> ph,
) {
return (_fuse_pollhandle_destroy ??= _dylib.lookupFunction<
_c_fuse_pollhandle_destroy,
_dart_fuse_pollhandle_destroy>('fuse_pollhandle_destroy'))(
ph,
);
}
_dart_fuse_pollhandle_destroy? _fuse_pollhandle_destroy;
/// Get total size of data in a fuse buffer vector
///
/// @param bufv buffer vector
/// @return size of data
int fuse_buf_size(
ffi.Pointer<fuse_bufvec> bufv,
) {
return (_fuse_buf_size ??=
_dylib.lookupFunction<_c_fuse_buf_size, _dart_fuse_buf_size>(
'fuse_buf_size'))(
bufv,
);
}
_dart_fuse_buf_size? _fuse_buf_size;
/// Copy data from one buffer vector to another
///
/// @param dst destination buffer vector
/// @param src source buffer vector
/// @param flags flags controlling the copy
/// @return actual number of bytes copied or -errno on error
int fuse_buf_copy(
ffi.Pointer<fuse_bufvec> dst,
ffi.Pointer<fuse_bufvec> src,
int flags,
) {
return (_fuse_buf_copy ??=
_dylib.lookupFunction<_c_fuse_buf_copy, _dart_fuse_buf_copy>(
'fuse_buf_copy'))(
dst,
src,
flags,
);
}
_dart_fuse_buf_copy? _fuse_buf_copy;
/// Exit session on HUP, TERM and INT signals and ignore PIPE signal
///
/// Stores session in a global variable. May only be called once per
/// process until fuse_remove_signal_handlers() is called.
///
/// @param se the session to exit
/// @return 0 on success, -1 on failure
int fuse_set_signal_handlers(
ffi.Pointer<fuse_session> se,
) {
return (_fuse_set_signal_handlers ??= _dylib.lookupFunction<
_c_fuse_set_signal_handlers,
_dart_fuse_set_signal_handlers>('fuse_set_signal_handlers'))(
se,
);
}
_dart_fuse_set_signal_handlers? _fuse_set_signal_handlers;
/// Restore default signal handlers
///
/// Resets global session. After this fuse_set_signal_handlers() may
/// be called again.
///
/// @param se the same session as given in fuse_set_signal_handlers()
void fuse_remove_signal_handlers(
ffi.Pointer<fuse_session> se,
) {
return (_fuse_remove_signal_handlers ??= _dylib.lookupFunction<
_c_fuse_remove_signal_handlers,
_dart_fuse_remove_signal_handlers>('fuse_remove_signal_handlers'))(
se,
);
}
_dart_fuse_remove_signal_handlers? _fuse_remove_signal_handlers;
/// Create a new FUSE filesystem.
///
/// @param ch the communication channel
/// @param args argument vector
/// @param op the filesystem operations
/// @param op_size the size of the fuse_operations structure
/// @param user_data user data supplied in the context during the init() method
/// @return the created FUSE handle
ffi.Pointer<fuse> fuse_new(
ffi.Pointer<fuse_chan> ch,
ffi.Pointer<fuse_args> args,
ffi.Pointer<fuse_operations> op,
int op_size,
ffi.Pointer<ffi.Void> user_data,
) {
return (_fuse_new ??=
_dylib.lookupFunction<_c_fuse_new, _dart_fuse_new>('fuse_new'))(
ch,
args,
op,
op_size,
user_data,
);
}
_dart_fuse_new? _fuse_new;
/// Destroy the FUSE handle.
///
/// The communication channel attached to the handle is also destroyed.
///
/// NOTE: This function does not unmount the filesystem. If this is
/// needed, call fuse_unmount() before calling this function.
///
/// @param f the FUSE handle
void fuse_destroy(
ffi.Pointer<fuse> f,
) {
return (_fuse_destroy ??= _dylib
.lookupFunction<_c_fuse_destroy, _dart_fuse_destroy>('fuse_destroy'))(
f,
);
}
_dart_fuse_destroy? _fuse_destroy;
/// FUSE event loop.
///
/// Requests from the kernel are processed, and the appropriate
/// operations are called.
///
/// @param f the FUSE handle
/// @return 0 if no error occurred, -1 otherwise
int fuse_loop(
ffi.Pointer<fuse> f,
) {
return (_fuse_loop ??=
_dylib.lookupFunction<_c_fuse_loop, _dart_fuse_loop>('fuse_loop'))(
f,
);
}
_dart_fuse_loop? _fuse_loop;
/// Exit from event loop
///
/// @param f the FUSE handle
void fuse_exit(
ffi.Pointer<fuse> f,
) {
return (_fuse_exit ??=
_dylib.lookupFunction<_c_fuse_exit, _dart_fuse_exit>('fuse_exit'))(
f,
);
}
_dart_fuse_exit? _fuse_exit;
/// FUSE event loop with multiple threads
///
/// Requests from the kernel are processed, and the appropriate
/// operations are called. Request are processed in parallel by
/// distributing them between multiple threads.
///
/// Calling this function requires the pthreads library to be linked to
/// the application.
///
/// @param f the FUSE handle
/// @return 0 if no error occurred, -1 otherwise
int fuse_loop_mt(
ffi.Pointer<fuse> f,
) {
return (_fuse_loop_mt ??= _dylib
.lookupFunction<_c_fuse_loop_mt, _dart_fuse_loop_mt>('fuse_loop_mt'))(
f,
);
}
_dart_fuse_loop_mt? _fuse_loop_mt;
/// Get the current supplementary group IDs for the current request
///
/// Similar to the getgroups(2) system call, except the return value is
/// always the total number of group IDs, even if it is larger than the
/// specified size.
///
/// The current fuse kernel module in linux (as of 2.6.30) doesn't pass
/// the group list to userspace, hence this function needs to parse
/// "/proc/$TID/task/$TID/status" to get the group IDs.
///
/// This feature may not be supported on all operating systems. In
/// such a case this function will return -ENOSYS.
///
/// @param size size of given array
/// @param list array of group IDs to be filled in
/// @return the total number of supplementary group IDs or -errno on failure
int fuse_getgroups(
int size,
ffi.Pointer<ffi.Uint32> list,
) {
return (_fuse_getgroups ??=
_dylib.lookupFunction<_c_fuse_getgroups, _dart_fuse_getgroups>(
'fuse_getgroups'))(
size,
list,
);
}
_dart_fuse_getgroups? _fuse_getgroups;
/// Check if the current request has already been interrupted
///
/// @return 1 if the request has been interrupted, 0 otherwise
int fuse_interrupted() {
return (_fuse_interrupted ??=
_dylib.lookupFunction<_c_fuse_interrupted, _dart_fuse_interrupted>(
'fuse_interrupted'))();
}
_dart_fuse_interrupted? _fuse_interrupted;
/// Obsolete, doesn't do anything
///
/// @return -EINVAL
int fuse_invalidate(
ffi.Pointer<fuse> f,
ffi.Pointer<ffi.Int8> path,
) {
return (_fuse_invalidate ??=
_dylib.lookupFunction<_c_fuse_invalidate, _dart_fuse_invalidate>(
'fuse_invalidate'))(
f,
path,
);
}
_dart_fuse_invalidate? _fuse_invalidate;
int fuse_is_lib_option(
ffi.Pointer<ffi.Int8> opt,
) {
return (_fuse_is_lib_option ??=
_dylib.lookupFunction<_c_fuse_is_lib_option, _dart_fuse_is_lib_option>(
'fuse_is_lib_option'))(
opt,
);
}
_dart_fuse_is_lib_option? _fuse_is_lib_option;
/// Start the cleanup thread when using option "remember".
///
/// This is done automatically by fuse_loop_mt()
/// @param fuse struct fuse pointer for fuse instance
/// @return 0 on success and -1 on error
int fuse_start_cleanup_thread(
ffi.Pointer<fuse> fuse,
) {
return (_fuse_start_cleanup_thread ??= _dylib.lookupFunction<
_c_fuse_start_cleanup_thread,
_dart_fuse_start_cleanup_thread>('fuse_start_cleanup_thread'))(
fuse,
);
}
_dart_fuse_start_cleanup_thread? _fuse_start_cleanup_thread;
/// Stop the cleanup thread when using option "remember".
///
/// This is done automatically by fuse_loop_mt()
/// @param fuse struct fuse pointer for fuse instance
void fuse_stop_cleanup_thread(
ffi.Pointer<fuse> fuse,
) {
return (_fuse_stop_cleanup_thread ??= _dylib.lookupFunction<
_c_fuse_stop_cleanup_thread,
_dart_fuse_stop_cleanup_thread>('fuse_stop_cleanup_thread'))(
fuse,
);
}
_dart_fuse_stop_cleanup_thread? _fuse_stop_cleanup_thread;
/// Iterate over cache removing stale entries
/// use in conjunction with "-oremember"
///
/// NOTE: This is already done for the standard sessions
///
/// @param fuse struct fuse pointer for fuse instance
/// @return the number of seconds until the next cleanup
int fuse_clean_cache(
ffi.Pointer<fuse> fuse,
) {
return (_fuse_clean_cache ??=
_dylib.lookupFunction<_c_fuse_clean_cache, _dart_fuse_clean_cache>(
'fuse_clean_cache'))(
fuse,
);
}
_dart_fuse_clean_cache? _fuse_clean_cache;
int fuse_fs_getattr(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<stat> buf,
) {
return (_fuse_fs_getattr ??=
_dylib.lookupFunction<_c_fuse_fs_getattr, _dart_fuse_fs_getattr>(
'fuse_fs_getattr'))(
fs,
path,
buf,
);
}
_dart_fuse_fs_getattr? _fuse_fs_getattr;
int fuse_fs_fgetattr(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<stat> buf,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_fgetattr ??=
_dylib.lookupFunction<_c_fuse_fs_fgetattr, _dart_fuse_fs_fgetattr>(
'fuse_fs_fgetattr'))(
fs,
path,
buf,
fi,
);
}
_dart_fuse_fs_fgetattr? _fuse_fs_fgetattr;
int fuse_fs_rename(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> oldpath,
ffi.Pointer<ffi.Int8> newpath,
) {
return (_fuse_fs_rename ??=
_dylib.lookupFunction<_c_fuse_fs_rename, _dart_fuse_fs_rename>(
'fuse_fs_rename'))(
fs,
oldpath,
newpath,
);
}
_dart_fuse_fs_rename? _fuse_fs_rename;
int fuse_fs_unlink(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
) {
return (_fuse_fs_unlink ??=
_dylib.lookupFunction<_c_fuse_fs_unlink, _dart_fuse_fs_unlink>(
'fuse_fs_unlink'))(
fs,
path,
);
}
_dart_fuse_fs_unlink? _fuse_fs_unlink;
int fuse_fs_rmdir(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
) {
return (_fuse_fs_rmdir ??=
_dylib.lookupFunction<_c_fuse_fs_rmdir, _dart_fuse_fs_rmdir>(
'fuse_fs_rmdir'))(
fs,
path,
);
}
_dart_fuse_fs_rmdir? _fuse_fs_rmdir;
int fuse_fs_symlink(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> linkname,
ffi.Pointer<ffi.Int8> path,
) {
return (_fuse_fs_symlink ??=
_dylib.lookupFunction<_c_fuse_fs_symlink, _dart_fuse_fs_symlink>(
'fuse_fs_symlink'))(
fs,
linkname,
path,
);
}
_dart_fuse_fs_symlink? _fuse_fs_symlink;
int fuse_fs_link(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> oldpath,
ffi.Pointer<ffi.Int8> newpath,
) {
return (_fuse_fs_link ??= _dylib
.lookupFunction<_c_fuse_fs_link, _dart_fuse_fs_link>('fuse_fs_link'))(
fs,
oldpath,
newpath,
);
}
_dart_fuse_fs_link? _fuse_fs_link;
int fuse_fs_release(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_release ??=
_dylib.lookupFunction<_c_fuse_fs_release, _dart_fuse_fs_release>(
'fuse_fs_release'))(
fs,
path,
fi,
);
}
_dart_fuse_fs_release? _fuse_fs_release;
int fuse_fs_open(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_open ??= _dylib
.lookupFunction<_c_fuse_fs_open, _dart_fuse_fs_open>('fuse_fs_open'))(
fs,
path,
fi,
);
}
_dart_fuse_fs_open? _fuse_fs_open;
int fuse_fs_read(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<ffi.Int8> buf,
int size,
int off,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_read ??= _dylib
.lookupFunction<_c_fuse_fs_read, _dart_fuse_fs_read>('fuse_fs_read'))(
fs,
path,
buf,
size,
off,
fi,
);
}
_dart_fuse_fs_read? _fuse_fs_read;
int fuse_fs_read_buf(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<ffi.Pointer<fuse_bufvec>> bufp,
int size,
int off,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_read_buf ??=
_dylib.lookupFunction<_c_fuse_fs_read_buf, _dart_fuse_fs_read_buf>(
'fuse_fs_read_buf'))(
fs,
path,
bufp,
size,
off,
fi,
);
}
_dart_fuse_fs_read_buf? _fuse_fs_read_buf;
int fuse_fs_write(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<ffi.Int8> buf,
int size,
int off,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_write ??=
_dylib.lookupFunction<_c_fuse_fs_write, _dart_fuse_fs_write>(
'fuse_fs_write'))(
fs,
path,
buf,
size,
off,
fi,
);
}
_dart_fuse_fs_write? _fuse_fs_write;
int fuse_fs_write_buf(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_bufvec> buf,
int off,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_write_buf ??=
_dylib.lookupFunction<_c_fuse_fs_write_buf, _dart_fuse_fs_write_buf>(
'fuse_fs_write_buf'))(
fs,
path,
buf,
off,
fi,
);
}
_dart_fuse_fs_write_buf? _fuse_fs_write_buf;
int fuse_fs_fsync(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int datasync,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_fsync ??=
_dylib.lookupFunction<_c_fuse_fs_fsync, _dart_fuse_fs_fsync>(
'fuse_fs_fsync'))(
fs,
path,
datasync,
fi,
);
}
_dart_fuse_fs_fsync? _fuse_fs_fsync;
int fuse_fs_flush(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_flush ??=
_dylib.lookupFunction<_c_fuse_fs_flush, _dart_fuse_fs_flush>(
'fuse_fs_flush'))(
fs,
path,
fi,
);
}
_dart_fuse_fs_flush? _fuse_fs_flush;
int fuse_fs_statfs(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<statvfs> buf,
) {
return (_fuse_fs_statfs ??=
_dylib.lookupFunction<_c_fuse_fs_statfs, _dart_fuse_fs_statfs>(
'fuse_fs_statfs'))(
fs,
path,
buf,
);
}
_dart_fuse_fs_statfs? _fuse_fs_statfs;
int fuse_fs_opendir(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_opendir ??=
_dylib.lookupFunction<_c_fuse_fs_opendir, _dart_fuse_fs_opendir>(
'fuse_fs_opendir'))(
fs,
path,
fi,
);
}
_dart_fuse_fs_opendir? _fuse_fs_opendir;
int fuse_fs_readdir(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<ffi.Void> buf,
ffi.Pointer<ffi.NativeFunction<fuse_fill_dir_t>> filler,
int off,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_readdir ??=
_dylib.lookupFunction<_c_fuse_fs_readdir, _dart_fuse_fs_readdir>(
'fuse_fs_readdir'))(
fs,
path,
buf,
filler,
off,
fi,
);
}
_dart_fuse_fs_readdir? _fuse_fs_readdir;
int fuse_fs_fsyncdir(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int datasync,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_fsyncdir ??=
_dylib.lookupFunction<_c_fuse_fs_fsyncdir, _dart_fuse_fs_fsyncdir>(
'fuse_fs_fsyncdir'))(
fs,
path,
datasync,
fi,
);
}
_dart_fuse_fs_fsyncdir? _fuse_fs_fsyncdir;
int fuse_fs_releasedir(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_releasedir ??=
_dylib.lookupFunction<_c_fuse_fs_releasedir, _dart_fuse_fs_releasedir>(
'fuse_fs_releasedir'))(
fs,
path,
fi,
);
}
_dart_fuse_fs_releasedir? _fuse_fs_releasedir;
int fuse_fs_create(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int mode,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_create ??=
_dylib.lookupFunction<_c_fuse_fs_create, _dart_fuse_fs_create>(
'fuse_fs_create'))(
fs,
path,
mode,
fi,
);
}
_dart_fuse_fs_create? _fuse_fs_create;
int fuse_fs_lock(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
int cmd,
ffi.Pointer<flock> lock,
) {
return (_fuse_fs_lock ??= _dylib
.lookupFunction<_c_fuse_fs_lock, _dart_fuse_fs_lock>('fuse_fs_lock'))(
fs,
path,
fi,
cmd,
lock,
);
}
_dart_fuse_fs_lock? _fuse_fs_lock;
int fuse_fs_flock(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<fuse_file_info> fi,
int op,
) {
return (_fuse_fs_flock ??=
_dylib.lookupFunction<_c_fuse_fs_flock, _dart_fuse_fs_flock>(
'fuse_fs_flock'))(
fs,
path,
fi,
op,
);
}
_dart_fuse_fs_flock? _fuse_fs_flock;
int fuse_fs_chmod(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int mode,
) {
return (_fuse_fs_chmod ??=
_dylib.lookupFunction<_c_fuse_fs_chmod, _dart_fuse_fs_chmod>(
'fuse_fs_chmod'))(
fs,
path,
mode,
);
}
_dart_fuse_fs_chmod? _fuse_fs_chmod;
int fuse_fs_chown(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int uid,
int gid,
) {
return (_fuse_fs_chown ??=
_dylib.lookupFunction<_c_fuse_fs_chown, _dart_fuse_fs_chown>(
'fuse_fs_chown'))(
fs,
path,
uid,
gid,
);
}
_dart_fuse_fs_chown? _fuse_fs_chown;
int fuse_fs_truncate(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int size,
) {
return (_fuse_fs_truncate ??=
_dylib.lookupFunction<_c_fuse_fs_truncate, _dart_fuse_fs_truncate>(
'fuse_fs_truncate'))(
fs,
path,
size,
);
}
_dart_fuse_fs_truncate? _fuse_fs_truncate;
int fuse_fs_ftruncate(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int size,
ffi.Pointer<fuse_file_info> fi,
) {
return (_fuse_fs_ftruncate ??=
_dylib.lookupFunction<_c_fuse_fs_ftruncate, _dart_fuse_fs_ftruncate>(
'fuse_fs_ftruncate'))(
fs,
path,
size,
fi,
);
}
_dart_fuse_fs_ftruncate? _fuse_fs_ftruncate;
int fuse_fs_utimens(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<timespec> tv,
) {
return (_fuse_fs_utimens ??=
_dylib.lookupFunction<_c_fuse_fs_utimens, _dart_fuse_fs_utimens>(
'fuse_fs_utimens'))(
fs,
path,
tv,
);
}
_dart_fuse_fs_utimens? _fuse_fs_utimens;
int fuse_fs_access(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int mask,
) {
return (_fuse_fs_access ??=
_dylib.lookupFunction<_c_fuse_fs_access, _dart_fuse_fs_access>(
'fuse_fs_access'))(
fs,
path,
mask,
);
}
_dart_fuse_fs_access? _fuse_fs_access;
int fuse_fs_readlink(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<ffi.Int8> buf,
int len,
) {
return (_fuse_fs_readlink ??=
_dylib.lookupFunction<_c_fuse_fs_readlink, _dart_fuse_fs_readlink>(
'fuse_fs_readlink'))(
fs,
path,
buf,
len,
);
}
_dart_fuse_fs_readlink? _fuse_fs_readlink;
int fuse_fs_mknod(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int mode,
int rdev,
) {
return (_fuse_fs_mknod ??=
_dylib.lookupFunction<_c_fuse_fs_mknod, _dart_fuse_fs_mknod>(
'fuse_fs_mknod'))(
fs,
path,
mode,
rdev,
);
}
_dart_fuse_fs_mknod? _fuse_fs_mknod;
int fuse_fs_mkdir(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
int mode,
) {
return (_fuse_fs_mkdir ??=
_dylib.lookupFunction<_c_fuse_fs_mkdir, _dart_fuse_fs_mkdir>(
'fuse_fs_mkdir'))(
fs,
path,
mode,
);
}
_dart_fuse_fs_mkdir? _fuse_fs_mkdir;
int fuse_fs_setxattr(
ffi.Pointer<fuse_fs> fs,
ffi.Pointer<ffi.Int8> path,
ffi.Pointer<ffi.Int8> name,
ffi.Pointer<ffi.Int8> value,
int size,
int flags,
) {
return (_fuse_fs_setxattr ??=
_dylib.lookupFunction<_c_fuse_fs_setxattr, _dart_fuse_fs_setxattr>(
'fuse_fs_setxattr'))(
fs,
path,
name,
value,
size,
flags,
);