-
Notifications
You must be signed in to change notification settings - Fork 1
/
alFilter.c
48 lines (42 loc) · 1.7 KB
/
alFilter.c
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
/*************************************************************************\
* 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.
\*************************************************************************/
/* alFilter.c */
/************************DESCRIPTION***********************************
Routines to filter alarm groups and channels
**********************************************************************/
#include "alLib.h"
/***************************************************
alFilterAll
****************************************************/
int alFilterAll(GCLINK *gclink)
{
return(TRUE);
}
/***************************************************
alFilterAlarmsOnly
****************************************************/
int alFilterAlarmsOnly(GCLINK *gclink)
{
if ( gclink->pgcData->curSevr || gclink->pgcData->unackSevr ) return(TRUE);
return(FALSE);
}
/***************************************************
alFilterUnackAlarmsOnly
****************************************************/
int alFilterUnackAlarmsOnly(GCLINK *gclink)
{
if ( gclink->pgcData->unackSevr ) return(TRUE);
return(FALSE);
}