begin work on new device module system
This commit is contained in:
parent
7b8871ffd9
commit
5769f6d470
11 changed files with 190 additions and 112 deletions
|
|
@ -8,10 +8,11 @@ type file_state =
|
|||
type file_device = {
|
||||
mutable filepath : string option;
|
||||
mutable state : file_state;
|
||||
mutable length : int;
|
||||
}
|
||||
|
||||
let create_file_device () = { filepath = None; state = Idle }
|
||||
let file_devices = [| create_file_device (); create_file_device () |]
|
||||
let make_file () = { filepath = None; state = Idle; length = 0 }
|
||||
let file_devices = [| make_file (); make_file () |]
|
||||
let file_lengths = [| 0; 0 |]
|
||||
|
||||
(* Read null-terminated string from RAM *)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue