cddbd.h (1062B)
1 /* ------------------------------------------------------------------------ 2 cddbd include file for XfreeCD 3 4 Copyright 1998 by Brian C. Lane 5 nexus@tatoosh.com 6 http://www.tatoosh.com/nexus 7 8 ------------------------------------------------------------------------ */ 9 #define DB_DIAG 0x00 10 #define DB_READ 0x01 11 #define DB_QUIT 0x02 12 #define DB_MOTD 0x03 13 #define DB_SITES 0x04 14 #define DB_WRITE 0x05 15 16 #define CDDBD_DONE_OK 0x00 17 #define CDDBD_OPEN_ERR 0x01 18 #define CDDBD_OPEN_OK 0x02 19 #define CDDBD_READ_ERR 0x03 20 #define CDDBD_WRITE_ERR 0x04 21 #define CDDBD_TMPF_ERR 0x05 22 #define CDDBD_FOPEN_ERR 0x06 23 #define CDDBD_DONE_ERR 0x07 24 #define CDDBD_MATCH_OK 0x08 25 #define CDDBD_ENTRY_OK 0x09 26 #define CDDBD_MOTD_LINE 0x0A 27 #define CDDBD_SITE_LINE 0x0B 28 #define CDDBD_INEX_LINE 0x0C 29 #define CDDBD_MAX 0x10 30 31 32 int start_cddbd( int * ); 33 34 int readn( register int, register char *, register int ); 35 int writen( register int, register char *, register int ); 36 int readline( register int, register char *, register int ); 37