Revision 12538,
1.6 KB
checked in by danw, 26 years ago
(diff) |
from mwhitson: missing #includes
|
Line | |
---|
1 | /* |
---|
2 | * Campus Cluster Monitering Program |
---|
3 | * John Welch and Chris Vanharen |
---|
4 | * MIT's Project Athena |
---|
5 | * Summer 1990 |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * This is the global include file. |
---|
10 | */ |
---|
11 | |
---|
12 | #include <stdio.h> /* standard io routines */ |
---|
13 | #include <stdlib.h> |
---|
14 | #include <string.h> /* strcpy, strcat, etc... */ |
---|
15 | #include <X11/Xlib.h> /* basic X includes */ |
---|
16 | #include <X11/Xutil.h> /* basic X includes */ |
---|
17 | #include <Jets/Button.h> |
---|
18 | |
---|
19 | #define BUF_SIZE 1024 |
---|
20 | |
---|
21 | #ifndef TRUE |
---|
22 | #define TRUE 1 |
---|
23 | #endif |
---|
24 | |
---|
25 | #ifndef FALSE |
---|
26 | #define FALSE 0 |
---|
27 | #endif |
---|
28 | |
---|
29 | /* Cluster Structure */ |
---|
30 | |
---|
31 | struct cluster |
---|
32 | { |
---|
33 | int cluster_number; /* For internal use... */ |
---|
34 | char button_name[25]; /* Name to be shown on the button. */ |
---|
35 | ButtonJet btn; /* Jet for the button. */ |
---|
36 | char cluster_names[5][25]; /* Names of clusters in group, as in cmon. */ |
---|
37 | char phone_num[5][15]; /* phone number of cluster. */ |
---|
38 | int cluster_info[5][20]; /* Machine info for clusters in group. */ |
---|
39 | int x_coord; /* Location on map. */ |
---|
40 | int y_coord; /* ditto. */ |
---|
41 | char prntr_name[10][15]; /* Names of printers in cluster group. */ |
---|
42 | char prntr_current_status[10][15]; /* Stati of said printers. */ |
---|
43 | char prntr_num_jobs[10][5]; /* Number of waiting jobs on said printers. */ |
---|
44 | struct cluster *next; /* Pointer to next cluster */ |
---|
45 | }; |
---|
46 | |
---|
47 | |
---|
48 | /* |
---|
49 | * GLOBAL VARIABLES |
---|
50 | */ |
---|
51 | extern char *progname; /* Slightly obvious . . . */ |
---|
52 | extern struct cluster *cluster_list; /* Pointer to list of clusters */ |
---|
53 | extern Display *display; /* Pointer to display structure. */ |
---|
54 | extern int screen; /* Screen number. */ |
---|
55 | extern Window window; /* Window we're creating. */ |
---|
56 | extern struct cluster *Current; /* Current cluster being displayed. */ |
---|
Note: See
TracBrowser
for help on using the repository browser.