dd: Added mii_dd_system_dispose()

It was already there, just had no prototype

Signed-off-by: Michel Pollet <buserror@gmail.com>
This commit is contained in:
Michel Pollet 2023-10-28 06:12:27 +01:00
parent 8a3c40d6fd
commit 8ff29a874f
2 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,7 @@ mii_dd_overlay_prepare(
void
mii_dd_system_init(
struct mii_t *mii,
mii_dd_system_t *dd )
{
dd->drive = NULL;

View File

@ -77,6 +77,15 @@ typedef struct mii_dd_system_t {
mii_dd_file_t * file; // list of all open files (inc overlays)
} mii_dd_system_t;
struct mii_t;
void
mii_dd_system_init(
struct mii_t *mii,
mii_dd_system_t *dd );
void
mii_dd_system_dispose(
mii_dd_system_t *dd );
/*
* register drives with the system -- these are not allocated, they are
* statically defined in the driver code in their own structures