Rename: bt_put(), bt_get() -> bt_object_put_ref(), bt_object_get_ref()
[babeltrace.git] / include / babeltrace / graph / notification-packet.h
index 3d03e7fe25970847206b8e3b18a0041fde488163..356d2b4c127850f045786672e42901cb49a00355 100644 (file)
@@ -27,8 +27,8 @@
  * SOFTWARE.
  */
 
-/* For bt_get() */
-#include <babeltrace/ref.h>
+/* For bt_object_get_ref() */
+#include <babeltrace/object.h>
 
 #ifdef __cplusplus
 extern "C" {
@@ -56,7 +56,7 @@ static inline
 struct bt_packet *bt_notification_packet_begin_get_packet(
                struct bt_notification *notification)
 {
-       return bt_get(bt_notification_packet_begin_borrow_packet(notification));
+       return bt_object_get_ref(bt_notification_packet_begin_borrow_packet(notification));
 }
 
 extern struct bt_packet *bt_notification_packet_end_borrow_packet(
@@ -66,7 +66,7 @@ static inline
 struct bt_packet *bt_notification_packet_end_get_packet(
                struct bt_notification *notification)
 {
-       return bt_get(bt_notification_packet_end_borrow_packet(notification));
+       return bt_object_get_ref(bt_notification_packet_end_borrow_packet(notification));
 }
 
 #ifdef __cplusplus
This page took 0.024602 seconds and 4 git commands to generate.