34 lines
443 B
C
34 lines
443 B
C
// vfs.c
|
|
// Author: Josh Holtrop
|
|
// Date: 03/11/04
|
|
|
|
#include "vfs.h"
|
|
#include "hos_defines.h"
|
|
|
|
Volume *firstVolume = 0;
|
|
|
|
void vfs_init()
|
|
{
|
|
dword initrdLoaded = *(byte *)BOOT_HASRD;
|
|
|
|
}
|
|
|
|
|
|
Volume *vfs_newVolume()
|
|
{
|
|
Volume *vol = malloc(sizeof(Volume));
|
|
vfs_getLastVolume()->link = vol;
|
|
return vol;
|
|
}
|
|
|
|
|
|
Volume *vfs_getLastVolume()
|
|
{
|
|
Volume *vol = firstVolume;
|
|
while (vol)
|
|
vol = vol->link;
|
|
return vol;
|
|
}
|
|
|
|
|