23 lines
451 B
C
23 lines
451 B
C
// loop.h
|
|
// Author: Josh Holtrop
|
|
// Date: 03/16/04
|
|
// Provides a loop-back device for mounting files on existing volumes as new volumes
|
|
|
|
#ifndef __HOS_LOOP__
|
|
#define __HOS_LOOP__ __HOS_LOOP__
|
|
|
|
#include "hos_includes.h"
|
|
|
|
typedef struct
|
|
{
|
|
Volume *vol;
|
|
char filePath[256];
|
|
} LoopDevice;
|
|
|
|
int loop_readSector(LoopDevice *ld, dword sector, byte *buffer);
|
|
int loop_writeSector(LoopDevice *ld, dword sector, byte *buffer);
|
|
|
|
#endif
|
|
|
|
|