1 /*
2  *  Header file for mxkill
3  *
4  *  RCS:
5  *
6  *  Security:
7  *      Unclassified
8  *
9  *  Description:
10  *      text
11  *
12  *  Input Parameters:
13  *      type    identifier  description
14  *
15  *      text
16  *
17  *  Output Parameters:
18  *      type    identifier  description
19  *
20  *      text
21  *
22  *  Return Values:
23  *      value   description
24  *
25  *  Side Effects:
26  *      text
27  *
28  *  Limitations and Comments:
29  *      text
30  *
31  *  Development History:
32  *      who                 when        why
33  *      muquit@semcor.com   Sep-04-95   first cut
34  */
35 
36 #ifndef _MXKILL_H
37 #define _MXKILL_H
38 
39 #ifndef True
40 #define True 1
41 #endif
42 
43 #ifndef False
44 #define False 0
45 #endif
46 
47 #define LF  10
48 
49 
50 #if __STDC__ || defined(sgi) || defined(_AIX)
51 #define _Declare(formal_parameters) formal_parameters
52 #else
53 #define _Declare(formal_parameters) ()
54 #endif
55 
56 #ifdef Extern
57 #undef Extern
58 #endif
59 
60 #ifndef __Main__
61 #define Extern extern
62 #else
63 #define Extern
64 #endif
65 
66 #define Version "1.1"
67 #define Author          "muquit@semcor.com"
68 #define Url             "http://www.semcor.com/~muquit/"
69 
70 #define Min(x,y)  (((x) < (y)) ? (x) : (y))
71 
72 #define MaxTextLength   2048
73 
74 Extern Widget
75     Gtoggle_menuW[6],
76     GtoplevelW;
77 
78 Extern Display
79     *Gdisplay;
80 
81 Extern Colormap
82     Gcolormap;
83 
84 Extern GC
85     Ggc;
86 
87 Extern unsigned long
88     Gblackpixel,
89     Gwhitepixel;
90 
91 Extern Window
92     Grootwindow;
93 
94 Extern int
95     GdisplayWidth,
96     GdisplayHeight,
97     Gdepth;
98 
99 Extern int
100     Gsignal_no;
101 
102 Extern Boolean
103     Giconic_state;
104 
105 Extern char
106     GpsCommand[400],
107     GpsdefOption[500],
108     GpsAllOption[500],
109     GpsAllbyUserOption[500],
110     GpsAllbyPidOption[500];
111 /*
112 ** prototype declaration
113 */
114 int
115     MXError _Declare ((Display *, XErrorEvent *));
116 
117 void
118     Error _Declare ((char *, char *));
119 
120 void
121     Warning _Declare ((char *, char *));
122 
123 void
124     NullCb _Declare ((Widget,XtPointer,XtPointer));
125 
126 void
127     CreateMainWindow _Declare ((Widget));
128 
129 void
130     QuitCb _Declare ((Widget,XtPointer,XtPointer));
131 
132 void
133     SignalSetCb _Declare ((Widget,XtPointer,XtPointer));
134 
135 void
136     CreateKillPixmaps _Declare ((Pixel,Pixel));
137 
138 void
139     FreeKillPixmaps _Declare ((void));
140 
141 void
142     SetPixmap _Declare ((Pixmap,Widget));
143 
144 void
145     SetKillPixmap _Declare ((int));
146 
147 void
148     PsCb _Declare ((Widget,XtPointer,XtPointer));
149 
150 unsigned int
151     GetpsInfo _Declare ((char *));
152 
153 
154 int
155     StrIndex _Declare ((char *, char *));
156 
157 char
158     *GetpsOptions _Declare ((void));
159 
160 void
161     psOptionTextCb _Declare ((Widget,XtPointer,XtPointer));
162 
163 void
164     PutListOnScreen _Declare ((void));
165 
166 void
167     SetScrollbarColors _Declare ((Widget,Widget,Pixel));
168 
169 void
170     KillProcessCb _Declare ((Widget,XtPointer,XtPointer));
171 
172 void
173     GetListPositions _Declare ((void));
174 
175 void
176     PatternMatchCb _Declare ((Widget,XtPointer,XtPointer));
177 
178 void
179     SetResources _Declare ((Widget));
180 
181 char
182     *mystrdup _Declare ((char *));
183 
184 void
185     psOptionCb _Declare ((Widget,XtPointer,XtPointer));
186 
187 void
188     AboutdCb _Declare ((Widget,XtPointer,XtPointer));
189 
190 void
191     CreateAboutD _Declare ((Widget));
192 
193 unsigned long
194     AllocateNamedColor _Declare ((Display*,char *));
195 
196 void
197     BestPixel _Declare ((Display *, Colormap, XColor *, unsigned int,
198         XColor *));
199 
200 void
201     HandleIconicStates _Declare ((Widget,XtPointer,XEvent *));
202 
203 void
204     DoStderr _Declare ((XtPointer,int,XtInputId *));
205 
206 void
207     SetbusyCursorState _Declare ((Widget,int));
208 
209 void
210     WriteMessage _Declare ((char *,int));
211 
212 #endif /* _MXKILL_H */
213