home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 2
/
fishmore-publicdomainlibraryvol.ii1991xetec.iso
/
fish
/
keyboard
/
keymacro_436
/
mrarpfile.h
< prev
next >
Wrap
C/C++ Source or Header
|
1991-01-15
|
1KB
|
42 lines
/* MRARPFile.h
* Definitions for ARP extended file support.
* Author: Mark R. Rinfret
*/
#ifndef MRARPFILE_H
#define MRARPFILE_H
#include <libraries/arpbase.h>
typedef struct
{
BPTR fh; /* AmigaDOS FileHandle pointer */
struct DefaultTracker *fileTracker;
struct DefaultTracker *myTracker; /* this structure's tracker */
struct DefaultTracker *bufTracker;
UBYTE *buf; /* read/write buffer */
LONG bufSize; /* allocated size of buffer */
LONG bufLength; /* number of bytes in buffer */
LONG bufPos; /* read/write position */
LONG mode; /* how file was opened */
LONG lastError; /* last error code encountered */
LONG lastPosition; /* position of last access */
WORD endOfFile; /* used by FRead, FGets */
} ARPFileHandle;
/* Create function prototypes if necessary. */
#ifndef _MRARPFILE_PRIVATE
char * FGetsARP(char *s,LONG length,ARPFileHandle *file);
LONG FPutsARP(char *s,ARPFileHandle *file);
LONG ReadARPFile(ARPFileHandle *file,APTR buffer,LONG length);
LONG CloseARPFile(ARPFileHandle *file);
ARPFileHandle * OpenARPFile(char *name,LONG accessMode,LONG bytes);
LONG SeekARPFile(ARPFileHandle *file,LONG position,LONG mode);
LONG WriteARPFile(ARPFileHandle *file,APTR buffer,LONG length);
#endif /* _MRARPFILE_PRIVATE */
#endif /* MRARPFILE_H */