|
Trigger a certain alarm. ...
lazy.alarm[0] = 0;
size = sizeof(lazy.alarm);
db_get_value(hDB, pLch->hKey, "Settings/Alarm Class", lazy.alarm, &size, TID_STRING, TRUE);
if (lazy.alarm[0])
al_trigger_alarm("Tape", "Tape full...load new one!", lazy.alarm, "Tape full", AT_INTERNAL);
...
- Parameters:
-
| alarm_name | Alarm name, defined in /alarms/alarms |
| alarm_message | Optional message which goes with alarm |
| default_class | If alarm is not yet defined under /alarms/alarms/<alarm_name>, a new one is created and this default class is used. |
| cond_str | String displayed in alarm condition |
| type | Alarm type, one of AT_xxx |
- Returns:
- AL_SUCCESS, AL_INVALID_NAME
Definition at line 15553 of file midas.c. |