X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Flttng-sessiond.h;h=9d0b9abd5dd40e2fe8b2b35cadaf4317e5e36952;hp=1cd9eeab6b692ddd4c25111b812962e03b403a18;hb=2463b7879c00298daa79744cdaae82ac061a4ed8;hpb=2d54bfb67f451a491c8cdfb6f6caea3981dc21a8 diff --git a/src/bin/lttng-sessiond/lttng-sessiond.h b/src/bin/lttng-sessiond/lttng-sessiond.h index 1cd9eeab6..9d0b9abd5 100644 --- a/src/bin/lttng-sessiond/lttng-sessiond.h +++ b/src/bin/lttng-sessiond/lttng-sessiond.h @@ -1,19 +1,9 @@ /* - * Copyright (C) 2011 - David Goulet - * Copyright (C) 2013 - Raphaël Beamonte + * Copyright (C) 2011 David Goulet + * Copyright (C) 2013 Raphaël Beamonte * - * 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. */ #ifndef _LTT_SESSIOND_H @@ -23,9 +13,10 @@ #include #include +#include #include #include -#include +#include #include "session.h" #include "ust-app.h" @@ -75,12 +66,12 @@ extern const char default_home_dir[], default_global_apps_pipe[]; /* Set in main.c at boot time of the daemon */ -extern int kernel_tracer_fd; extern struct lttng_kernel_tracer_version kernel_tracer_version; extern struct lttng_kernel_tracer_abi_version kernel_tracer_abi_version; /* Notification thread handle. */ extern struct notification_thread_handle *notification_thread_handle; +extern pthread_mutex_t notification_trigger_tokens_ht_lock; /* * This contains extra data needed for processing a command received by the @@ -89,8 +80,10 @@ extern struct notification_thread_handle *notification_thread_handle; struct command_ctx { unsigned int lttng_msg_size; struct ltt_session *session; - struct lttcomm_lttng_msg *llm; - struct lttcomm_session_msg *lsm; + /* Input message */ + struct lttcomm_session_msg lsm; + /* Reply content, starts with an lttcomm_lttng_msg header. */ + struct lttng_payload reply_payload; lttng_sock_cred creds; };