This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
deb-mbse/lib/mbse.h

117 lines
3.7 KiB
C
Raw Normal View History

2001-08-17 05:46:24 +00:00
/*****************************************************************************
*
* $Id$
2001-08-17 05:46:24 +00:00
* Purpose ...............: Global variables for MBSE BBS
*
*****************************************************************************
2001-10-22 17:33:55 +00:00
* Copyright (C) 1997-2001
2001-08-17 05:46:24 +00:00
*
* Michiel Broek FIDO: 2:280/2802
* Beekmansbos 10
* 1971 BV IJmuiden
* the Netherlands
*
* This file is part of MBSE BBS.
*
* This BBS is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2, or (at your option) any
* later version.
*
* MBSE BBS is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with MBSE BBS; see the file COPYING. If not, write to the Free
* Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
*****************************************************************************/
#ifndef _MBSE_H
#define _MBSE_H
#define Max_passlen 14 /* Define maximum passwd length */
#define LINES 24 /* Lines for MoreFile */
#define LANG 500 /* Amount of Language Entries */
typedef struct _TagRec {
long Area; /* File Area number */
int Active; /* Not deleted from taglist */
int Cost; /* Free download */
off_t Size; /* File Size */
char File[81]; /* File Name */
} _Tag;
/*
* File Areas
*/
int iAreaNumber; /* Current File Area -1 */
char sAreaDesc[PATH_MAX]; /* Current File Area Name */
char sAreaPath[PATH_MAX]; /* Current File Area path */
FILE *pTagList; /* Tagged files for download */
_Tag Tag; /* Tag record */
/*
* Msg Areas
*/
int iMsgAreaNumber; /* Current Message Area number -1 */
int iMsgAreaType; /* Current Message Area Type */
char sMsgAreaDesc[PATH_MAX]; /* Current Message Area Name */
char sMsgAreaBase[PATH_MAX]; /* Current Message Area Base */
char sMailbox[21]; /* Current e-mail mailbox */
char sMailpath[PATH_MAX]; /* Current e-mail path */
/*
* Protocols
*/
char sProtName[21]; /* Current Transfer Protocol name */
char sProtUp[51]; /* Upload path & binary */
char sProtDn[51]; /* Download path & binary */
char sProtAdvice[31]; /* Advice for protocol */
unsigned uProtBatch; /* Batching protocol */
unsigned uProtBidir; /* Bi-directional protocol */
int iProtEfficiency; /* Protocol efficiency */
/*
* Global variables
*/
char *mLanguage[LANG]; /* Define LANG=nnn Language Variables */
char *mKeystroke[LANG]; /* Possible keystrokes */
char *Date1, *Date2; /* Result from function SwapDate() */
char *pTTY; /* Current tty name */
char sUserTimeleft[7]; /* Global Time Left Variable */
int iUserTimeLeft; /* Global Time Left Variable */
char LastLoginDate[12]; /* Last login date */
char LastLoginTime[9]; /* Last login time */
2001-11-12 21:42:17 +00:00
char LastCaller[36]; /* Last caller on system name */
time_t LastCallerTime; /* Last caller on system time */
2001-08-17 05:46:24 +00:00
char FirstName[20]; /* Users First name */
char LastName[30]; /* Users Last name */
int UserAge; /* Users age */
int grecno; /* User's Record Number in user file */
int SYSOP; /* Int to see if user is Sysop */
int iLineCount; /* Line Counter */
int iExpired; /* Check if users time ran out */
char sUnixName[9]; /* Unix login name */
time_t Time2Go; /* Calculated time to force logout */
struct tm *l_date; /* Structure for Date */
2001-10-22 17:33:55 +00:00
int iNode; /* Current node number */
2001-08-17 05:46:24 +00:00
time_t ltime;
time_t Time_Now;
#endif