board.h
pdirt/drv/include/board.h · 1.7 KB
From the archive pDirt-1_tar.gz
Download the archive « Back to the archive contents
#ifndef __BOARD_H__
#define __BOARD_H__
void boot_bboards();
int isa_board(int ob);
void lat_board(int ob);
A_COMMAND(do_read);
A_COMMAND(do_erase);
A_COMMAND(write_board);
/* ==================== Type definitions for the boards ==================== */
typedef struct _mess *PMES;
typedef struct _mess
{
char owner[PNAME_LEN + 1]; /* Name of player who wrote message */
char *date; /* Ascii string for date & time */
char *message; /* Pointer to the message. */
char *header; /* Heading for the message. */
PMES next; /* Pointer to next message on board */
}
MESS;
typedef struct _board
{
int nomess; /* Number of messages on the board */
int level; /* Min level to be able to read it. */
char file[31]; /* Name of the file for storage */
PMES last; /* Last message. Just for fast updates */
PMES messages; /* Pointer to first message. */
}
BOARD;
/* ================ Define the objects that are to be boards =============== */
#ifdef BOARD_C
#define PBBOARD 1
#define WBBOARD 2
#define AWZBBOARD 3
#define GDBBOARD 4
#define SINGLESBOARD 5
BOARD pbb;
BOARD wbb;
BOARD abb;
BOARD gbb;
BOARD sbb;
extern const int bboards[];
extern const int wbboards[];
extern const int abboards[];
extern const int gbboards[];
extern const int sbboards[];
#elif defined(SPECIAL_C)
const int bboards[] =
{
OBJ_LIMBO_BBOARD,
-1
};
const int wbboards[] =
{
OBJ_LIMBO_WIZ_BBOARD,
-1
};
const int abboards[] =
{
OBJ_LIMBO_AWIZ_BBOARD,
-1
};
const int gbboards[] =
{
OBJ_LIMBO_GOD_BBOARD,
-1
};
const int sbboards[] =
{ OBJ_LIMBO_SEARCHBOARD,
-1
};
#endif
#endif /* Add nothing past this line... */