X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=include%2Flttng%2Fnotification%2Fchannel.h;h=dad62b0b3abf730ced0b63151d9f9fa6e01c2591;hb=HEAD;hp=95a048fb9da1dca06ca32dfaa59cb9b597eb58e2;hpb=ab5be9fa2eb5ba9600a82cd18fd3cfcbac69169a;p=lttng-tools.git diff --git a/include/lttng/notification/channel.h b/include/lttng/notification/channel.h index 95a048fb9..dad62b0b3 100644 --- a/include/lttng/notification/channel.h +++ b/include/lttng/notification/channel.h @@ -8,6 +8,8 @@ #ifndef LTTNG_NOTIFICATION_CHANNEL_H #define LTTNG_NOTIFICATION_CHANNEL_H +#include + #include #ifdef __cplusplus @@ -57,8 +59,8 @@ 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( - struct lttng_endpoint *endpoint); +LTTNG_EXPORT extern struct lttng_notification_channel * +lttng_notification_channel_create(struct lttng_endpoint *endpoint); /* * Get the next notification received on a notification channel. @@ -81,10 +83,9 @@ 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_notification_channel_get_next_notification( - struct lttng_notification_channel *channel, - struct lttng_notification **notification); +LTTNG_EXPORT extern enum lttng_notification_channel_status +lttng_notification_channel_get_next_notification(struct lttng_notification_channel *channel, + struct lttng_notification **notification); /* * Check whether a notification is pending on a notification channel. @@ -102,10 +103,9 @@ lttng_notification_channel_get_next_notification( * - LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was * provided. */ -extern enum lttng_notification_channel_status -lttng_notification_channel_has_pending_notification( - struct lttng_notification_channel *channel, - bool *notification_pending); +LTTNG_EXPORT extern enum lttng_notification_channel_status +lttng_notification_channel_has_pending_notification(struct lttng_notification_channel *channel, + bool *notification_pending); /* * Subscribe to notifications of a condition through a notification channel. @@ -122,10 +122,9 @@ 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_notification_channel_subscribe( - struct lttng_notification_channel *channel, - const struct lttng_condition *condition); +LTTNG_EXPORT extern enum lttng_notification_channel_status +lttng_notification_channel_subscribe(struct lttng_notification_channel *channel, + const struct lttng_condition *condition); /* * Unsubscribe to notifications of a condition through a notification channel. @@ -142,16 +141,15 @@ 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_notification_channel_unsubscribe( - struct lttng_notification_channel *channel, - const struct lttng_condition *condition); +LTTNG_EXPORT extern enum lttng_notification_channel_status +lttng_notification_channel_unsubscribe(struct lttng_notification_channel *channel, + const struct lttng_condition *condition); /* * Closes and destroys (frees) a notification channel. */ -extern void lttng_notification_channel_destroy( - struct lttng_notification_channel *channel); +LTTNG_EXPORT extern void +lttng_notification_channel_destroy(struct lttng_notification_channel *channel); #ifdef __cplusplus }