X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=include%2Fbabeltrace%2Fgraph%2Fnotification-discarded-packets.h;h=1627f2490068f7952daa3f62a5d35de39d6ee00e;hb=094ff7c009937bb23c056333baffe734308a6b06;hp=4fc6a4b44e0adb73502b5569504392650aae3ab5;hpb=50842bdc4c21f3de2b63e29cdac730af8b6dcca6;p=babeltrace.git diff --git a/include/babeltrace/graph/notification-discarded-packets.h b/include/babeltrace/graph/notification-discarded-packets.h index 4fc6a4b4..1627f249 100644 --- a/include/babeltrace/graph/notification-discarded-packets.h +++ b/include/babeltrace/graph/notification-discarded-packets.h @@ -23,6 +23,9 @@ * SOFTWARE. */ +/* For bt_get() */ +#include + #include #ifdef __cplusplus @@ -35,19 +38,46 @@ struct bt_clock_class; struct bt_stream; extern struct bt_clock_value * -bt_notification_discarded_packets_get_begin_clock_value( +bt_notification_discarded_packets_borrow_begin_clock_value( struct bt_notification *notification); +static inline +struct bt_clock_value * +bt_notification_discarded_packets_get_begin_clock_value( + struct bt_notification *notification) +{ + return bt_get( + bt_notification_discarded_packets_borrow_begin_clock_value( + notification)); +} + extern struct bt_clock_value * -bt_notification_discarded_packets_get_end_clock_value( +bt_notification_discarded_packets_borrow_end_clock_value( struct bt_notification *notification); +static inline +struct bt_clock_value * +bt_notification_discarded_packets_get_end_clock_value( + struct bt_notification *notification) +{ + return bt_get(bt_notification_discarded_packets_borrow_end_clock_value( + notification)); +} + extern int64_t bt_notification_discarded_packets_get_count( struct bt_notification *notification); -extern struct bt_stream *bt_notification_discarded_packets_get_stream( +extern struct bt_stream *bt_notification_discarded_packets_borrow_stream( struct bt_notification *notification); +static inline +struct bt_stream *bt_notification_discarded_packets_get_stream( + struct bt_notification *notification) +{ + return bt_get(bt_notification_discarded_packets_borrow_stream( + notification)); +} + #ifdef __cplusplus } #endif