From 0dfd8ee4fd5f9cf7745f287b3d88c824e91c2f91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 25 Feb 2016 12:27:43 -0500 Subject: [PATCH] Clarify bt_component_sink_handle_notification_cb semantics MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- include/babeltrace/plugin/plugin-system.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/babeltrace/plugin/plugin-system.h b/include/babeltrace/plugin/plugin-system.h index 618e3eca..59fc54cc 100644 --- a/include/babeltrace/plugin/plugin-system.h +++ b/include/babeltrace/plugin/plugin-system.h @@ -123,8 +123,11 @@ bt_component_source_set_iterator_init_cb(struct bt_component *source, /** * Notification handling function type. * + * A reference must be taken on the notification if the component wishes to + * keep ownership of the notification beyond the invocation of the callback. + * * @param sink Sink component instance - * @param notificattion Notification to handle + * @param notification Notification to handle * @returns One of #bt_component_status values */ typedef enum bt_component_status (*bt_component_sink_handle_notification_cb)( -- 2.34.1