[misc] move source files to src/ directory

This commit is contained in:
Pete Batard 2011-12-05 10:49:45 +00:00
parent 4edb492c19
commit 48f9dd47ae
53 changed files with 249 additions and 260 deletions

27
src/inc/file.h Normal file
View file

@ -0,0 +1,27 @@
#ifndef FILE_H
#define FILE_H
/* Max valid value of uiLen for contains_data */
#define MAX_DATA_LEN 4096
/* Checks if a file contains a data pattern of length uiLen at position
ulPositoin. The file pointer will change when calling this function! */
int contains_data(FILE *fp, size_t ulPosition,
const void *pData, size_t uiLen);
/* Writes a data pattern of length uiLen at position ulPositoin.
The file pointer will change when calling this function! */
int write_data(FILE *fp, size_t ulPosition,
const void *pData, size_t uiLen);
/* Checks if a file contains a data pattern of length uiLen at position
ulPositoin. The file pointer will change when calling this function! */
int write_sectors(void *hDrive, size_t SectorSize,
size_t StartSector, size_t nSectors,
const void *pBuf, size_t BufSize);
int read_sectors(void *hDrive, size_t SectorSize,
size_t StartSector, size_t nSectors,
void *pBuf, size_t BufSize);
#endif