26 lines
408 B
C
26 lines
408 B
C
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef enum {
|
|
ALERT_SERVICE_DOWN = 0,
|
|
ALERT_HIGH_TEMP,
|
|
ALERT_WS_DISCONNECT,
|
|
ALERT_CONNECT_OK,
|
|
ALERT_TYPE_COUNT,
|
|
} alert_type_t;
|
|
|
|
void alert_init(void);
|
|
void alert_set_codec(void *codec);
|
|
void alert_trigger(alert_type_t type);
|
|
void alert_mute(bool muted);
|
|
bool alert_is_muted(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|