blob: e3fe7accd11ec796bd74c30e4d2608d910bb6e28 [file] [log] [blame]
Willy TARREAU3dc06442006-06-15 21:48:13 +02001/*
Willy Tarreaubaaee002006-06-26 02:48:02 +02002 include/proto/checks.h
3 Functions prototypes for the checks.
4
Willy Tarreau26c25062009-03-08 09:38:41 +01005 Copyright (C) 2000-2009 Willy Tarreau - w@1wt.eu
Willy TARREAU3dc06442006-06-15 21:48:13 +02006
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation, version 2.1
10 exclusively.
11
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
16
17 You should have received a copy of the GNU Lesser General Public
18 License along with this library; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20*/
21
Willy Tarreaubaaee002006-06-26 02:48:02 +020022#ifndef _PROTO_CHECKS_H
23#define _PROTO_CHECKS_H
24
25#include <types/task.h>
Willy Tarreaue3ba5f02006-06-29 18:54:54 +020026#include <common/config.h>
Willy TARREAU3dc06442006-06-15 21:48:13 +020027
Krzysztof Piotr Oledzki09605412009-09-23 22:09:24 +020028const char *get_check_status_description(short check_status);
29const char *get_check_status_info(short check_status);
Willy Tarreau26c25062009-03-08 09:38:41 +010030struct task *process_chk(struct task *t);
Krzysztof Oledzkib304dc72007-10-14 23:40:01 +020031int start_checks();
Krzysztof Piotr Oledzki97f07b82009-12-15 22:31:24 +010032void health_adjust(struct server *s, short status);
Willy Tarreaubaaee002006-06-26 02:48:02 +020033
34#endif /* _PROTO_CHECKS_H */
Willy TARREAU3dc06442006-06-15 21:48:13 +020035
Willy Tarreaubaaee002006-06-26 02:48:02 +020036/*
37 * Local variables:
38 * c-indent-level: 8
39 * c-basic-offset: 8
40 * End:
41 */