X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fsave.h;h=945d94bc9bb63e77f67a54f242f1d8b5406f5387;hp=1fbeb86f616c4256c733f71a9de2db2d613a0ec2;hb=52c50f8f5aa2e0f7314a67b86c6e40ff9afe7bb6;hpb=00c76ceaeb0074e47167be56c0920284e6a0360e diff --git a/include/lttng/save.h b/include/lttng/save.h index 1fbeb86f6..945d94bc9 100644 --- a/include/lttng/save.h +++ b/include/lttng/save.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2013 - Jérémie Galarneau + * Copyright (C) 2013 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_SAVE_H @@ -59,6 +49,18 @@ const char *lttng_save_session_attr_get_output_url( */ int lttng_save_session_attr_get_overwrite( struct lttng_save_session_attr *attr); +/* + * Return the omit name configuration attribute. This attribute indicates + * whether or not the saved sessions' names should be omitted. + */ +int lttng_save_session_attr_get_omit_name( + struct lttng_save_session_attr *attr); +/* + * Return the omit output configuration attribute. This attribute indicates + * whether or not the saved sessions' output configuration should be omitted. + */ +int lttng_save_session_attr_get_omit_output( + struct lttng_save_session_attr *attr); /* * Save session attribute setter family functions. @@ -86,6 +88,18 @@ int lttng_save_session_attr_set_output_url( */ int lttng_save_session_attr_set_overwrite( struct lttng_save_session_attr *attr, int overwrite); +/* + * Set the omit name attribute. If set to true, the sessions' names are omitted + * from the resulting session configuration file. + */ +int lttng_save_session_attr_set_omit_name( + struct lttng_save_session_attr *attr, int omit_name); +/* + * Set the omit output attribute. If set to true, the sessions' output + * configurations are omitted from the resulting session configuration file. + */ +int lttng_save_session_attr_set_omit_output( + struct lttng_save_session_attr *attr, int omit_output); /* * Save session configuration(s).