lib: compile liblttng-ctl as C++
[lttng-tools.git] / include / lttng / notification / channel.h
index 878d37ee1a3f742bfa5fb5c5ac67ade036f26e19..030c88cbd3e1829ee1db2bd34fb2dc6bf43e3d4a 100644 (file)
@@ -1,23 +1,14 @@
 /*
- * Copyright (C) 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
+ * Copyright (C) 2017 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_NOTIFICATION_CHANNEL_H
 #define LTTNG_NOTIFICATION_CHANNEL_H
 
+#include <lttng/lttng-export.h>
 #include <stdbool.h>
 
 #ifdef __cplusplus
@@ -67,7 +58,7 @@ enum lttng_notification_channel_status {
  * The returned lttng_notification_channel must be destroyed using
  * the lttng_notification_channel_destroy() function.
  */
-extern struct lttng_notification_channel *lttng_notification_channel_create(
+LTTNG_EXPORT extern struct lttng_notification_channel *lttng_notification_channel_create(
                struct lttng_endpoint *endpoint);
 
 /*
@@ -91,7 +82,7 @@ extern struct lttng_notification_channel *lttng_notification_channel_create(
  *   - LTTNG_NOTIFICATION_CHANNEL_STATUS_INTERRUPTED if a signal was received
  *     that caused the reception to fail.
  */
-extern enum lttng_notification_channel_status
+LTTNG_EXPORT extern enum lttng_notification_channel_status
 lttng_notification_channel_get_next_notification(
                struct lttng_notification_channel *channel,
                struct lttng_notification **notification);
@@ -112,7 +103,7 @@ lttng_notification_channel_get_next_notification(
  *   - LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was
  *     provided.
  */
-extern enum lttng_notification_channel_status
+LTTNG_EXPORT extern enum lttng_notification_channel_status
 lttng_notification_channel_has_pending_notification(
                struct lttng_notification_channel *channel,
                bool *notification_pending);
@@ -132,7 +123,7 @@ lttng_notification_channel_has_pending_notification(
  *     provided, or LTTNG_NOTIFICATION_CHANNEL_STATUS_ALREADY_SUBSCRIBED if the
  *     client was already subscribed to the condition through this channel.
  */
-extern enum lttng_notification_channel_status
+LTTNG_EXPORT extern enum lttng_notification_channel_status
 lttng_notification_channel_subscribe(
                struct lttng_notification_channel *channel,
                const struct lttng_condition *condition);
@@ -152,7 +143,7 @@ lttng_notification_channel_subscribe(
  *     provided, or LTTNG_NOTIFICATION_CHANNEL_STATUS_UNKNOWN_CONDITION if the
  *     client was not already subscribed to the condition through this channel.
  */
-extern enum lttng_notification_channel_status
+LTTNG_EXPORT extern enum lttng_notification_channel_status
 lttng_notification_channel_unsubscribe(
                struct lttng_notification_channel *channel,
                const struct lttng_condition *condition);
@@ -160,7 +151,7 @@ lttng_notification_channel_unsubscribe(
 /*
  * Closes and destroys (frees) a notification channel.
  */
-extern void lttng_notification_channel_destroy(
+LTTNG_EXPORT extern void lttng_notification_channel_destroy(
                struct lttng_notification_channel *channel);
 
 #ifdef __cplusplus
This page took 0.024321 seconds and 4 git commands to generate.