X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fnotification%2Fchannel-internal.h;h=befdca083fc5386dcd39eb88c70fb39e02b41134;hb=4878de5c7deb512bbdac4fdfc498907efa06fb7c;hp=7343b03bba840fa3a66d984d1e6c24b99f4029c3;hpb=1dd25e28d809e0ed7940f56a1aae17b44baf5cd9;p=lttng-tools.git diff --git a/include/lttng/notification/channel-internal.h b/include/lttng/notification/channel-internal.h index 7343b03bb..befdca083 100644 --- a/include/lttng/notification/channel-internal.h +++ b/include/lttng/notification/channel-internal.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2017 - Jérémie Galarneau + * Copyright (C) 2017 Jérémie Galarneau * - * This library is free software; you can redistribute it and/or modify it - * under the terms of the GNU Lesser General Public License, version 2.1 only, - * as published by the Free Software Foundation. + * SPDX-License-Identifier: LGPL-2.1-only * - * This library 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 Lesser General Public License - * for more details. - * - * You should have received a copy of the GNU Lesser General Public License - * along with this library; if not, write to the Free Software Foundation, - * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef LTTNG_NOTIFICATION_CHANNEL_INTERNAL_H @@ -20,7 +10,7 @@ #include #include -#include +#include #include #include #include @@ -54,6 +44,8 @@ struct lttng_notification_channel_message { int8_t type; /* Size of the payload following this field. */ uint32_t size; + /* Number of FDs sent. */ + uint32_t fds; char payload[]; } LTTNG_PACKED; @@ -98,7 +90,7 @@ struct lttng_notification_channel { /* List of struct pending_notification. */ struct cds_list_head list; } pending_notifications; - struct lttng_dynamic_buffer reception_buffer; + struct lttng_payload reception_payload; /* Sessiond notification protocol version. */ struct { bool set;