lib: compile liblttng-ctl as C++
[lttng-tools.git] / include / lttng / location.h
index 6312b44ee12b74334a5a523dc43ad0bd0df131a7..ce686315effe4ffa1149d7344cb85c4dcfca60fd 100644 (file)
@@ -1,23 +1,14 @@
 /*
- * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2018 Jérémie Galarneau <jeremie.galarneau@efficios.com>
  *
- * 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_LOCATION_H
 #define LTTNG_LOCATION_H
 
+#include <lttng/lttng-export.h>
 #include <stdint.h>
 
 #ifdef __cplusplus
@@ -48,7 +39,7 @@ struct lttng_trace_archive_location;
 /*
  * Get a trace archive location's type.
  */
-extern enum lttng_trace_archive_location_type
+LTTNG_EXPORT extern enum lttng_trace_archive_location_type
 lttng_trace_archive_location_get_type(
                const struct lttng_trace_archive_location *location);
 
@@ -57,7 +48,7 @@ lttng_trace_archive_location_get_type(
  *
  * The trace archive location maintains ownership of the absolute_path.
  */
-extern enum lttng_trace_archive_location_status
+LTTNG_EXPORT extern enum lttng_trace_archive_location_status
 lttng_trace_archive_location_local_get_absolute_path(
                const struct lttng_trace_archive_location *location,
                const char **absolute_path);
@@ -68,7 +59,7 @@ lttng_trace_archive_location_local_get_absolute_path(
  *
  * The trace archive location maintains ownership of relay_host.
  */
-extern enum lttng_trace_archive_location_status
+LTTNG_EXPORT extern enum lttng_trace_archive_location_status
 lttng_trace_archive_location_relay_get_host(
                const struct lttng_trace_archive_location *location,
                const char **relay_host);
@@ -77,7 +68,7 @@ lttng_trace_archive_location_relay_get_host(
  * Get the control port of the relay daemon associated to this trace archive
  * location.
  */
-extern enum lttng_trace_archive_location_status
+LTTNG_EXPORT extern enum lttng_trace_archive_location_status
 lttng_trace_archive_location_relay_get_control_port(
                const struct lttng_trace_archive_location *location,
                uint16_t *control_port);
@@ -86,7 +77,7 @@ lttng_trace_archive_location_relay_get_control_port(
  * Get the data port of the relay daemon associated to this trace archive
  * location.
  */
-extern enum lttng_trace_archive_location_status
+LTTNG_EXPORT extern enum lttng_trace_archive_location_status
 lttng_trace_archive_location_relay_get_data_port(
                const struct lttng_trace_archive_location *location,
                uint16_t *data_port);
@@ -95,7 +86,7 @@ lttng_trace_archive_location_relay_get_data_port(
  * Get the protocol used to communicate with the relay daemon associated to this
  * trace archive location.
  */
-extern enum lttng_trace_archive_location_status
+LTTNG_EXPORT extern enum lttng_trace_archive_location_status
 lttng_trace_archive_location_relay_get_protocol_type(
                const struct lttng_trace_archive_location *location,
                enum lttng_trace_archive_location_relay_protocol_type *protocol);
@@ -105,7 +96,7 @@ lttng_trace_archive_location_relay_get_protocol_type(
  *
  * The trace archive location maintains ownership of relative_path.
  */
-extern enum lttng_trace_archive_location_status
+LTTNG_EXPORT extern enum lttng_trace_archive_location_status
 lttng_trace_archive_location_relay_get_relative_path(
                const struct lttng_trace_archive_location *location,
                const char **relative_path);
This page took 0.025215 seconds and 4 git commands to generate.