1 | /* |
---|
2 | * $XConsortium: externs.h,v 2.38 91/07/22 21:29:13 converse Exp $ |
---|
3 | * |
---|
4 | * |
---|
5 | * COPYRIGHT 1987, 1989 |
---|
6 | * DIGITAL EQUIPMENT CORPORATION |
---|
7 | * MAYNARD, MASSACHUSETTS |
---|
8 | * ALL RIGHTS RESERVED. |
---|
9 | * |
---|
10 | * THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE WITHOUT NOTICE AND |
---|
11 | * SHOULD NOT BE CONSTRUED AS A COMMITMENT BY DIGITAL EQUIPMENT CORPORATION. |
---|
12 | * DIGITAL MAKES NO REPRESENTATIONS ABOUT THE SUITABILITY OF THIS SOFTWARE FOR |
---|
13 | * ANY PURPOSE. IT IS SUPPLIED "AS IS" WITHOUT EXPRESS OR IMPLIED WARRANTY. |
---|
14 | * |
---|
15 | * IF THE SOFTWARE IS MODIFIED IN A MANNER CREATING DERIVATIVE COPYRIGHT |
---|
16 | * RIGHTS, APPROPRIATE LEGENDS MAY BE PLACED ON THE DERIVATIVE WORK IN |
---|
17 | * ADDITION TO THAT SET FORTH ABOVE. |
---|
18 | * |
---|
19 | * |
---|
20 | * Permission to use, copy, modify, and distribute this software and its |
---|
21 | * documentation for any purpose and without fee is hereby granted, provided |
---|
22 | * that the above copyright notice appear in all copies and that both that |
---|
23 | * copyright notice and this permission notice appear in supporting |
---|
24 | * documentation, and that the name of Digital Equipment Corporation not be |
---|
25 | * used in advertising or publicity pertaining to distribution of the software |
---|
26 | * without specific, written prior permission. |
---|
27 | */ |
---|
28 | |
---|
29 | #ifndef X_NOT_STDC_ENV |
---|
30 | #include <errno.h> |
---|
31 | #include <stdlib.h> |
---|
32 | #else |
---|
33 | extern int errno; |
---|
34 | extern char *getenv(); |
---|
35 | extern void exit(); |
---|
36 | extern void free(); |
---|
37 | #endif |
---|
38 | |
---|
39 | /* Action routines are declared in actions.h */ |
---|
40 | /* Functions which begin with `Do' are the corresponding callbacks. */ |
---|
41 | |
---|
42 | /* from command.c */ |
---|
43 | |
---|
44 | extern char * DoCommandToFile (/* Widget, XtPointer, XtPointer */); |
---|
45 | extern char * DoCommandToString (/* Widget, XtPointer, XtPointer */); |
---|
46 | |
---|
47 | /* from compfuncs. */ |
---|
48 | |
---|
49 | extern void DoResetCompose (/* Widget, XtPointer, XtPointer */); |
---|
50 | |
---|
51 | /* from folder.c */ |
---|
52 | |
---|
53 | extern void DoClose (/* Widget, XtPointer, XtPointer */); |
---|
54 | extern void DoComposeMessage (/* Widget, XtPointer, XtPointer */); |
---|
55 | extern void DoOpenFolder (/* Widget, XtPointer, XtPointer */); |
---|
56 | extern void DoOpenFolderInNewWindow (/* Widget, XtPointer, XtPointer */); |
---|
57 | extern void DoCreateFolder (/* Widget, XtPointer, XtPointer */); |
---|
58 | extern void DoDeleteFolder (/* Widget, XtPointer, XtPointer */); |
---|
59 | extern void Push (/* Stack, char* */); |
---|
60 | extern char * Pop (/* Stack */); |
---|
61 | |
---|
62 | /* from menu.c */ |
---|
63 | |
---|
64 | extern void AttachMenuToButton (/* Button, Widget, char * */); |
---|
65 | extern void AddMenuEntry (/* Widget, char *, ... */); |
---|
66 | extern void DoRememberMenuSelection (/* Widget, XtPointer, XtPointer */); |
---|
67 | extern void SendMenuEntryEnableMsg (/* Button, char *, int */); |
---|
68 | extern void ToggleMenuItem (/* Widget, Boolean */); |
---|
69 | |
---|
70 | /* from msg.c */ |
---|
71 | |
---|
72 | extern Widget CreateFileSource (/* Widget, String, Boolean */); |
---|
73 | |
---|
74 | /* from popup.c */ |
---|
75 | |
---|
76 | extern void DestroyPopup (/* Widget, XtPointer, XtPointer */); |
---|
77 | extern void WMDeletePopup (/* Widget, XEvent* */); |
---|
78 | extern void PopupPrompt (/* Widget, String, XtCallbackProc */); |
---|
79 | extern void PopupConfirm (/* Widget, String, XtCallbackList, ... */); |
---|
80 | extern void PopupNotice (/* char *, XtCallbackProc, XtPointer */); |
---|
81 | extern void PopupError (/* Widget, String */); |
---|
82 | extern void PopupWarningHandler(); /* for Xt to call */ |
---|
83 | |
---|
84 | /* from screen.c */ |
---|
85 | |
---|
86 | extern void EnableProperButtons (/* Scrn */); |
---|
87 | extern Scrn CreateNewScrn (/* ScrnKind */); |
---|
88 | extern Scrn NewViewScrn (/* void */); |
---|
89 | extern Scrn NewCompScrn (/* void */); |
---|
90 | extern void ScreenSetAssocMsg (/* Scrn, Msg */); |
---|
91 | extern void DestroyScrn (/* Scrn */); |
---|
92 | extern void MapScrn (/* Scrn */); |
---|
93 | extern Scrn ScrnFromWidget (/* Widget */); |
---|
94 | |
---|
95 | /* from tocfuncs.c */ |
---|
96 | |
---|
97 | extern Boolean UserWantsAction (/* Widget, Scrn */); |
---|
98 | extern void DoIncorporateNewMail (/* Widget, XtPointer, XtPointer */); |
---|
99 | extern void DoCommit (/* Widget, XtPointer, XtPointer */); |
---|
100 | extern void DoPack (/* Widget, XtPointer, XtPointer */); |
---|
101 | extern void DoSort (/* Widget, XtPointer, XtPointer */); |
---|
102 | extern void DoForceRescan (/* Widget, XtPointer, XtPointer */); |
---|
103 | extern void DoReverseReadOrder (/* Widget, XtPointer, XtPointer */); |
---|
104 | extern void DoNextView (/* Widget, XtPointer, XtPointer */); |
---|
105 | extern void DoPrevView (/* Widget, XtPointer, XtPointer */); |
---|
106 | extern void DoDelete (/* Widget, XtPointer, XtPointer */); |
---|
107 | extern void DoMove (/* Widget, XtPointer, XtPointer */); |
---|
108 | extern void DoCopy (/* Widget, XtPointer, XtPointer */); |
---|
109 | extern void DoUnmark (/* Widget, XtPointer, XtPointer */); |
---|
110 | extern void DoViewNew (/* Widget, XtPointer, XtPointer */); |
---|
111 | extern void DoReply (/* Widget, XtPointer, XtPointer */); |
---|
112 | extern void DoForward (/* Widget, XtPointer, XtPointer */); |
---|
113 | extern void DoTocUseAsComp (/* Widget, XtPointer, XtPointer */); |
---|
114 | extern void DoPrint (/* Widget, XtPointer, XtPointer */); |
---|
115 | extern void DoPickMessages (/* Widget, XtPointer, XtPointer */); |
---|
116 | extern void DoSelectSequence (/* Widget, XtPointer, XtPointer */); |
---|
117 | extern void DoOpenSeq (/* Widget, XtPointer, XtPointer */); |
---|
118 | extern void DoAddToSeq (/* Widget, XtPointer, XtPointer */); |
---|
119 | extern void DoRemoveFromSeq (/* Widget, XtPointer, XtPointer */); |
---|
120 | extern void DoDeleteSeq (/* Widget, XtPointer, XtPointer */); |
---|
121 | |
---|
122 | /* from util.c */ |
---|
123 | |
---|
124 | extern void Punt (/* char * */); |
---|
125 | extern int myopen (/* char *, int, int */); |
---|
126 | extern FILE * myfopen (/* char *, char * */); |
---|
127 | extern int myclose (/* int */); |
---|
128 | extern int myfclose (/* FILE * */); |
---|
129 | extern char * MakeNewTempFileName (/* void */); |
---|
130 | extern char ** MakeArgv (/* int */); |
---|
131 | extern char ** ResizeArgv (/* char **, int */); |
---|
132 | extern FILEPTR FOpenAndCheck (/* char *, char * */); |
---|
133 | extern char * ReadLine (/* FILE * */); |
---|
134 | extern char * ReadLineWithCR (/* FILE * */); |
---|
135 | extern void DeleteFileAndCheck (/* char * */); |
---|
136 | extern void CopyFileAndCheck (/* char *, char * */); |
---|
137 | extern void RenameAndCheck (/* char *, char * */); |
---|
138 | extern char * CreateGeometry (/* int, int, int, int, int */); |
---|
139 | extern int FileExists (/* char * */); |
---|
140 | extern Boolean IsSubfolder (/* char * */); |
---|
141 | extern void SetCurrentFolderName (/* Scrn, char * */); |
---|
142 | extern void ChangeLabel (/* Widget, char * */); |
---|
143 | extern Widget CreateTextSW (/* Scrn, char *, ArgList, Cardinal */); |
---|
144 | extern Widget CreateTitleBar (/* Scrn, char * */); |
---|
145 | extern void Feep (/* void */); |
---|
146 | extern MsgList CurMsgListOrCurMsg (/* Toc */); |
---|
147 | extern int GetWidth (/* Widget */); |
---|
148 | extern int GetHeight (/* Widget */); |
---|
149 | extern Toc SelectedToc (/* Scrn */); |
---|
150 | extern Toc CurrentToc (/* Scrn */); |
---|
151 | extern int strncmpIgnoringCase(); |
---|
152 | extern void StoreWindowName (/* Scrn, char * */); |
---|
153 | extern void InitBusyCursor (/* Scrn */); |
---|
154 | extern void ShowBusyCursor (/* void */); |
---|
155 | extern void UnshowBusyCursor (/* void */); |
---|
156 | extern void SetCursorColor (/* Widget, Cursor, unsigned long */); |
---|
157 | |
---|
158 | /* from viewfuncs.c */ |
---|
159 | |
---|
160 | extern void DoCloseView (/* Widget, XtPointer, XtPointer */); |
---|
161 | extern void DoViewReply (/* Widget, XtPointer, XtPointer */); |
---|
162 | extern void DoViewForward (/* Widget, XtPointer, XtPointer */); |
---|
163 | extern void DoViewUseAsComposition (/* Widget, XtPointer, XtPointer */); |
---|
164 | extern void DoEditView (/* Widget, XtPointer, XtPointer */); |
---|
165 | extern void DoSaveView (/* Widget, XtPointer, XtPointer */); |
---|
166 | extern void DoPrintView (/* Widget, XtPointer, XtPointer */); |
---|