#ifndef _wad_private
#define _wad_private

#define CHECKPERIOD 20
//#define WAD_LUMP_NAME_SIZE 16
#define WAD_LUMP_NAME_SIZE 8

#define ID_STRING   "IWAD"
//"DWAD"
//===============
//   TYPES
//===============


typedef struct
   {
   char   name[ WAD_LUMP_NAME_SIZE ];
   int    handle;
   dword  position;
   dword  size;
   } lumpinfo_t;

typedef struct
   {
   char   identification[ 4 ]; // should be DWAD
   dword  numlumps;
   dword  infotableofs;
   } wadinfo_t;

typedef struct
   {
   dword  filepos;
   dword  size;
   char   name[ WAD_LUMP_NAME_SIZE ];
   } filelump_t;

#endif
