lib: make graph API const-correct
[babeltrace.git] / plugins / text / pretty / print.c
index 4dae18825cdb5d241c8b0c3380dc087edd684c32..92de19095412075db2d1ea454bdf34ba59b668eb 100644 (file)
@@ -1208,11 +1208,11 @@ end:
 
 BT_HIDDEN
 int pretty_print_event(struct pretty_component *pretty,
-               struct bt_notification *event_notif)
+               const struct bt_notification *event_notif)
 {
        int ret;
        const struct bt_event *event =
-               bt_notification_event_borrow_event(event_notif);
+               bt_notification_event_borrow_event_const(event_notif);
 
        BT_ASSERT(event);
        pretty->start_line = true;
@@ -1382,7 +1382,7 @@ int print_discarded_elements_msg(
 
 BT_HIDDEN
 int pretty_print_packet(struct pretty_component *pretty,
-               struct bt_notification *packet_beginning_notif)
+               const struct bt_notification *packet_beginning_notif)
 {
 #if 0
        const struct bt_packet *packet = bt_notification_packet_begin_borrow_packet_const(
This page took 0.024469 seconds and 4 git commands to generate.