blob: 95fa71dd2607f5db06a71f0b2857122ee6d81ae1 [file] [log] [blame]
Nico Huberfdfa2e22023-11-27 16:26:03 +01001with System;
2with Interfaces.C;
3with Interfaces.C.Strings;
4
5use Interfaces.C;
6
7generic
8
9 with procedure Mount (Success : out Boolean);
10
11 with procedure Open (File_Path : String; Success : out Boolean);
Nico Huber0a9591e2023-11-27 16:59:11 +010012 with procedure Close with Convention => C;
Nico Huberfdfa2e22023-11-27 16:26:03 +010013
Nico Huber0a9591e2023-11-27 16:59:11 +010014 with procedure Read (Buf : out Buffer_Type; Len : out Natural);
Nico Huberfdfa2e22023-11-27 16:26:03 +010015
16package FS.FILO.VFS
17with
Nico Huber0a9591e2023-11-27 16:59:11 +010018 SPARK_Mode => Off,
19 Convention => C
Nico Huberfdfa2e22023-11-27 16:26:03 +010020is
21
Nico Huber0a9591e2023-11-27 16:59:11 +010022 function C_Mount return int;
Nico Huberfdfa2e22023-11-27 16:26:03 +010023
Nico Huber0a9591e2023-11-27 16:59:11 +010024 function C_Open (File_Path : Strings.chars_ptr) return int;
25 procedure C_Close renames Close;
Nico Huberfdfa2e22023-11-27 16:26:03 +010026
Nico Huber0a9591e2023-11-27 16:59:11 +010027 function C_Read (Buf : System.Address; Len : int) return int;
Nico Huberfdfa2e22023-11-27 16:26:03 +010028
29end FS.FILO.VFS;