-
Notifications
You must be signed in to change notification settings - Fork 1
/
line.h
68 lines (58 loc) · 2.5 KB
/
line.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 Deutches Elektronen-Synchrotron in der Helmholtz-
* Gemelnschaft (DESY).
* Copyright (c) 2002 Berliner Speicherring-Gesellschaft fuer Synchrotron-
* Strahlung mbH (BESSY).
* Copyright (c) 2002 Southeastern Universities Research Association, as
* Operator of Thomas Jefferson National Accelerator Facility.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* This file is distributed subject to a Software License Agreement found
* in the file LICENSE that is included with this distribution.
\*************************************************************************/
/* line.h */
/************************DESCRIPTION***********************************
structure for displayed lines in the subWindows
**********************************************************************/
#ifndef INClineh
#define INClineh
#include "sllLib.h"
#include "alh.h"
#define LINEMESSAGE_SIZE 60 /* window message line size */
typedef void (*FUNPTR)(); /* define void function pointer */
/* group/channel Line data structure */
struct anyLine {
SNODE node; /* line node type */
int lineNo; /* line no in window */
char mask[8]; /* mask summary string */
char *pname; /* line name pointer */
char *alias; /* line alias pointer */
void *pwindow; /* corresponding window pointer */
void *link; /* corresponding glink address */
FUNPTR cosCallback; /* COS callback pointer */
char message[LINEMESSAGE_SIZE]; /* summary message string */
void *wline; /* address of line_widget */
int linkType; /* type of gclink group or channel */
short curSevr; /* current severity */
short unackSevr; /* highest unack severity */
char highestBeepSevrString[2]; /* highest beep severity */
int curStat; /* Channel: current status */
int curSev[ALH_ALARM_NSEV]; /* Group: current sevr channel counts*/
};
struct widgetLine {
Widget row_widget;
Widget treeSym;
Widget ack;
Widget sevr;
Widget name;
Widget arrow;
Widget guidance;
Widget process;
Widget mask;
Widget message;
Widget highestbeepsevr;
};
typedef struct widgetLine WLINE;
#endif /* INClineh */