Added new function.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1713 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2005-12-21 10:29:16 +00:00
parent 812ea88252
commit 3a1668bc19
1 changed files with 9 additions and 0 deletions

View File

@ -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 );
}