Add health thread to relayd
[lttng-tools.git] / src / bin / lttng-relayd / health-relayd.h
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
22 #include <lttng/health-internal.h>
23
24 enum health_type_relayd {
25 HEALTH_RELAYD_TYPE_DISPATCHER = 0,
26 HEALTH_RELAYD_TYPE_WORKER = 1,
27 HEALTH_RELAYD_TYPE_LISTENER = 2,
28 HEALTH_RELAYD_TYPE_LIVE_DISPATCHER = 3,
29 HEALTH_RELAYD_TYPE_LIVE_WORKER = 4,
30 HEALTH_RELAYD_TYPE_LIVE_LISTENER = 5,
31
32 NR_HEALTH_RELAYD_TYPES,
33 };
34
35 extern struct health_app *health_relayd;
36
37 extern int health_quit_pipe[2];
38
39 void *thread_manage_health(void *data);
40
41 #endif /* HEALTH_RELAYD_H */
This page took 0.030758 seconds and 5 git commands to generate.