#include <netinet/in.h>
#include <arpa/inet.h>
+#include <haproxy/check-t.h>
+#include <haproxy/list-t.h>
+#include <haproxy/tcpcheck-t.h>
+#include <haproxy/thread-t.h>
+
struct mailer {
char *id;
struct mailers *mailers;
struct mailer *next; /* next mailer in the list */
};
-
struct mailers {
char *id; /* mailers section name */
struct mailer *mailer_list; /* mailers in this mailers section */
} timeout;
};
+struct email_alert {
+ struct list list;
+ struct tcpcheck_rules rules;
+ struct server *srv;
+};
+
+struct email_alertq {
+ struct list email_alerts;
+ struct check check; /* Email alerts are implemented using existing check
+ * code even though they are not checks. This structure
+ * is as a parameter to the check code.
+ * Each check corresponds to a mailer */
+ __decl_thread(HA_SPINLOCK_T lock);
+};
+
#endif /* _HAPROXY_MAILERS_T_H */
#include <haproxy/arg-t.h>
#include <haproxy/backend-t.h>
-#include <haproxy/check-t.h>
#include <haproxy/counters-t.h>
#include <haproxy/freq_ctr-t.h>
#include <haproxy/list-t.h>
char buf[0]; /* copy of the beginning of the message for bufsize bytes */
};
-struct email_alert {
- struct list list;
- struct tcpcheck_rules rules;
- struct server *srv;
-};
-
-struct email_alertq {
- struct list email_alerts;
- struct check check; /* Email alerts are implemented using existing check
- * code even though they are not checks. This structure
- * is as a parameter to the check code.
- * Each check corresponds to a mailer */
- __decl_thread(HA_SPINLOCK_T lock);
-};
-
struct proxy {
enum obj_type obj_type; /* object type == OBJ_TYPE_PROXY */
enum pr_state state; /* proxy state, one of PR_* */