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/mbfido/tic.h

73 lines
2.4 KiB
C
Raw Normal View History

2001-12-08 20:31:42 +00:00
/* $Id$ */
2001-08-17 05:46:24 +00:00
#ifndef _TIC_H
#define _TIC_H
typedef struct _tic_in {
2001-12-08 20:31:42 +00:00
unsigned Hatch : 1; /* Hatch keyword */
unsigned PathError : 1; /* Our system is in path */
2001-12-09 15:20:51 +00:00
char Pth[PATH_MAX+1]; /* Path to hatched file */
2001-08-17 05:46:24 +00:00
char Area[21]; /* Area name */
char Origin[81]; /* Origin address */
char From[81]; /* From name */
2001-12-08 20:31:42 +00:00
char File[81]; /* File keyword */
char FullName[256]; /* Long filename */
2001-08-17 05:46:24 +00:00
char Replace[81]; /* File to replace */
char Created[81]; /* Created text */
char Path[25][81]; /* Travelled path */
int TotPath; /* Nr of pathlines */
char Desc[1024]; /* Short description */
2001-08-17 05:46:24 +00:00
char Magic[21]; /* Magic alias */
char Crc[9]; /* CRC of file */
char Pw[21]; /* Password */
char AreaDesc[61]; /* Area description */
char Date[61]; /* Date field */
2001-12-08 20:31:42 +00:00
long Cost; /* Uplink cost */
2001-08-17 05:46:24 +00:00
off_t Size; /* Size of file */
char LDesc[25][81]; /* Long description */
int TotLDesc; /* Total lines */
char Unknown[25][128]; /* Unknown (passthru) lines */
int Unknowns; /* Total of above */
int MultiSeen; /* Multi Seenby Lines */
} Tic_in;
typedef struct _TICrec {
2001-12-09 15:20:51 +00:00
char Inbound[PATH_MAX+1]; /* Inbound directory */
2001-08-17 05:46:24 +00:00
char TicName[13]; /* Name of .TIC file */
Tic_in TicIn; /* Original TIC record */
fidoaddr OrgAka; /* Origin address */
fidoaddr Aka; /* An address ? */
char NewName[81]; /* New name of file */
2001-12-08 20:31:42 +00:00
char RealName[81]; /* Real name on disk */
2001-08-17 05:46:24 +00:00
char File_Id[25][49]; /* Description */
int File_Id_Ct; /* Nr of lines */
unsigned long Crc_Int; /* Crc value */
int KeepNum; /* Keep number of files */
off_t FileSize; /* Size of file */
time_t FileDate; /* Date of file */
time_t UpLoadDate; /* Upload date of file */
unsigned SendOrg : 1; /* Send original file */
unsigned Charge : 1; /* Charge for this file */
unsigned PassThru : 1; /* PassThru file */
unsigned NewAlias : 1; /* New alias is set */
long FileCost; /* Cost for this file */
char BBSpath[PATH_MAX]; /* Path to import in */
char BBSdesc[55]; /* Area description */
} TICrec;
TICrec TIC; /* Global .tic record */
struct _filerecord T_File; /* Global file handling rec.*/
int CompileNL;
int Tic(void);
int LoadTic(char *, char *);
#endif