8#ifndef LTTNG_NOTIFICATION_CHANNEL_H
9#define LTTNG_NOTIFICATION_CHANNEL_H
11#include <lttng/lttng-export.h>
66 LTTNG_NOTIFICATION_CHANNEL_STATUS_UNSUPPORTED_VERSION = -6,
187 bool *notification_avail);
283LTTNG_EXPORT
extern void
enum lttng_notification_channel_status lttng_notification_channel_has_pending_notification(struct lttng_notification_channel *channel, bool *notification_avail)
Sets *notification_avail to whether or not the notification channel channel has an available notifica...
struct lttng_notification_channel * lttng_notification_channel_create(struct lttng_endpoint *endpoint)
Creates a notification channel, connecting to the endpoint endpoint, without any subscription.
lttng_notification_channel_status
Return type of notification channel API functions.
Definition channel.h:40
enum lttng_notification_channel_status lttng_notification_channel_unsubscribe(struct lttng_notification_channel *channel, const struct lttng_condition *condition)
Makes the notification channel channel unsubscribe from the notifications which LTTng sends when a tr...
void lttng_notification_channel_destroy(struct lttng_notification_channel *channel)
Destroys the notification channel channel.
enum lttng_notification_channel_status lttng_notification_channel_get_next_notification(struct lttng_notification_channel *channel, struct lttng_notification **notification)
Blocks the current thread until the next notification is available from the notification channel chan...
enum lttng_notification_channel_status lttng_notification_channel_subscribe(struct lttng_notification_channel *channel, const struct lttng_condition *condition)
Makes the notification channel channel subscribe to the notifications which LTTng sends when a trigge...
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_ALREADY_SUBSCRIBED
Already subscribed.
Definition channel.h:57
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID
Unsatisfied precondition.
Definition channel.h:63
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_UNKNOWN_CONDITION
Unknown trigger condition.
Definition channel.h:60
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_INTERRUPTED
Woken up by a signal.
Definition channel.h:48
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_OK
Success.
Definition channel.h:42
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_ERROR
Error.
Definition channel.h:51
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_CLOSED
Connection closed.
Definition channel.h:54
@ LTTNG_NOTIFICATION_CHANNEL_STATUS_NOTIFICATIONS_DROPPED
Notification was dropped/discarded.
Definition channel.h:45
Trigger condition (opaque type).
LTTng endpoint (opaque type).
Notification channel (opaque type).
Notification (opaque type).