X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fhealth-relayd.h;h=4cd3ec1e7f4d25d9566f13c9f50c4a910d9f0ce7;hp=aaf67ad45df8655984853fe64f8c61d2cd387f13;hb=1970828049d051d5cb485dfab995081b4550fd2a;hpb=6c71277b0dc97ce8a4ac6b8d359b4b349c04b658 diff --git a/src/bin/lttng-relayd/health-relayd.h b/src/bin/lttng-relayd/health-relayd.h index aaf67ad45..4cd3ec1e7 100644 --- a/src/bin/lttng-relayd/health-relayd.h +++ b/src/bin/lttng-relayd/health-relayd.h @@ -2,31 +2,33 @@ #define HEALTH_RELAYD_H /* - * Copyright (C) 2012 - David Goulet - * Copyright (C) 2013 - Mathieu Desnoyers + * Copyright (C) 2012 David Goulet + * Copyright (C) 2013 Mathieu Desnoyers * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License, version 2 only, as - * published by the Free Software Foundation. + * SPDX-License-Identifier: GPL-2.0-only * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#include #include +#define LTTNG_RELAYD_HEALTH_ENV "LTTNG_RELAYD_HEALTH" + enum health_type_relayd { HEALTH_RELAYD_TYPE_DISPATCHER = 0, HEALTH_RELAYD_TYPE_WORKER = 1, HEALTH_RELAYD_TYPE_LISTENER = 2, + HEALTH_RELAYD_TYPE_LIVE_DISPATCHER = 3, + HEALTH_RELAYD_TYPE_LIVE_WORKER = 4, + HEALTH_RELAYD_TYPE_LIVE_LISTENER = 5, NR_HEALTH_RELAYD_TYPES, }; +extern struct health_app *health_relayd; + +extern int health_quit_pipe[2]; + +void *thread_manage_health_relayd(void *data); + #endif /* HEALTH_RELAYD_H */