mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
39 lines
801 B
C
39 lines
801 B
C
#ifndef ADF_NATIV_H
|
|
#define ADF_NATIV_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include "adf_str.h"
|
|
|
|
#define NATIVE_FILE 8001
|
|
|
|
struct nativeDevice
|
|
{
|
|
FILE* fd;
|
|
};
|
|
|
|
struct nativeFunctions
|
|
{
|
|
/* called by adfMount() */
|
|
RETCODE (*adfInitDevice)(struct Device*, char*, BOOL);
|
|
/* called by adfReadBlock() */
|
|
RETCODE (*adfNativeReadSector)(struct Device*, int32_t, int, uint8_t*);
|
|
/* called by adfWriteBlock() */
|
|
RETCODE (*adfNativeWriteSector)(struct Device*, int32_t, int, uint8_t*);
|
|
/* called by adfMount() */
|
|
BOOL (*adfIsDevNative)(char*);
|
|
/* called by adfUnMount() */
|
|
RETCODE (*adfReleaseDevice)(struct Device*);
|
|
};
|
|
|
|
extern void adfInitNativeFct();
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|