X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fsession-descriptor-internal.h;h=97628bb881c4c2f2a21491f81216323af7006108;hp=18a70bad42af5b8b62271a2ba78a4014f7a96f75;hb=7966af5763c4aaca39df9bbfa9277ff15715c720;hpb=6fa5fe7cc78bea0b0bba154a0f911d3df530e18f diff --git a/include/lttng/session-descriptor-internal.h b/include/lttng/session-descriptor-internal.h index 18a70bad4..97628bb88 100644 --- a/include/lttng/session-descriptor-internal.h +++ b/include/lttng/session-descriptor-internal.h @@ -1,18 +1,8 @@ /* - * Copyright (C) 2019 - Jérémie Galarneau + * Copyright (C) 2019 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_SESSION_DESCRIPTOR_INTERNAL_H @@ -25,6 +15,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + /* Note that these enums are used as part of the lttnctl protocol. */ enum lttng_session_descriptor_type { LTTNG_SESSION_DESCRIPTOR_TYPE_UNKNOWN = -1, @@ -43,74 +37,56 @@ enum lttng_session_descriptor_output_type { LTTNG_SESSION_DESCRIPTOR_OUTPUT_TYPE_NETWORK = 2, }; -LTTNG_HIDDEN ssize_t lttng_session_descriptor_create_from_buffer( const struct lttng_buffer_view *view, struct lttng_session_descriptor **descriptor); -LTTNG_HIDDEN int lttng_session_descriptor_serialize( const struct lttng_session_descriptor *descriptor, struct lttng_dynamic_buffer *buffer); -LTTNG_HIDDEN enum lttng_session_descriptor_type lttng_session_descriptor_get_type( const struct lttng_session_descriptor *descriptor); -LTTNG_HIDDEN enum lttng_session_descriptor_output_type lttng_session_descriptor_get_output_type( const struct lttng_session_descriptor *descriptor); -LTTNG_HIDDEN void lttng_session_descriptor_get_local_output_uri( const struct lttng_session_descriptor *descriptor, struct lttng_uri *local_uri); -LTTNG_HIDDEN void lttng_session_descriptor_get_network_output_uris( const struct lttng_session_descriptor *descriptor, struct lttng_uri *control, struct lttng_uri *data); -LTTNG_HIDDEN unsigned long long lttng_session_descriptor_live_get_timer_interval( const struct lttng_session_descriptor *descriptor); -LTTNG_HIDDEN -enum lttng_session_descriptor_status -lttng_session_descriptor_get_session_name( - const struct lttng_session_descriptor *descriptor, - const char **name); - -LTTNG_HIDDEN int lttng_session_descriptor_set_session_name( struct lttng_session_descriptor *descriptor, const char *name); -LTTNG_HIDDEN bool lttng_session_descriptor_is_output_destination_initialized( const struct lttng_session_descriptor *descriptor); -LTTNG_HIDDEN bool lttng_session_descriptor_has_output_directory( const struct lttng_session_descriptor *descriptor); -LTTNG_HIDDEN enum lttng_error_code lttng_session_descriptor_set_default_output( struct lttng_session_descriptor *descriptor, time_t *session_creation_time, const char *absolute_home_path); -LTTNG_HIDDEN int lttng_session_descriptor_assign( struct lttng_session_descriptor *dst_descriptor, const struct lttng_session_descriptor *src_descriptor); -LTTNG_HIDDEN -int lttng_session_descriptor_get_base_path(struct lttng_session_descriptor *dst, - const char **base_path); +#ifdef __cplusplus +} +#endif #endif /* LTTNG_SESSION_DESCRIPTOR_INTERNAL_H */