Added new function.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1713 e3e1d417-86f3-4887-817a-d78f3d33393fpull/27/merge
parent
812ea88252
commit
3a1668bc19
|
@ -282,6 +282,15 @@ sub zmIsAlarmed( $ )
|
|||
|
||||
my $state = zmGetMonitorState( $monitor );
|
||||
|
||||
return( $state == STATE_ALARM );
|
||||
}
|
||||
|
||||
sub zmInAlarm( $ )
|
||||
{
|
||||
my $monitor = shift;
|
||||
|
||||
my $state = zmGetMonitorState( $monitor );
|
||||
|
||||
return( $state == STATE_ALARM || $state == STATE_ALERT );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue