wmail: fixed NULL-pointer dereference if opendir(3) fails.
[dockapps.git] / wmappkill / wmAppKill.h
blob186f1084eec2fca98e3e4ff5cab38aa16a7d27b5
1 #define PROC_DEF "wmaker"
3 #define MAX_CHAR 8
4 #define NB_LINE 4
6 #define CLICK_ONE 1
7 #define CLICK_TWO 3
9 #define WHEEL_UP 4
10 #define WHEEL_DOWN 5
12 #define X_PROC 6
13 #define Y_PROC 7
15 #define DOWN 7 /* minus */
16 #define UP 8 /* plus */
18 #define DOUBLE_CLICK_DELAY 170000L
19 #define DELAY 10000
20 #define UPDATE_NB 60 /* checking delay = DELAY * UPDATE_NB (ms) */
22 typedef struct _desc{
23 char name[40];
24 pid_t pid;
25 struct _desc *previous;
26 struct _desc *next;
27 } _desc;
29 typedef struct _zone{
30 int x;
31 int y;
32 int width;
33 int height;
34 char no;
35 struct _zone *next;
36 } _zone;
38 void ZoneCreate(int x, int y, int width, int height, char no);
39 void GarbageCollector(_desc *garb);
40 char CheckZone(void);
41 int CheckProc(pid_t pid);
42 _desc *GetProcList(void);
43 int CheckProcToRemove(unsigned int *procList, unsigned int procListSize);
44 int CheckProcToAdd(int pos, unsigned int *procList, unsigned int procListSize);
45 int CheckProcChange(void);
46 void RemoveProc(_desc *cible);
47 void ShowString (int x, int y, char *doudou);
48 void DoExp();
49 void DoExpose();
50 void DoClick(XEvent ev);
51 void DoEvents();
52 void PrintUsage(void);
53 void GetArg(int argc, char *argv[]);
54 void CreateDock(int argc, char *argv[]);