Revision 12283,
1.6 KB
checked in by ghudson, 26 years ago
(diff) |
Move here from athena/bin/dash/src/xcluster and autoconfiscate.
|
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 <string.h> /* strcpy, strcat, etc... */ |
---|
14 | #include <X11/Xlib.h> /* basic X includes */ |
---|
15 | #include <X11/Xutil.h> /* basic X includes */ |
---|
16 | #include <Jets/Button.h> |
---|
17 | |
---|
18 | #define BUF_SIZE 1024 |
---|
19 | |
---|
20 | #ifndef TRUE |
---|
21 | #define TRUE 1 |
---|
22 | #endif |
---|
23 | |
---|
24 | #ifndef FALSE |
---|
25 | #define FALSE 0 |
---|
26 | #endif |
---|
27 | |
---|
28 | /* Cluster Structure */ |
---|
29 | |
---|
30 | struct cluster |
---|
31 | { |
---|
32 | int cluster_number; /* For internal use... */ |
---|
33 | char button_name[25]; /* Name to be shown on the button. */ |
---|
34 | ButtonJet btn; /* Jet for the button. */ |
---|
35 | char cluster_names[5][25]; /* Names of clusters in group, as in cmon. */ |
---|
36 | char phone_num[5][15]; /* phone number of cluster. */ |
---|
37 | int cluster_info[5][20]; /* Machine info for clusters in group. */ |
---|
38 | int x_coord; /* Location on map. */ |
---|
39 | int y_coord; /* ditto. */ |
---|
40 | char prntr_name[10][15]; /* Names of printers in cluster group. */ |
---|
41 | char prntr_current_status[10][15]; /* Stati of said printers. */ |
---|
42 | char prntr_num_jobs[10][5]; /* Number of waiting jobs on said printers. */ |
---|
43 | struct cluster *next; /* Pointer to next cluster */ |
---|
44 | }; |
---|
45 | |
---|
46 | |
---|
47 | /* |
---|
48 | * GLOBAL VARIABLES |
---|
49 | */ |
---|
50 | extern char *progname; /* Slightly obvious . . . */ |
---|
51 | extern struct cluster *cluster_list; /* Pointer to list of clusters */ |
---|
52 | extern Display *display; /* Pointer to display structure. */ |
---|
53 | extern int screen; /* Screen number. */ |
---|
54 | extern Window window; /* Window we're creating. */ |
---|
55 | extern struct cluster *Current; /* Current cluster being displayed. */ |
---|
Note: See
TracBrowser
for help on using the repository browser.