X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=include%2Flttng%2Fnotification%2Fchannel.h;h=878d37ee1a3f742bfa5fb5c5ac67ade036f26e19;hp=7708cfd56e915a293007d481f0f36c1dd8980454;hb=f83bcd90ceb5ce659ffe9d7747d6f3366a09748a;hpb=03732c3281c0cfbfd5f1a6b7723c577cab43bab3 diff --git a/include/lttng/notification/channel.h b/include/lttng/notification/channel.h index 7708cfd56..878d37ee1 100644 --- a/include/lttng/notification/channel.h +++ b/include/lttng/notification/channel.h @@ -31,6 +31,7 @@ struct lttng_notification_channel; enum lttng_notification_channel_status { LTTNG_NOTIFICATION_CHANNEL_STATUS_NOTIFICATIONS_DROPPED = 1, + LTTNG_NOTIFICATION_CHANNEL_STATUS_INTERRUPTED = 2, LTTNG_NOTIFICATION_CHANNEL_STATUS_OK = 0, LTTNG_NOTIFICATION_CHANNEL_STATUS_ERROR = -1, LTTNG_NOTIFICATION_CHANNEL_STATUS_CLOSED = -2, @@ -81,10 +82,14 @@ extern struct lttng_notification_channel *lttng_notification_channel_create( * Notifications can be dropped if a client consumes the notifications sent * through the notification channel too slowly. * - * Returns LTTNG_NOTIFICATION_CHANNEL_STATUS_OK and a notification on success, - * LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was - * provided, or LTTNG_NOTIFICATION_CHANNEL_STATUS_NOTIFICATIONS_DROPPED if - * notifications were dropped. + * Returns + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_OK and a notification on success, + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was + * provided, + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_NOTIFICATIONS_DROPPED if notifications + * were dropped, + * - 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( @@ -102,9 +107,10 @@ lttng_notification_channel_get_next_notification( * lttng_notification_channel_get_next_notification() can be called and * is guaranteed to not block. * - * Returns LTTNG_NOTIFICATION_CHANNEL_STATUS_OK on success or - * LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was - * provided. + * Returns + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_OK on success, + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was + * provided. */ extern enum lttng_notification_channel_status lttng_notification_channel_has_pending_notification( @@ -120,10 +126,11 @@ lttng_notification_channel_has_pending_notification( * An error will be reported if the client tries to subscribe to the same * condition multiple times without unsubscribing. * - * Returns LTTNG_NOTIFICATION_CHANNEL_STATUS_OK on success, - * LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was - * provided, or LTTNG_NOTIFICATION_CHANNEL_STATUS_ALREADY_SUBSCRIBED if the - * client was already subscribed to the condition through this channel. + * Returns + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_OK on success, + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was + * 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( @@ -139,10 +146,11 @@ lttng_notification_channel_subscribe( * An error will be reported if the client tries to unsubscribe to from a * conditions' notifications to which it was not previously subscribed. * - * Returns LTTNG_NOTIFICATION_CHANNEL_STATUS_OK on success, - * LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was - * provided, or LTTNG_NOTIFICATION_CHANNEL_STATUS_UNKNOWN_CONDITION if the - * client was not already subscribed to the condition through this channel. + * Returns + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_OK on success, + * - LTTNG_NOTIFICATION_CHANNEL_STATUS_INVALID if an invalid parameter was + * 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(