mirror of
https://github.com/Theldus/alertik.git
synced 2024-11-21 23:43:23 +01:00
37 lines
908 B
C
37 lines
908 B
C
/*
|
|
* Alertik: a tiny 'syslog' server & notification tool for Mikrotik routers.
|
|
* This is free and unencumbered software released into the public domain.
|
|
*/
|
|
|
|
#ifndef NOTIFIERS_H
|
|
#define NOTIFIERS_H
|
|
|
|
/* Uncomment/comment to enable/disable the following settings. */
|
|
// #define CURL_VERBOSE
|
|
// #define VALIDATE_CERTS
|
|
// #define DISABLE_NOTIFICATIONS
|
|
|
|
#define CURL_USER_AGENT "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 " \
|
|
"(KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"
|
|
|
|
#define NUM_NOTIFIERS 1
|
|
|
|
/* Notifiers list, like:
|
|
* - Telegram
|
|
* - Slack
|
|
* - Discord
|
|
* - Teams
|
|
*/
|
|
extern const char *const notifiers_str[NUM_NOTIFIERS];
|
|
|
|
/* Notifier struct. */
|
|
struct notifier {
|
|
void(*setup)(void);
|
|
int(*send_notification)(const char *msg);
|
|
};
|
|
|
|
extern struct notifier notifiers[NUM_NOTIFIERS];
|
|
extern void setup_notifiers(void);
|
|
|
|
#endif /* NOTIFIERS_H */
|