1 /* trn.h 2 */ 3 /* This software is copyrighted as detailed in the LICENSE file. */ 4 5 6 EXT char* ngname INIT(NULL); /* name of current newsgroup */ 7 EXT int ngnlen INIT(0); /* current malloced size of ngname */ 8 EXT int ngname_len; /* length of current ngname */ 9 EXT char* ngdir INIT(NULL); /* same thing in directory name form */ 10 EXT int ngdlen INIT(0); /* current malloced size of ngdir */ 11 12 #define ING_NORM 0 13 #define ING_ASK 1 14 #define ING_INPUT 2 15 #define ING_ERASE 3 16 #define ING_QUIT 4 17 #define ING_ERROR 5 18 #define ING_SPECIAL 6 19 #define ING_BREAK 7 20 #define ING_RESTART 8 21 #define ING_NOSERVER 9 22 #define ING_DISPLAY 10 23 #define ING_MESSAGE 11 24 25 EXT int ing_state; 26 27 #define INGS_CLEAN 0 28 #define INGS_DIRTY 1 29 30 EXT bool write_less INIT(FALSE); /* write .newsrc less often */ 31 32 EXT char* auto_start_cmd INIT(NULL); /* command to auto-start with */ 33 EXT bool auto_started INIT(FALSE); /* have we auto-started? */ 34 35 EXT bool is_strn INIT(FALSE); /* Is this "strn", or trn/rn? */ 36 37 EXT char patchlevel[] INIT(PATCHLEVEL); 38 39 /* DON'T EDIT BELOW THIS LINE OR YOUR CHANGES WILL BE LOST! */ 40 41 void trn_init _((void)); 42 int main _((int,char**)); 43 void do_multirc _((void)); 44 int input_newsgroup _((void)); 45 #ifdef SUPPORT_NNTP 46 void check_active_refetch _((bool_int)); 47 #endif 48 void trn_version _((void)); 49 void set_ngname _((char*)); 50 char* getngdir _((char*)); 51