1 /* $Id$ */ 2 /***************************************************************************** 3 * HTICK --- FTN Ticker / Request Processor 4 ***************************************************************************** 5 * Copyright (C) 1999 by 6 * 7 * Gabriel Plutzar 8 * 9 * Fido: 2:31/1 10 * Internet: gabriel@hit.priv.at 11 * 12 * Vienna, Austria, Europe 13 * 14 * This file is part of HTICK, which is based on HPT by Matthias Tichy, 15 * 2:2432/605.14 2:2433/1245, mtt@tichy.de 16 * 17 * HTICK is free software; you can redistribute it and/or modify it 18 * under the terms of the GNU General Public License as published by the 19 * Free Software Foundation; either version 2, or (at your option) any 20 * later version. 21 * 22 * HTICK is distributed in the hope that it will be useful, but 23 * WITHOUT ANY WARRANTY; without even the implied warranty of 24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 25 * General Public License for more details. 26 * 27 * You should have received a copy of the GNU General Public License 28 * along with HTICK; see the file COPYING. If not, write to the Free 29 * Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 30 *****************************************************************************/ 31 32 #ifndef GLOBAL_H 33 #define GLOBAL_H 34 35 #include <fidoconf/fidoconf.h> 36 #include <huskylib/log.h> 37 38 struct ticfiletype 39 { 40 char *file; /* Name of the file affected by Tic */ 41 char *altfile; /* alternative filename for duplicates */ 42 char *area; /* Name of File Area */ 43 char *areadesc; /* Description of File Area */ 44 char **desc; /* Short Description of file */ 45 unsigned int anzdesc; /* Number of Desc Lines */ 46 char *replaces; /* Replaces File */ 47 int size; /* Size of file */ 48 unsigned long crc; /* CRC of File */ 49 int crc_is_present; /* If CRC is present in file, for tic w/o CRC */ 50 unsigned long date; /* Date */ 51 hs_addr from; /* From Addr */ 52 hs_addr to; /* To Addr */ 53 hs_addr origin; /* Origin */ 54 char *password; /* Password */ 55 char **ldesc; /* Array of Pointer to Strings with ldescs */ 56 unsigned int anzldesc; /* Number of Ldesc Lines */ 57 hs_addr *seenby; /* Array of Pointer to Seenbys */ 58 unsigned int anzseenby; /* Number of seenbys */ 59 char **path; /* Array of Pointer to Strings with Path */ 60 unsigned int anzpath; /* Numer of Path lines */ 61 }; 62 63 typedef struct ticfiletype s_ticfile; 64 65 66 extern s_log *htick_log; 67 extern s_fidoconfig *config; 68 extern unsigned char quiet; /* Quiet mode */ 69 extern char *cfgFile; 70 extern s_robot *robot; 71 72 /* variables for config statements */ 73 74 /* variables for commandline statements */ 75 76 extern int cmToss; 77 extern int cmScan; 78 extern int cmHatch; 79 extern int cmSend; 80 extern int cmFlist; 81 extern int cmAnnounce; 82 extern int cmAnnNewFileecho; 83 extern int cmClean; 84 extern int cmAfix; 85 extern int cmNotifyLink; 86 extern e_relinkType cmRelink; 87 88 extern char *flistfile; 89 extern char *dlistfile; 90 91 s_ticfile* hatchInfo; 92 93 extern char sendfile[256]; 94 extern char sendarea[256]; 95 extern char sendaddr[256]; 96 extern char announceArea[256]; 97 extern char announcenewfileecho[256]; 98 99 extern int lock_fd; 100 101 extern hs_addr afixAddr; 102 extern char *afixCmd; 103 extern hs_addr relinkFromAddr; 104 extern hs_addr relinkToAddr; 105 extern char *relinkPattern; 106 extern char *resubscribePatternFile; 107 108 109 #endif 110