From: Jérémie Galarneau Date: Mon, 15 Feb 2016 16:44:04 +0000 (-0500) Subject: Remove specialized reference counting functions X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=448143d92bbfa3606d925c884f876083a2a4234c;p=deliverable%2Fbabeltrace.git Remove specialized reference counting functions Signed-off-by: Jérémie Galarneau --- diff --git a/include/babeltrace/plugin/component.h b/include/babeltrace/plugin/component.h index 87dac51fd..b019edbe3 100644 --- a/include/babeltrace/plugin/component.h +++ b/include/babeltrace/plugin/component.h @@ -110,25 +110,6 @@ extern enum bt_component_type bt_component_get_type( extern enum bt_component_status bt_component_set_error_stream( struct bt_component *component, FILE *error_stream); -/** - * Increments the reference count of \p component. - * - * @param component Component of which to increment the reference count - * - * @see bt_component_put() - */ -extern void bt_component_get(struct bt_component *component); - -/** - * Decrements the reference count of \p component, destroying it when this - * count reaches 0. - * - * @param component Component of which to decrement the reference count - * - * @see bt_component_get() - */ -extern void bt_component_put(struct bt_component *component); - #ifdef __cplusplus } #endif diff --git a/include/babeltrace/plugin/notification/iterator.h b/include/babeltrace/plugin/notification/iterator.h index c958c5827..7729cb5e7 100644 --- a/include/babeltrace/plugin/notification/iterator.h +++ b/include/babeltrace/plugin/notification/iterator.h @@ -80,7 +80,7 @@ enum bt_notification_iterator_seek_type { * @param iterator Iterator instance * @returns Returns a bt_notification instance * - * @see bt_notification_put() + * @see bt_put() */ extern struct bt_notification *bt_notification_iterator_get_notification( struct bt_notification_iterator *iterator); diff --git a/include/babeltrace/plugin/notification/notification.h b/include/babeltrace/plugin/notification/notification.h index 3e3459b8b..7b661b78a 100644 --- a/include/babeltrace/plugin/notification/notification.h +++ b/include/babeltrace/plugin/notification/notification.h @@ -61,26 +61,6 @@ enum bt_notification_type { extern enum bt_notification_type bt_notification_get_type( struct bt_notification *notification); -/** - * Increments the reference count of \p notification. - * - * @param notification Notification of which to increment the reference count - * - * @see bt_notification_put() - */ -extern void bt_notification_get(struct bt_notification *notification); - -/** - * Decrements the reference count of \p notification, destroying it when this - * count reaches 0. - * - * @param notification Notification of which to decrement the reference count - * - * @see bt_notification_get() - */ -extern void bt_notification_put( - struct bt_notification *notification); - #ifdef __cplusplus } #endif diff --git a/include/babeltrace/plugin/plugin-system.h b/include/babeltrace/plugin/plugin-system.h index 44b79a192..1423f04f6 100644 --- a/include/babeltrace/plugin/plugin-system.h +++ b/include/babeltrace/plugin/plugin-system.h @@ -228,7 +228,7 @@ bt_notification_iterator_set_private_data( struct bt_notification_iterator *iterator, void *data); /** - * Gett an iterator's private data. + * Get an iterator's private data. * * @param iterator Notification iterator instance * @returns Iterator instance private data