home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 5
/
DATAFILE_PDCD5.iso
/
utilities
/
e
/
extralib
/
!ExtrasLib
/
h
/
GBPB
< prev
next >
Wrap
Text File
|
1996-03-03
|
1KB
|
50 lines
/**********/
/* GBPB.h */
/**********/
/* ExtrasLib by Peter Hartley 1995-96
* (K) All Rites Reversed - Copy What You Like
*/
#ifndef __xtra_gbpb_h
#define __xtra_gbpb_h
extern int GBPB_WriteBytesAt( unsigned int handle, void *mem,
int size, int foffset ); /* OS_GBPB 1 */
extern int GBPB_WriteBytes( unsigned int handle, void *mem,
int size ); /* OS_GBPB 2 */
extern int GBPB_ReadBytesAt( unsigned int handle, void *mem,
int size, int foffset ); /* OS_GBPB 3 */
extern int GBPB_ReadBytes( unsigned int handle, void *mem,
int size ); /* OS_GBPB 4 */
typedef enum
{
object_NOTFOUND = 0,
object_FILE = 1,
object_DIRECTORY = 2,
object_BOTH = 3
} gbpb_object;
#ifdef __xtra_file_h
typedef struct
{
file_catinfo info;
gbpb_object objecttype;
char name[40];
} gbpb_direntry10;
extern os_error *GBPB_ReadDirectory( char *directory, gbpb_direntry10 *buffer,
int *offset, char *nametomatch );
/* OS_GBPB 10; offset should point to 0 initially, and will be updated by
the call. When it is returned as -1, all names have been read */
#endif
#endif