Commit | Line | Data |
---|---|---|
55706a7d MD |
1 | #ifndef HEALTH_RELAYD_H |
2 | #define HEALTH_RELAYD_H | |
3 | ||
4 | /* | |
5 | * Copyright (C) 2012 - David Goulet <dgoulet@efficios.com> | |
6 | * Copyright (C) 2013 - Mathieu Desnoyers <mathieu.desnoyers@efficios.com> | |
7 | * | |
8 | * This program is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License, version 2 only, as | |
10 | * published by the Free Software Foundation. | |
11 | * | |
12 | * This program is distributed in the hope that it will be useful, but WITHOUT | |
13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | |
15 | * more details. | |
16 | * | |
17 | * You should have received a copy of the GNU General Public License along with | |
18 | * this program; if not, write to the Free Software Foundation, Inc., 51 | |
19 | * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
20 | */ | |
21 | ||
094fe907 | 22 | #include <limits.h> |
55706a7d MD |
23 | #include <lttng/health-internal.h> |
24 | ||
094fe907 MD |
25 | #define LTTNG_RELAYD_HEALTH_ENV "LTTNG_RELAYD_HEALTH" |
26 | ||
6c71277b | 27 | enum health_type_relayd { |
55706a7d MD |
28 | HEALTH_RELAYD_TYPE_DISPATCHER = 0, |
29 | HEALTH_RELAYD_TYPE_WORKER = 1, | |
30 | HEALTH_RELAYD_TYPE_LISTENER = 2, | |
eea7556c MD |
31 | HEALTH_RELAYD_TYPE_LIVE_DISPATCHER = 3, |
32 | HEALTH_RELAYD_TYPE_LIVE_WORKER = 4, | |
33 | HEALTH_RELAYD_TYPE_LIVE_LISTENER = 5, | |
55706a7d MD |
34 | |
35 | NR_HEALTH_RELAYD_TYPES, | |
36 | }; | |
37 | ||
eea7556c MD |
38 | extern struct health_app *health_relayd; |
39 | ||
65931c8b MD |
40 | extern int health_quit_pipe[2]; |
41 | ||
42 | void *thread_manage_health(void *data); | |
43 | ||
55706a7d | 44 | #endif /* HEALTH_RELAYD_H */ |