LTTng control library C API
Loading...
Searching...
No Matches
notification.h
1/*
2 * SPDX-FileCopyrightText: 2017 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#ifndef LTTNG_NOTIFICATION_H
9#define LTTNG_NOTIFICATION_H
10
11#include <lttng/lttng-export.h>
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
22struct lttng_condition;
23struct lttng_evaluation;
24
32
55LTTNG_EXPORT extern const struct lttng_condition *
57
85LTTNG_EXPORT extern const struct lttng_evaluation *
87
88/*
89 * Get a notification's origin trigger.
90 *
91 * The notification retains the ownership of the trigger object. Hence, it is
92 * not valid to access that object after the destruction of its associated
93 * notification.
94 *
95 * Returns an lttng_trigger object on success, NULL on error.
96 */
97
120LTTNG_EXPORT extern const struct lttng_trigger *
122
134LTTNG_EXPORT extern void lttng_notification_destroy(struct lttng_notification *notification);
135
137
138#ifdef __cplusplus
139}
140#endif
141
142#endif /* LTTNG_NOTIFICATION_H */
const struct lttng_condition * lttng_notification_get_condition(struct lttng_notification *notification)
Returns the condition which caused a trigger to send the notification notification.
const struct lttng_trigger * lttng_notification_get_trigger(struct lttng_notification *notification)
Returns the trigger which fired to make LTTng send the notification notification.
void lttng_notification_destroy(struct lttng_notification *notification)
Destroys the notification notification.
const struct lttng_evaluation * lttng_notification_get_evaluation(struct lttng_notification *notification)
Returns the evaluation of the condition which caused a trigger to send the notification notification.
Trigger condition (opaque type).
Trigger condition evaluation (opaque type).
Notification (opaque type).
Trigger (opaque type).