/* file generated by oo2c -- do not edit */
#ifndef _MODULE_OakFiles_
#define _MODULE_OakFiles_

#define OakFiles__largeBlock 512
#define OakFiles__sizeBuffer 2048
#define OakFiles__maxFilenameLen 256
typedef struct OakFiles__Buffer {
  unsigned char data[2048];
  int start;
  int end;
  unsigned char read;
  char _2057pad, _2058pad, _2059pad;
} OakFiles__Buffer;
typedef struct OakFiles__FileDesc {
  struct OakFiles__FileDesc* next;
  int fd;
  unsigned char name[256];
  unsigned char tmpn[256];
  unsigned char flagMark;
  unsigned char flagValid;
  unsigned char flagRead;
  unsigned char flagWrite;
  unsigned char flagReg;
  unsigned char flagKeepFd;
  char _526pad, _527pad;
  int pos;
  OakFiles__Buffer buffer;
} OakFiles__FileDesc;
typedef struct OakFiles__FileDesc* OakFiles__File;
typedef struct OakFiles__Rider {
  OakFiles__File file;
  unsigned char eof;
  char _5pad;
  short int res;
  int pos;
} OakFiles__Rider;
extern OakFiles__File OakFiles_Old(const unsigned char* name);
extern OakFiles__File OakFiles_New(const unsigned char* name);
extern void OakFiles_Delete(const unsigned char* name, short int *res);
extern int OakFiles_Length(OakFiles__File f);
extern void OakFiles_Close(OakFiles__File *f);
extern void OakFiles_Register(OakFiles__File f);
extern void OakFiles_Purge(OakFiles__File f);
extern void OakFiles_Rename(const unsigned char* old, const unsigned char* new_, short int *res);
extern void OakFiles_GetDate(OakFiles__File f, int *t, int *d);
extern void OakFiles_Set(OakFiles__Rider *r, OakFiles__File f, int pos);
extern int OakFiles_Pos(OakFiles__Rider *r);
extern OakFiles__File OakFiles_Base(OakFiles__Rider *r);
extern void OakFiles_ReadBytes(OakFiles__Rider *r, unsigned char* x, int n);
extern void OakFiles_WriteBytes(OakFiles__Rider *r, unsigned char* x, int n);
extern void OakFiles_Read(OakFiles__Rider *r, unsigned char *x);
extern void OakFiles_ReadInt(OakFiles__Rider *r, short int *x);
extern void OakFiles_ReadLInt(OakFiles__Rider *r, int *x);
extern void OakFiles_ReadReal(OakFiles__Rider *r, float *x);
extern void OakFiles_ReadLReal(OakFiles__Rider *r, double *x);
extern void OakFiles_ReadNum(OakFiles__Rider *r, int *x);
extern void OakFiles_ReadString(OakFiles__Rider *r, unsigned char* x);
extern void OakFiles_ReadSet(OakFiles__Rider *r, unsigned int *x);
extern void OakFiles_ReadBool(OakFiles__Rider *r, unsigned char *x);
extern void OakFiles_Write(OakFiles__Rider *r, unsigned char x);
extern void OakFiles_WriteInt(OakFiles__Rider *r, short int x);
extern void OakFiles_WriteLInt(OakFiles__Rider *r, int x);
extern void OakFiles_WriteReal(OakFiles__Rider *r, float x);
extern void OakFiles_WriteLReal(OakFiles__Rider *r, double x);
extern void OakFiles_WriteNum(OakFiles__Rider *r, int x);
extern void OakFiles_WriteString(OakFiles__Rider *r, const unsigned char* x);
extern void OakFiles_WriteSet(OakFiles__Rider *r, unsigned int x);
extern void OakFiles_WriteBool(OakFiles__Rider *r, unsigned char x);
extern struct _TD OakFiles__Buffer_td;
extern struct _TD OakFiles__FileDesc_td;
extern struct _TD OakFiles__Rider_td;
extern void OakFiles_init(void);

#endif
