X-Git-Url: https://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-packet.h;h=356d2b4c127850f045786672e42901cb49a00355;hb=65300d60e4b4f167e5fc8f584677757ce09a3844;hp=3d03e7fe25970847206b8e3b18a0041fde488163;hpb=07208d85d16704b304b371897bb7acc995fcc481;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-packet.h b/include/babeltrace/graph/notification-packet.h index 3d03e7fe..356d2b4c 100644 --- a/include/babeltrace/graph/notification-packet.h +++ b/include/babeltrace/graph/notification-packet.h @@ -27,8 +27,8 @@ * SOFTWARE. */ -/* For bt_get() */ -#include +/* For bt_object_get_ref() */ +#include #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