home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / e / extralib / !ExtrasLib / h / GBPB < prev    next >
Text File  |  1996-03-03  |  1KB  |  50 lines

  1. /**********/
  2. /* GBPB.h */
  3. /**********/
  4.  
  5. /* ExtrasLib by Peter Hartley 1995-96
  6.  * (K) All Rites Reversed - Copy What You Like
  7.  */
  8.  
  9. #ifndef __xtra_gbpb_h
  10. #define __xtra_gbpb_h
  11.  
  12. extern int GBPB_WriteBytesAt( unsigned int handle, void *mem,
  13.                 int size, int foffset ); /* OS_GBPB 1 */
  14.  
  15. extern int GBPB_WriteBytes( unsigned int handle, void *mem,
  16.                 int size ); /* OS_GBPB 2 */
  17.  
  18. extern int GBPB_ReadBytesAt( unsigned int handle, void *mem,
  19.                 int size, int foffset ); /* OS_GBPB 3 */
  20.  
  21. extern int GBPB_ReadBytes( unsigned int handle, void *mem,
  22.                 int size ); /* OS_GBPB 4 */
  23.  
  24. typedef enum
  25. {
  26.     object_NOTFOUND = 0,
  27.     object_FILE = 1,
  28.     object_DIRECTORY = 2,
  29.     object_BOTH = 3
  30. } gbpb_object;
  31.  
  32. #ifdef __xtra_file_h
  33.  
  34. typedef struct
  35. {
  36.     file_catinfo info;
  37.     gbpb_object objecttype;
  38.     char name[40];
  39. } gbpb_direntry10;
  40.  
  41. extern os_error *GBPB_ReadDirectory( char *directory, gbpb_direntry10 *buffer,
  42.                                      int *offset, char *nametomatch );
  43.  
  44. /* OS_GBPB 10; offset should point to 0 initially, and will be updated by
  45.    the call. When it is returned as -1, all names have been read */
  46.  
  47. #endif
  48.  
  49. #endif
  50.