home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / trn_12.zip / src / os2patch.h < prev    next >
C/C++ Source or Header  |  1993-11-08  |  4KB  |  91 lines

  1. /************************************************************
  2.  *** OS2: This file contains additional routines          ***
  3.  ***      only needed in the OS/2-version.                ***
  4.  ***                                                      ***
  5.  ***   last modified: 07/19/92                            ***
  6.  ***   Authors:  Thilo Schuster (term@godot.stgt.sub.org) ***
  7.  ***         Herbert Neugebauer (haen@veces.stgt.sub.org) ***
  8.  ***                                                      ***
  9.  ***  please send bug reports to haen@veces or term@godot ***
  10.  ***                                                      ***
  11.  ************************************************************/
  12.  
  13. /**************************************************
  14.  **  this struct was picked out of the SNews     **
  15.  **  source written by John McCombs, New Zealand **
  16.  **   <john@ahuriri.gen.nz>. Parts of it were    **
  17.  **  rewritten, to meet our requirements         **
  18.  **************************************************/
  19.  
  20. #ifndef OS2_PATCHES
  21. #define OS2_PATCHES
  22.  
  23. #ifndef BOOL_DEFINED
  24. #define BOOL_DEFINED
  25. #define bool char
  26. #define bool_int int
  27. #endif
  28.  
  29. #ifndef TRUE
  30. #define TRUE (1)
  31. #endif
  32. #ifndef FALSE
  33. #define FALSE (0)
  34. #endif
  35.  
  36. /* this is the data we get from the UUPC .rc files */
  37. typedef struct {
  38.     char temp_name[80];           /* temp files                    */
  39.     char news_dir[80];            /* news base directory           */
  40.     char mail_dir[80];            /* incoming mail directory       */
  41.     char config_dir[80];          /* directory for configuration files  */
  42.     char mailsent[80];            /* file in home, where sent mail is saved */
  43.     char rmailpath[80];           /* path to rmail, including filename */
  44.     char active[80];              /* the active file               */
  45.     char active_opt[80];          /* the active file               */
  46.     char active_times[80];        /* the active.times file         */
  47.     char user[80];                /* current user id               */
  48.     char mailfile[160];           /* mail_dir + user = mailfile    */
  49.     char name[80];                /* users full name               */
  50.     char domain[80];              /* our domain                    */
  51.     char site[80];                /* site name                     */
  52.     char organization[80];        /* organization                  */
  53.     char mail_server[80];         /* where posts are routed to     */
  54.     char editor[80];              /* system editor                 */
  55.     char home[80];                /* home mail directory           */
  56.     char signature[80];           /* signature file                */
  57.     char newsadmin[80];           /* mailadress of local newsguru  */
  58.     char trnlib[80];              /* location of trn-executables and logfiles*/
  59.     char prefshell[160];          /* the name of your commandshell */
  60.     char locdist[80];             /* distribution of your local computer */
  61.     char orgdist[80];             /* dist. of your organization    */
  62.     char citydist[80];            /* dist. of your city            */
  63.     char statedist[80];           /* dist. of your state           */
  64.     char countrydist[80];         /* dist. of your country         */
  65.     char continentdist[80];       /* dist. of your continent       */
  66. } INFO;
  67.  
  68.  
  69. /********************************************************
  70.  ** now we need a global variable which will containt  **
  71.  ** the settings which are picked out of the rc-files  **
  72.  ********************************************************/
  73.  
  74. #ifndef OS2_PATCHES_C
  75. /*** Global Variables ***/
  76. extern INFO uupc_rc_settings;
  77.  
  78. /*** new function calls ***/
  79. extern void change_sl2bsl(char *changeString);
  80. extern void change_bsl2sl(char *changeString);
  81. extern int load_uupc_rc(void);
  82. extern int make_newsrc(char *rcname, char *activename);
  83. extern int article_saver(bool mailbox, char *fromname, char *tosavename);
  84. extern FILE *fos2open(const char *filename, const char *mode);
  85. extern void mail_reply(void);
  86. extern void article_poster(void);
  87. extern int unsub_group(char *pattern);
  88. #endif
  89.  
  90. #endif /* OS2_PATCHES */
  91.