lib: add "borrow" functions where "get" functions exist
[babeltrace.git] / lib / graph / notification / packet.c
index 3a6b32376c1f1e71a94ad2365337052c6c2f9196..fb590c3c512c9611fc8c68c722ab77456af44f9f 100644 (file)
@@ -107,7 +107,7 @@ error:
        return NULL;
 }
 
-struct bt_packet *bt_notification_packet_begin_get_packet(
+struct bt_packet *bt_notification_packet_begin_borrow_packet(
                struct bt_notification *notification)
 {
        struct bt_notification_packet_begin *packet_begin;
@@ -117,7 +117,7 @@ struct bt_packet *bt_notification_packet_begin_get_packet(
                BT_NOTIFICATION_TYPE_PACKET_BEGIN);
        packet_begin = container_of(notification,
                        struct bt_notification_packet_begin, parent);
-       return bt_get(packet_begin->packet);
+       return packet_begin->packet;
 }
 
 struct bt_notification *bt_notification_packet_end_create(
@@ -163,7 +163,7 @@ error:
        return NULL;
 }
 
-struct bt_packet *bt_notification_packet_end_get_packet(
+struct bt_packet *bt_notification_packet_end_borrow_packet(
                struct bt_notification *notification)
 {
        struct bt_notification_packet_end *packet_end;
@@ -173,5 +173,5 @@ struct bt_packet *bt_notification_packet_end_get_packet(
                BT_NOTIFICATION_TYPE_PACKET_END);
        packet_end = container_of(notification,
                        struct bt_notification_packet_end, parent);
-       return bt_get(packet_end->packet);
+       return packet_end->packet;
 }
This page took 0.023851 seconds and 4 git commands to generate.