| 12345678910111213141516171819 |
- #ifndef ALARM_H
- #define ALARM_H
- #include "common.h"
- #include "isup_sdk.h"
- typedef enum { ALARM_MOVE=1, ALARM_BLOCK, ALARM_FACE, ALARM_FIRE, ALARM_SMOKE,
- ALARM_INLINE, ALARM_REGION, ALARM_AUDIO, ALARM_OTHER } AlarmType;
- typedef struct {
- int used; int id; int channel; AlarmType type; int64_t ts_ms; int acked;
- char desc[128];
- } AlarmEvent;
- int alarm_init(void);
- int alarm_start_listen(void);
- int alarm_stop_listen(void);
- int alarm_ingest(int channel, AlarmType t, const char*desc, int*out_id);
- int alarm_ack(int id);
- int alarm_pending_count(void);
- void alarm_stats(int*total,int*pending);
- void alarm_cleanup(void);
- #endif
|