From: Jérémie Galarneau Date: Thu, 25 Feb 2016 17:27:43 +0000 (-0500) Subject: Clarify bt_component_sink_handle_notification_cb semantics X-Git-Tag: v2.0.0-pre1~819 X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=0dfd8ee4fd5f9cf7745f287b3d88c824e91c2f91;p=babeltrace.git Clarify bt_component_sink_handle_notification_cb semantics Signed-off-by: Jérémie Galarneau --- 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)(